Buzzing in now retracts your idk vote. Also added some new buzzers by request

This commit is contained in:
Samuel Kent
2023-12-13 19:22:37 +11:00
parent 00dc19952a
commit fb3327628f
16 changed files with 26 additions and 16 deletions
+5
View File
@@ -39,6 +39,11 @@ io.on("connection", (socket) => {
}); });
socket.on("buzzerPressed", (newUserName, newTimeStamp) => { socket.on("buzzerPressed", (newUserName, newTimeStamp) => {
if (idkList.includes(newUserName)) {
const userIndex = idkList.indexOf(newUserName);
idkList.splice(userIndex, 1)
}
let firstBuzzTimeStamp = (function() { let firstBuzzTimeStamp = (function() {
if (buzzInfo.length == 0) { if (buzzInfo.length == 0) {
return newTimeStamp return newTimeStamp
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -73,7 +73,7 @@ function passToClient(teamName, soundOn) {
let objectionSound = new Audio("AAObjection.wav"); let objectionSound = new Audio("AAObjection.wav");
function objectionToClient(userName) { function objectionToClient(userName) {
objectionSound.play(); // objectionSound.play();
$("#objection").html("<img src='AAObjection.gif?"+Math.random()+"'><br>"+userName+" is objecting!<br>"); $("#objection").html("<img src='AAObjection.gif?"+Math.random()+"'><br>"+userName+" is objecting!<br>");
} }
Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

+1 -1
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Submit Kuru Kuru Kururin to the chase ty</title> <title>No, you do not need to mute this site anymore.</title>
<link rel="stylesheet" href="styleMain.css"> <link rel="stylesheet" href="styleMain.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script> <script>
+1 -1
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Submit Kuru Kuru Kururin to the chase ty</title> <title>No, you do not need to mute this site anymore.</title>
<link rel="stylesheet" href="styleMain.css"> <link rel="stylesheet" href="styleMain.css">
<script src="browserFunctions.js"></script> <script src="browserFunctions.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
+18 -13
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Submit Kuru Kuru Kururin to the chase ty</title> <title>No, you do not need to mute this site anymore.</title>
<link rel="stylesheet" href="styleMain.css"> <link rel="stylesheet" href="styleMain.css">
<script src="browserFunctions.js"></script> <script src="browserFunctions.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
@@ -15,7 +15,7 @@
let userName = queryString.searchParams.get("user"); let userName = queryString.searchParams.get("user");
$("#message").html("hi "+userName+" :]") $("#message").html("hi "+userName+" :]")
let teamName = queryString.searchParams.get("team"); 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 clientBuzzer = "BuzzinLiveBuzzer";//this is mostly just used as a reference for if they have a special buzzer
let buzzerSoundsOn = false; let buzzerSoundsOn = false;
let buzzerOptions = [ let buzzerOptions = [
["BuzzinLiveBuzzer"], ["BuzzinLiveBuzzer"],
@@ -31,7 +31,7 @@
["Ooh"], ["Ooh"],
["Killer7Laugh"], ["Killer7Laugh"],
["TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight"], ["TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight"],
["Jiggluigibat","SaturnHonk","Kirbeep"], ["Jiggluigibat","SaturnHonk","Kirbeep","UltiFinishZoom"],
["PikminThrow","Pikmin2LouieAMV","Pikmin2Olimar","Pikmin2President","Pikmin2Breadbug"], ["PikminThrow","Pikmin2LouieAMV","Pikmin2Olimar","Pikmin2President","Pikmin2Breadbug"],
["FF9Moogle"], ["FF9Moogle"],
["MGSAlert"], ["MGSAlert"],
@@ -40,7 +40,7 @@
["SonicCheckpoint","SonicOhNo","SonicSusic"], ["SonicCheckpoint","SonicOhNo","SonicSusic"],
["EmergencyMeeting"], ["EmergencyMeeting"],
["PdPSeren","TAFroggy","TAKamek"], ["PdPSeren","TAFroggy","TAKamek"],
["PKMNLvlUp"], ["PKMNLvlUp","PKMNCherrim"],
["MMShakeShake"], ["MMShakeShake"],
["AoEWololo"], ["AoEWololo"],
["P3Summon"], ["P3Summon"],
@@ -56,6 +56,8 @@
["SourceNotification","SourceMedkit","SourceMeepMerp"], ["SourceNotification","SourceMedkit","SourceMeepMerp"],
["KHXBlade"], ["KHXBlade"],
["GTMissileArf","GTGhostMode"], ["GTMissileArf","GTGhostMode"],
["FECrit"],
["RotTHereCatch"],
["Mystery"], ["Mystery"],
]; ];
let specialBuzzers = { let specialBuzzers = {
@@ -75,9 +77,10 @@
BubsyUhOh: ["BubsyUhOh","BubsyAwNuts","BubsyByeBye"], BubsyUhOh: ["BubsyUhOh","BubsyAwNuts","BubsyByeBye"],
BubsyWhatCouldPawsiblyGoWrong: ["BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyDoYouBelieveInMiracles"], BubsyWhatCouldPawsiblyGoWrong: ["BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyDoYouBelieveInMiracles"],
BubsyCheckOutThatTime: ["BubsyCheckOutThatTime","BubsyGreatScore"], BubsyCheckOutThatTime: ["BubsyCheckOutThatTime","BubsyGreatScore"],
BubsyMyContract: ["BubsyMyContract","BubsyIsThereAVeterinarian","BubsyIsTheWritersStrikeOver","BubsyIAmATrainedPurrfessional","BubsyAPyramidScheme","BubsyWhoWroteThisStuff","BubsyAreYouStillPlayin"] BubsyMyContract: ["BubsyMyContract","BubsyIsThereAVeterinarian","BubsyIsTheWritersStrikeOver","BubsyIAmATrainedPurrfessional","BubsyAPyramidScheme","BubsyWhoWroteThisStuff","BubsyAreYouStillPlayin"],
RotTHereCatch: ["RotTHereCatch","RotTEatLead"],
} }
let animatedBuzzers = ["SF3KenParry","PlokCLEAR"]; let animatedBuzzers = ["SF3KenParry","PlokCLEAR","FECrit"];
let buzzerOptionsCurrentRow = 0; let buzzerOptionsCurrentRow = 0;
let buzzerOptionsTotalRows = 4; let buzzerOptionsTotalRows = 4;
function displayBuzzerOptions() { function displayBuzzerOptions() {
@@ -230,6 +233,8 @@
$("#contestAnswer").find("img").mousedown(function() { $("#contestAnswer").find("img").mousedown(function() {
socket.emit("objectionToServer", userName); socket.emit("objectionToServer", userName);
let objectionSound = new Audio("AAObjection.wav");
objectionSound.play();
}); });
$("#contestAnswer").find("img").hover( $("#contestAnswer").find("img").hover(
@@ -240,13 +245,13 @@
} }
); );
socket.on("objectionToClient", (userName) => { // socket.on("objectionToClient", (userName) => {
objectionToClient(userName); // objectionToClient(userName);
}); // });
socket.on("clearObjectionToClient", () => { // socket.on("clearObjectionToClient", () => {
clearObjectionToClient(); // clearObjectionToClient();
}); // });
window.secret = function() { window.secret = function() {
console.log("Rrree Neurgh!!! :D") console.log("Rrree Neurgh!!! :D")
let reeeNeurgh = new Audio("LSRrreeNeurgh.wav"); let reeeNeurgh = new Audio("LSRrreeNeurgh.wav");
@@ -284,7 +289,7 @@
You can also do this by pressing the I, D or K key. You can also do this by pressing the I, D or K key.
</p> </p>
<img id="idkButton" src="idkButton.png" width="125px"> <img id="idkButton" src="idkButton.png" width="125px">
<div id="objection"> <!-- <div id="objection"> -->
</div> </div>
</div> </div>
<div id="userListPanel"> <div id="userListPanel">