diff --git a/pages/tv.html b/pages/tv.html index bdcd4c7..b09249d 100644 --- a/pages/tv.html +++ b/pages/tv.html @@ -1,235 +1,242 @@ - - - - - TV - Jaka To Melodia - - + + + + - - - + TV - Jaka To Melodia + + - + #scoreboard .item>.nick { + flex: 1; + text-align: left; + } + + #scoreboard .item>.score { + font-weight: bold; + min-width: 3rem; + text-align: right; + } + - - -
- -
-
- -
-
- +
+ + +
+
+ +
+
+ -
+
- -
-
- -
-
- +
+
+ +
+
+ -
+
- -
-
- QR Code -
+ +
+
+ QR Code
+
- + .join('') + } + - - + + \ No newline at end of file diff --git a/public/wakelock.js b/public/wakelock.js index f3a0238..83ad8fe 100644 --- a/public/wakelock.js +++ b/public/wakelock.js @@ -1,5 +1,6 @@ // The wake lock sentinel. -let wakeLock = null +let wakeLock = null, + retry = null // Function that attempts to request a wake lock. const requestWakeLock = async () => { @@ -7,6 +8,11 @@ const requestWakeLock = async () => { wakeLock = await navigator.wakeLock.request('screen') wakeLock.addEventListener('release', () => { console.log('Wake Lock was released') + if (retry != null) + retry = setTimeout(() => { + requestWakeLock() + retry = null + }, 2e3) }) console.log('Wake Lock is active') } catch (err) {