modified: templates/quiz_buzzer_multiplayer.html
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user