aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-01-25 10:15:29 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2026-01-25 10:15:29 +0100
commit970fffc0cc7a3ee898df8ee5838a512c52d96df7 (patch)
tree9ed0f9f93afbcde9a1c6abfdcbdec97f3c558f2d /index.html
parentdf8be998ab126be9868015d40740739809384567 (diff)
downloadticket-counter-970fffc0cc7a3ee898df8ee5838a512c52d96df7.tar.gz
ticket-counter-970fffc0cc7a3ee898df8ee5838a512c52d96df7.zip
distribute the next ticket via SSE
Diffstat (limited to 'index.html')
-rw-r--r--index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.html b/index.html
index 51b8a13..6973be9 100644
--- a/index.html
+++ b/index.html
@@ -91,8 +91,14 @@ button {
}
function finishHelp() {
- new HttpClient().get("done", () => { location.reload(); } );
+ new HttpClient().get("done", () => {});
}
+
+ const evtSource = new EventSource("events");
+ evtSource.onmessage = (event) => {
+ let doneNode = document.getElementById("done");
+ doneNode.innerHTML = event.data;
+ };
</script>
</head>
<body>