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) => {
if (idkList.includes(newUserName)) {
const userIndex = idkList.indexOf(newUserName);
idkList.splice(userIndex, 1)
}
let firstBuzzTimeStamp = (function() {
if (buzzInfo.length == 0) {
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");
function objectionToClient(userName) {
objectionSound.play();
// objectionSound.play();
$("#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>
<html lang="en">
<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">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
+1 -1
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<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">
<script src="browserFunctions.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>
<html lang="en">
<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">
<script src="browserFunctions.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");
$("#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 clientBuzzer = "BuzzinLiveBuzzer";//this is mostly just used as a reference for if they have a special buzzer
let buzzerSoundsOn = false;
let buzzerOptions = [
["BuzzinLiveBuzzer"],
@@ -31,7 +31,7 @@
["Ooh"],
["Killer7Laugh"],
["TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight","TheNumberEight"],
["Jiggluigibat","SaturnHonk","Kirbeep"],
["Jiggluigibat","SaturnHonk","Kirbeep","UltiFinishZoom"],
["PikminThrow","Pikmin2LouieAMV","Pikmin2Olimar","Pikmin2President","Pikmin2Breadbug"],
["FF9Moogle"],
["MGSAlert"],
@@ -40,7 +40,7 @@
["SonicCheckpoint","SonicOhNo","SonicSusic"],
["EmergencyMeeting"],
["PdPSeren","TAFroggy","TAKamek"],
["PKMNLvlUp"],
["PKMNLvlUp","PKMNCherrim"],
["MMShakeShake"],
["AoEWololo"],
["P3Summon"],
@@ -56,6 +56,8 @@
["SourceNotification","SourceMedkit","SourceMeepMerp"],
["KHXBlade"],
["GTMissileArf","GTGhostMode"],
["FECrit"],
["RotTHereCatch"],
["Mystery"],
];
let specialBuzzers = {
@@ -75,9 +77,10 @@
BubsyUhOh: ["BubsyUhOh","BubsyAwNuts","BubsyByeBye"],
BubsyWhatCouldPawsiblyGoWrong: ["BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyWhatCouldPawsiblyGoWrong","BubsyDoYouBelieveInMiracles"],
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 buzzerOptionsTotalRows = 4;
function displayBuzzerOptions() {
@@ -230,6 +233,8 @@
$("#contestAnswer").find("img").mousedown(function() {
socket.emit("objectionToServer", userName);
let objectionSound = new Audio("AAObjection.wav");
objectionSound.play();
});
$("#contestAnswer").find("img").hover(
@@ -240,13 +245,13 @@
}
);
socket.on("objectionToClient", (userName) => {
objectionToClient(userName);
});
// socket.on("objectionToClient", (userName) => {
// objectionToClient(userName);
// });
socket.on("clearObjectionToClient", () => {
clearObjectionToClient();
});
// socket.on("clearObjectionToClient", () => {
// clearObjectionToClient();
// });
window.secret = function() {
console.log("Rrree Neurgh!!! :D")
let reeeNeurgh = new Audio("LSRrreeNeurgh.wav");
@@ -284,7 +289,7 @@
You can also do this by pressing the I, D or K key.
</p>
<img id="idkButton" src="idkButton.png" width="125px">
<div id="objection">
<!-- <div id="objection"> -->
</div>
</div>
<div id="userListPanel">