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 = () => {
|
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');
|
||||||
|
|||||||
Reference in New Issue
Block a user