added objection button and some new buzzers

This commit is contained in:
Samuel Kent
2023-01-05 22:40:58 +11:00
parent 3bcc2710c9
commit c8db4aef17
20 changed files with 132 additions and 5 deletions
+10
View File
@@ -43,4 +43,14 @@ function selectBuzzer(buzzerId) {
$("#buzzer").attr("src", buzzerId+".png" );
buzzerSound.play();
return buzzerSound;
}
let objectionSound = new Audio("AAObjection.wav");
function objectionToClient(userName) {
objectionSound.play();
$("#objection").html("<img src='AAObjection.gif?"+Math.random()+"'><br>"+userName+" is objecting!<br>");
}
function clearObjectionToClient() {
$("#objection").html("");
}