diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-01-25 10:15:29 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-01-25 10:15:29 +0100 |
| commit | 970fffc0cc7a3ee898df8ee5838a512c52d96df7 (patch) | |
| tree | 9ed0f9f93afbcde9a1c6abfdcbdec97f3c558f2d /index.html | |
| parent | df8be998ab126be9868015d40740739809384567 (diff) | |
| download | ticket-counter-970fffc0cc7a3ee898df8ee5838a512c52d96df7.tar.gz ticket-counter-970fffc0cc7a3ee898df8ee5838a512c52d96df7.zip | |
distribute the next ticket via SSE
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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> |
