Turned buzzer sounds off for players by default
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Thanks for pledging Star of Providence! :)</title>
|
||||
<title>Submit Kuru Kuru Kururin to the chase ty</title>
|
||||
<link rel="stylesheet" href="styleMain.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script>
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Thanks for pledging Star of Providence! :)</title>
|
||||
<title>Submit Kuru Kuru Kururin to the chase ty</title>
|
||||
<link rel="stylesheet" href="styleMain.css">
|
||||
<script src="browserFunctions.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
@@ -23,7 +23,7 @@
|
||||
});
|
||||
|
||||
socket.on("buzzInfoToClient", (buzzInfo) => {
|
||||
buzzInfoToClient(buzzInfo);
|
||||
buzzInfoToClient(buzzInfo, true);
|
||||
});
|
||||
|
||||
socket.on("idkListToClient", (idkList) => {
|
||||
@@ -31,7 +31,7 @@
|
||||
});
|
||||
|
||||
socket.on("passToClient", (teamName) => {
|
||||
passToClient(teamName);
|
||||
passToClient(teamName, true);
|
||||
});
|
||||
|
||||
$("#plus0").click(function() {
|
||||
|
||||
+8
-3
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Thanks for pledging Star of Providence! :)</title>
|
||||
<title>Submit Kuru Kuru Kururin to the chase ty</title>
|
||||
<link rel="stylesheet" href="styleMain.css">
|
||||
<script src="browserFunctions.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
@@ -16,6 +16,7 @@
|
||||
$("#message").html("hi "+userName+" :]")
|
||||
let teamName = queryString.searchParams.get("team");
|
||||
let clientBuzzer = "Kirbeep";//this is mostly just used as a reference for if they have a special buzzer
|
||||
let buzzerSoundsOn = false;
|
||||
let buzzerOptions = [
|
||||
["Kirbeep","KirbyMic2","KirbySquishy","KirbyBugzzy","KirbyKracko"],
|
||||
["MarioBoing","MarioPenguin","MarioCoin","MPYosh","MPDogF","MPCatF","MarioPlum","WLHelloThere","WLAlright","WLHurryUp","WLOhBoy"],
|
||||
@@ -153,7 +154,7 @@
|
||||
});
|
||||
|
||||
socket.on("buzzInfoToClient", (buzzInfo) => {
|
||||
buzzInfoToClient(buzzInfo);
|
||||
buzzInfoToClient(buzzInfo, buzzerSoundsOn);
|
||||
});
|
||||
|
||||
socket.on("pingClient", (timeStamp) => {
|
||||
@@ -166,7 +167,7 @@
|
||||
});
|
||||
|
||||
socket.on("passToClient", (teamName) => {
|
||||
passToClient(teamName);
|
||||
passToClient(teamName, buzzerSoundsOn);
|
||||
});
|
||||
|
||||
$(document).keydown(function(e) {
|
||||
@@ -244,6 +245,10 @@
|
||||
clientBuzzer = buzzerId;
|
||||
socket.emit("updateUserInfo", userName, teamName, buzzerId);
|
||||
}
|
||||
window.mute = function() {
|
||||
buzzerSoundsOn = !buzzerSoundsOn;
|
||||
console.log("buzzerSoundsOn: "+buzzerSoundsOn);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user