28 lines
646 B
PHP
28 lines
646 B
PHP
<?php include '../common.php'; ?><!DOCTYPE html>
|
|
<html lang="no">
|
|
<head>
|
|
<title><?=title();?></title>
|
|
<link rel="stylesheet" href="../index.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
<h1><?=title();?></h1>
|
|
<h4><?=getNavigation();?></h4>
|
|
<h2>Liten kalkulator</h2>
|
|
|
|
<div>
|
|
<?php
|
|
$input = $_GET['s'] ?? 4400;
|
|
|
|
$timer = floor($input / 3600);
|
|
$minutter = floor(($input - 3600 * $timer) / 60);
|
|
$sekunder = $input % 60;
|
|
?>
|
|
|
|
<p><?=$input;?> sekunder blir <?=floor($timer);?> timer <?=$minutter;?> minutter og <?=$sekunder;?> sekunder</p>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|