modified: templates/quiz_buzzer_multiplayer.html

This commit is contained in:
2025-11-28 22:50:54 +01:00
parent 0caaace318
commit 0d49cbc974

View File

@@ -272,6 +272,13 @@
} }
}); });
document.addEventListener('keydown', function(e) {
if (e.code === 'Space' && !gameStarted) {
e.preventDefault();
startGame();
}
});
window.onSpotifyWebPlaybackSDKReady = () => { window.onSpotifyWebPlaybackSDKReady = () => {
const token = '{{ access_token }}'; const token = '{{ access_token }}';
const player = new Spotify.Player({ const player = new Spotify.Player({
@@ -549,7 +556,7 @@
player_id: currentBuzzer, player_id: currentBuzzer,
apply_points: false // Punkte NICHT sofort anwenden apply_points: false // Punkte NICHT sofort anwenden
}) })
}) )
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
const resultContainer = document.getElementById('resultContainer'); const resultContainer = document.getElementById('resultContainer');