-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (28 loc) · 1.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html lang="nl" class="h-full">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex, nofollow, noarchive">
<title>TekstTV</title>
<script>
(function() {
function calculateRefreshTime() {
var now = new Date();
var tomorrow = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1, 2, 55, 0);
var diff = tomorrow - now;
return Math.floor(diff / 1000) + 300; // Convert to seconds and add 5 minutes (300 seconds)
}
var meta = document.createElement('meta');
meta.httpEquiv = "refresh";
meta.content = calculateRefreshTime().toString();
document.getElementsByTagName('head')[0].appendChild(meta);
})();
</script>
</head>
<body class="h-full bg-black overflow-hidden text-white">
<div id="root" class="grid min-h-full place-items-center"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>