Deleted NextGame Dev Button in Chat

This commit is contained in:
NigeParis 2026-01-09 12:05:35 +01:00 committed by Nigel
parent 1b169fca13
commit 814c389e38
2 changed files with 0 additions and 14 deletions

View file

@ -1,6 +1,5 @@
<div class="displaybox"> <div class="displaybox">
<div id="mainbox" class="mainboxDisplay"> <div id="mainbox" class="mainboxDisplay">
<button id="b-nextGame" class="btn-style absolute top-4 left-14">nextGame</button>
<h1 class="text-3xl font-bold text-gray-800"> <h1 class="text-3xl font-bold text-gray-800">
Chatter Box<span id="t-username"></span> Chatter Box<span id="t-username"></span>
</h1><br> </h1><br>

View file

@ -206,7 +206,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
socket.once('welcome', (data) => { socket.once('welcome', (data) => {
const buddies = document.getElementById('div-buddies') as HTMLDivElement; const buddies = document.getElementById('div-buddies') as HTMLDivElement;
const chatWindow = document.getElementById('t-chatbox') as HTMLDivElement;
buddies.textContent = ''; buddies.textContent = '';
buddies.innerHTML = ''; buddies.innerHTML = '';
connected(socket); connected(socket);
@ -223,7 +222,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
const clearText = document.getElementById('b-clear') as HTMLButtonElement; const clearText = document.getElementById('b-clear') as HTMLButtonElement;
const buddies = document.getElementById('div-buddies') as HTMLDivElement; const buddies = document.getElementById('div-buddies') as HTMLDivElement;
const bquit = document.getElementById('b-quit') as HTMLDivElement; const bquit = document.getElementById('b-quit') as HTMLDivElement;
const bnextGame = document.getElementById('b-nextGame') as HTMLDivElement;
buddies.textContent = ''; buddies.textContent = '';
buddies.innerHTML = ''; buddies.innerHTML = '';
@ -235,9 +233,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
if (profilList) profilList.classList.add("hidden"); if (profilList) profilList.classList.add("hidden");
}); });
const buttonMessage = document.getElementById("close-modal-message") ?? null; const buttonMessage = document.getElementById("close-modal-message") ?? null;
if (buttonMessage) if (buttonMessage)
@ -249,7 +244,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
}); });
// Send button // Send button
sendButton?.addEventListener("click", () => { sendButton?.addEventListener("click", () => {
const notify = document.getElementById("notify") ?? null; const notify = document.getElementById("notify") ?? null;
@ -367,13 +361,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
} }
}); });
// Dev Game message button
bnextGame?.addEventListener("click", () => {
if (chatWindow) {
socket.emit('nextGame');
}
});
bquit?.addEventListener('click', () => { bquit?.addEventListener('click', () => {
quitChat(socket); quitChat(socket);
}); });