-
-
+
+
+
+
Musik-Player
+
+
+
+
+
+
+

+
+
+
+
+ Buffering…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-

-
-
-
-
- Buffering…
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -248,9 +267,7 @@
-
- Tokens: 0
-
+
diff --git a/public/js/dom.js b/public/js/dom.js
index 2f4eb9c..28bff97 100644
--- a/public/js/dom.js
+++ b/public/js/dom.js
@@ -7,7 +7,6 @@ export const $nameDisplay = el('nameDisplay');
export const $status = el('status');
export const $guesser = el('guesser');
export const $timeline = el('timeline');
-export const $tokens = el('tokens');
export const $audio = el('audio');
export const $np = el('nowPlaying');
export const $npTitle = el('npTitle');
diff --git a/public/js/render.js b/public/js/render.js
index 06a6597..644c295 100644
--- a/public/js/render.js
+++ b/public/js/render.js
@@ -18,7 +18,6 @@ import {
$startGame,
$status,
$timeline,
- $tokens,
} from './dom.js';
export function renderRoom(room) {
@@ -58,6 +57,7 @@ export function renderRoom(room) {
? '
bereit'
: '
-';
const score = room.state.timeline?.[p.id]?.length ?? 0;
+ const tokens = room.state.tokens?.[p.id] ?? 0;
const isMe = p.id === state.playerId;
return `
@@ -71,6 +71,7 @@ export function renderRoom(room) {
| ${connected} |
${ready} |
${score} |
+ ${tokens} |
`;
})
.join('');
@@ -93,7 +94,6 @@ export function renderRoom(room) {
`;
})
.join('');
- $tokens.textContent = room.state.tokens?.[state.playerId] ?? 0;
if ($readyChk) {
const serverReady = !!me?.ready;
if (state.pendingReady === null || state.pendingReady === undefined) {