activatePlayer: turn led off after 500ms
too bright they are
This commit is contained in:
parent
574978b937
commit
b543d49f2a
4
quiz.js
4
quiz.js
|
@ -462,7 +462,9 @@ function switchToGame() {
|
|||
for(var i = 0; i < playerNames.length; i++) {
|
||||
sendToBackend({ buzzerLED: [i, i === player ? 1 : 0] });
|
||||
}
|
||||
sendToBackend({ buzzerLED: [player, 1] });
|
||||
setTimeout(function() {
|
||||
sendToBackend({ buzzerLED: [player, 0] });
|
||||
}, 500);
|
||||
$('#audio_buzz')[0].load();
|
||||
$('#audio_buzz')[0].play();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue