Buzzers now play the selection of each user, buzzers also displayed on user lists. Also added some new buzzers
This commit is contained in:
+1
-10
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user