Now shows buzz in order instead of lateTime

This commit is contained in:
Samuel Kent
2023-01-01 17:19:30 +11:00
parent 355a2c8bf4
commit 3bcc2710c9
5 changed files with 7 additions and 15 deletions
+1 -2
View File
@@ -21,7 +21,6 @@
buzzerOptions.forEach((buzzerId) => {
$("#buzzerOptions").append("<img id='"+buzzerId+"' src='"+buzzerId+".png'>");
});
// let buzzerSound = new Audio(buzzerOptions[0]+".wav");
$("#buzzer").attr("src", buzzerOptions[0]+".png" );
$("#buzzer").css("opacity", "0.2");
let buzzable = false;
@@ -83,7 +82,7 @@
buzzerId = buzzerOptions[Math.floor(Math.random()*(buzzerOptions.length-1))];
}
socket.emit("updateUserInfo", userName, teamName, buzzerId);
buzzerSound = new Audio(buzzerId+".wav");
let buzzerSound = new Audio(buzzerId+".wav");
$("#buzzer").attr("src", buzzerId+".png" );
buzzerSound.play();
});