Added mystery buzzer

This commit is contained in:
Samuel Kent
2022-12-28 16:32:41 +11:00
parent ed1e492bb4
commit 6b3507cd18
4 changed files with 14 additions and 9 deletions
+1 -2
View File
@@ -44,8 +44,7 @@
});
$("#buzzerOptions").contents().mousedown(function() {
buzzerSound = new Audio($(this).attr("id")+".wav");
buzzerSound.play();
buzzerSound = selectBuzzer($(this).attr("id"));
});
});
</script>
+1 -4
View File
@@ -20,7 +20,6 @@
let buzzerOptions = setupBuzzerOptions();
let buzzerSound = new Audio(buzzerOptions[0]+".wav");
console.log(buzzerSound);
$("#buzzer").attr("src", buzzerOptions[0]+".png" );
$("#buzzer").css("opacity", "0.2");
let buzzable = false;
@@ -77,9 +76,7 @@
}
$("#buzzerOptions").contents().mousedown(function() {
buzzerSound = new Audio($(this).attr("id")+".wav");
$("#buzzer").attr("src", $(this).attr("id")+".png" );
buzzerSound.play();
buzzerSound = selectBuzzer($(this).attr("id"));
});
});
</script>