cleans up code
All checks were successful
CI / deploy (push) Successful in 4m27s
CI / deploy (pull_request) Successful in 4m26s

This commit is contained in:
2025-02-12 13:07:13 +01:00
parent 9e32ed95d1
commit 9a9aa95cd1
8 changed files with 461 additions and 475 deletions

View File

@@ -8,12 +8,12 @@
<link rel="icon" type="image/png" href="/favicon.png">
</head>
<body>
<div id="results" style="font-size: x-large">
</div>
<div id="results" style="font-size: x-large"></div>
<script type="module">
function url() {
return window.location.protocol + '//' + window.location.hostname + (window.location.port?.length > 0 ? ':' + window.location.port : '');
}
const evtSource = new EventSource(url() + '/dice/{room}/results');
evtSource.addEventListener('message', function (event) {
let data = JSON.parse(event.data);