Reformat index

This commit is contained in:
Roscoe 2024-12-12 00:35:32 +00:00
parent ab6ff76d96
commit 5f008af9da
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE

View file

@ -4,13 +4,13 @@
<head>
<?php include("./includes/head.inc.php"); ?>
<script>
window.onload = () => {
$('#moonImg').attr('src', '/images/moon.png?' + Date.now());
// update the moon image every 20 minutes if the page is left open
setInterval(() => {
window.onload = () => {
$('#moonImg').attr('src', '/images/moon.png?' + Date.now());
}, 1200000);
};
// update the moon image every 20 minutes if the page is left open
setInterval(() => {
$('#moonImg').attr('src', '/images/moon.png?' + Date.now());
}, 1200000);
};
</script>
</head>