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