add website components

This commit is contained in:
Noa Aarts 2024-12-12 15:09:16 +01:00
parent 365701eebd
commit c050d8bfb0
Signed by: noa
GPG key ID: 1850932741EFF672
3 changed files with 98 additions and 2 deletions

View file

@ -5,11 +5,38 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Flurry</title>
<link href="css/style.css" rel="stylesheet">
<link href="/style.css" rel="stylesheet">
<script src="/stats.js"></script>
</head>
<body>
<img src="/imgstream?canvas=0" alt="The main pixelflut canvas">
<div>
<img class="grid" src="/imgstream?canvas=0" draggable="false" alt="Pixelflut canvas">
<table>
<thead>
<tr>
<th>Stat</th>
<th>Total</th>
<th>Last Second</th>
</tr>
</thead>
<tbody>
<tr>
<td>Pixels changed in main</td>
<td id="pixelCounter">Loading...</td>
<td id="pixelCounterAvg">Loading...</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td>Clients Connected right now</td>
<td id="clientCounter">Loading...</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>