Refresh function for main frontend, separate main frontends for normal countdown and score+countdown

This commit is contained in:
2024-05-17 21:22:57 +02:00
parent 35a0785bf3
commit e36a959071
9 changed files with 193 additions and 71 deletions
+4
View File
@@ -12,4 +12,8 @@ socket.on('timerDurationLeft', (message) => {
socket.on('timerEnded', (message) => {
document.getElementById("durationLeft").innerHTML = "ENDE"; // Display "STOP" in same html element as the duration
});
socket.on('refresh', (message) => {
document.location.reload() // Reload page on received 'refresh' messagen
});