This commit is contained in:
floppydiskette 2024-12-12 19:18:16 +00:00
commit 173d5d7cf0
No known key found for this signature in database
8 changed files with 443 additions and 170 deletions

31
gauges/index.php Normal file
View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<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(() => {
$('#moonImg').attr('src', '/images/moon.png?' + Date.now());
}, 1200000);
};
</script>
</head>
<body>
<div class="page-container">
<?php include("../includes/header.inc.php"); ?>
<div id="content">
<canvas id="canvas_status" width="200" height="25"></canvas>
<canvas id="canvas_timer" width="60" height="25"></canvas>
Status: <canvas id="canvas_led" width="25" height="25"></canvas>
<small>Page data updated <span data-cmxdata="update"></span></small>
</div>
<?php include("../includes/footer.inc.php"); ?>
</div>
</body>
</html>