improved buzzer selction UI, responsive cursors and implemented 'special' buzzers (and some other buzzers as well)

This commit is contained in:
Samuel Kent
2023-05-27 12:38:33 +10:00
parent d84f67b499
commit d11c79423d
72 changed files with 114 additions and 44 deletions
+9 -9
View File
@@ -58,15 +58,15 @@ function passToClient(teamName) {
$("#firstBuzz").html(teamName+" have Passed!");
}
function selectBuzzer(buzzerId) {
if (buzzerId == "Mystery") {
buzzerId = buzzerOptions[Math.floor(Math.random()*(buzzerOptions.length-1))];
}
let buzzerSound = new Audio(buzzerId+".wav");
$("#buzzer").attr("src", buzzerId+".png" );
buzzerSound.play();
return buzzerSound;
}
// function selectBuzzer(buzzerId) {
// if (buzzerId == "Mystery") {
// buzzerId = buzzerOptions[Math.floor(Math.random()*(buzzerOptions.length-1))];
// }
// let buzzerSound = new Audio(buzzerId+".wav");
// $("#buzzer").attr("src", buzzerId+".png" );
// buzzerSound.play();
// return buzzerSound;
// }
let objectionSound = new Audio("AAObjection.wav");
function objectionToClient(userName) {