Deleted NextGame Dev Button in Chat
This commit is contained in:
parent
1b169fca13
commit
814c389e38
2 changed files with 0 additions and 14 deletions
|
|
@ -1,6 +1,5 @@
|
|||
<div class="displaybox">
|
||||
<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">
|
||||
Chatter Box<span id="t-username"></span>
|
||||
</h1><br>
|
||||
|
|
|
|||
|
|
@ -206,7 +206,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
|
|||
|
||||
socket.once('welcome', (data) => {
|
||||
const buddies = document.getElementById('div-buddies') as HTMLDivElement;
|
||||
const chatWindow = document.getElementById('t-chatbox') as HTMLDivElement;
|
||||
buddies.textContent = '';
|
||||
buddies.innerHTML = '';
|
||||
connected(socket);
|
||||
|
|
@ -223,7 +222,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
|
|||
const clearText = document.getElementById('b-clear') as HTMLButtonElement;
|
||||
const buddies = document.getElementById('div-buddies') as HTMLDivElement;
|
||||
const bquit = document.getElementById('b-quit') as HTMLDivElement;
|
||||
const bnextGame = document.getElementById('b-nextGame') as HTMLDivElement;
|
||||
|
||||
buddies.textContent = '';
|
||||
buddies.innerHTML = '';
|
||||
|
|
@ -235,9 +233,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
|
|||
if (profilList) profilList.classList.add("hidden");
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
const buttonMessage = document.getElementById("close-modal-message") ?? null;
|
||||
|
||||
if (buttonMessage)
|
||||
|
|
@ -249,7 +244,6 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
|
|||
|
||||
});
|
||||
|
||||
|
||||
// Send button
|
||||
sendButton?.addEventListener("click", () => {
|
||||
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', () => {
|
||||
quitChat(socket);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue