Buzzers now play the selection of each user, buzzers also displayed on user lists. Also added some new buzzers

This commit is contained in:
Samuel Kent
2023-01-01 15:33:37 +11:00
parent d5099f7a99
commit 355a2c8bf4
30 changed files with 50 additions and 44 deletions
+1 -10
View File
@@ -10,9 +10,6 @@
<script>
$(document).ready(function() {
var socket = io();
let buzzerOptions = setupBuzzerOptions();
let buzzerSound = new Audio(buzzerOptions[0]+".wav");
socket.on("userInfoToClient", (userInfo) => {
userInfoToClient(userInfo);
@@ -27,7 +24,7 @@
});
socket.on("buzzInfoToClient", (buzzInfo) => {
buzzInfoToClient(buzzInfo, buzzerSound);
buzzInfoToClient(buzzInfo);
});
$("#plus0").click(function() {
@@ -43,10 +40,6 @@
$("#unregisterUsers").click(function() {
socket.emit("unregisterUsers", 2);
});
$("#buzzerOptions").contents().mousedown(function() {
buzzerSound = selectBuzzer($(this).attr("id"));
});
});
</script>
</head>
@@ -77,7 +70,5 @@
<ul></ul>
</div>
</div>
<div id="buzzerOptions">
</div>
</body>
</html>