summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-07-23 21:18:22 +0200
committerTor Andersson <tor@ccxvii.net>2024-07-25 00:46:36 +0200
commit5cd0be37c9e7d420a99763409b144b6413f485ca (patch)
tree3f405b07dc67f5ac6e7d507a63094715e217304d
parent65a821b404a610251e6118cf046aabf02f828718 (diff)
downloadserver-5cd0be37c9e7d420a99763409b144b6413f485ca.tar.gz
Remove title bar blinker from join page.
-rw-r--r--public/join.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/public/join.js b/public/join.js
index 8f0ea8a..88ec8d9 100644
--- a/public/join.js
+++ b/public/join.js
@@ -227,30 +227,6 @@ function send_invite() {
}
}
-let blink_title = document.title
-let blink_timer = 0
-
-function start_blinker(message) {
- let tick = false
- if (blink_timer)
- stop_blinker()
- if (!document.hasFocus()) {
- document.title = message
- blink_timer = setInterval(function () {
- document.title = tick ? message : blink_title
- tick = !tick
- }, 1000)
- }
-}
-
-function stop_blinker() {
- document.title = blink_title
- clearInterval(blink_timer)
- blink_timer = 0
-}
-
-window.addEventListener("focus", stop_blinker)
-
function start_event_source() {
if (!game)
return
@@ -438,7 +414,6 @@ function update() {
if (!game) {
window.game_enter.textContent = "Game deleted!"
- stop_blinker()
return
}
@@ -470,11 +445,6 @@ function update() {
create_button("Delete", confirm_delete)
if (may_start())
create_button("Start", start)
-
- if (start_status === 0 && game.status === 1)
- start_blinker("STARTED")
- else
- stop_blinker()
}
}