elektronisk-kadaver-tidtaki.../index.php

48 lines
1.3 KiB
PHP
Raw Normal View History

2024-02-11 18:27:54 +00:00
<!DOCTYPE html>
<html lang="no">
2024-10-08 10:55:19 +00:00
<head>
2024-10-08 19:41:05 +00:00
<meta charset="UTF-8" />
<title>EKT</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="Elektronisk Kadaver Tidtakningssystem" />
2024-10-08 10:55:19 +00:00
<link rel="stylesheet" href="https://matcha.mizu.sh/matcha.css">
2024-10-11 15:41:43 +00:00
<style>
@media (prefers-color-scheme: dark) {
.invert {
filter: invert(1);
}
}
</style>
2024-10-08 10:55:19 +00:00
</head>
2024-02-12 20:23:13 +00:00
<body>
2024-10-11 15:41:43 +00:00
<div class="flex align-center">
<figure><img src="img/kadaver.png" alt="" width="100px" class="invert"></figure>
2024-10-08 10:55:19 +00:00
<h1>Løpende resultater kadaverløpet 2024</h1>
2024-10-11 15:41:43 +00:00
</div>
2024-10-08 10:55:19 +00:00
<h2>Vi tar forbehold om feil. Dette er ikke offisielle resultater</h2>
2024-02-12 20:23:13 +00:00
<table>
2024-02-16 11:14:45 +00:00
<tbody>
<?php
include("get_table.php")
?>
</tbody>
2024-10-11 15:41:43 +00:00
<footer>
2024-02-12 20:23:13 +00:00
</table>
2024-10-11 15:41:43 +00:00
<h3>Laget av Trygve. <a href="https://git.willy.club/Trygve/elektronisk-kadaver-tidtakingssystem">Kildekode</a></h3>
<figure><img src="img/NMBUI.webp" alt="" width="200px"></figure>
</footer>
2024-02-12 20:23:13 +00:00
</body>
2024-10-08 19:41:05 +00:00
<script>
function update() {
const table = document.querySelector("table");
const myRequest = new Request(`get_table.php`);
fetch(myRequest)
.then((response) => response.text())
.then((text) => {
table.innerHTML = text;
});
}
setInterval(update, 5*1000)
</script>
2024-02-16 11:14:45 +00:00
</html>