activatePlayer: turn led off after 500ms

too bright they are
This commit is contained in:
Astro 2011-10-15 14:56:46 +02:00
parent 574978b937
commit b543d49f2a
1 changed files with 3 additions and 1 deletions

View File

@ -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();
};