diff --git a/frontend/src/chat/chat.ts b/frontend/src/chat/chat.ts index b1f0620..e0db9f5 100644 --- a/frontend/src/chat/chat.ts +++ b/frontend/src/chat/chat.ts @@ -83,14 +83,11 @@ const sendtextbox = document.getElementById( ) as HTMLButtonElement; const systemWindow = document.getElementById("chat-system-box") as HTMLDivElement; - function chatKeyToggle() { let anti_flicker_control = false; const chat_hide_key = 'escape'; const chat_display_key = 'f2'; - const pong_display_key = 'f4'; - const ttt_display_key = 'f8'; - const home_display_key = 'f9'; + const home_display_key = 'f8'; document.addEventListener("keydown", (event) => { if (event.repeat && keysPressed[chat_hide_key] === true) { anti_flicker_control = true; @@ -126,17 +123,9 @@ function chatKeyToggle() { windowStateVisable(); } - if (keysPressed[pong_display_key] === true) { - quitChat(); - navigateTo('/app/pong'); - } - if (keysPressed[ttt_display_key] === true) { - quitChat(); - navigateTo('/app/ttt'); - } if (keysPressed[home_display_key] === true) { - quitChat(); navigateTo('/app/'); + quitChat(); } }, 1000/10); }; @@ -162,8 +151,7 @@ function initChatSocket() { !profilList || !sendButton || !sendtextbox || - !systemWindow - + !systemWindow ) return showError("fatal error"); // Listen for the 'connect' event @@ -289,9 +277,7 @@ function initChatSocket() { let message = ""; if (data.userState === "block") { (message = "un-block"); - // ((message = "un-block"), (blockMessage = true)); } else { - // ((message = "block"), (blockMessage = false)); (message = "block"); } blockUserBtn.textContent = message; diff --git a/frontend/src/chat/chatHelperFunctions/cmdList.ts b/frontend/src/chat/chatHelperFunctions/cmdList.ts index a997161..be387f3 100644 --- a/frontend/src/chat/chatHelperFunctions/cmdList.ts +++ b/frontend/src/chat/chatHelperFunctions/cmdList.ts @@ -19,9 +19,7 @@ export function cmdList() { addMessage('** ********** function keys ********** **'); addMessage('\'ESC\' - chat box display toggles off'); addMessage('\'F2\' - chat box display toggles on'); - addMessage('\'F4\' - navigates to Pong Box'); - addMessage('\'F8\' - navigates to TTT Box'); - addMessage('\'F9\' - navigates to Home Page'); + addMessage('\'F8\' - navigates to Home Page'); addMessage('** *********************************** **'); addMessage('*'); } \ No newline at end of file diff --git a/frontend/src/pages/pong/pong.html b/frontend/src/pages/pong/pong.html index 0d1fdf4..6b0b322 100644 --- a/frontend/src/pages/pong/pong.html +++ b/frontend/src/pages/pong/pong.html @@ -4,66 +4,68 @@
- - - -
-
-

Pong Box

-
-
-
- ?👤 ?⏳ ?▮•▮ - - - - - - -
- - -
-

-

0:0

-

-
- -
-
-
- - - - -
-
-
-
-
+
+

Pong Box

+
+
+
+ ?👤 ?⏳ ?▮•▮ + + + + + + +
+
+ +
+

+

0:0

+

+
+ +
+
+
+ + + + +
+
+
+
+
+
+
- + \ No newline at end of file diff --git a/frontend/src/pages/ttt/ttt.html b/frontend/src/pages/ttt/ttt.html index a6cdd32..22ca418 100644 --- a/frontend/src/pages/ttt/ttt.html +++ b/frontend/src/pages/ttt/ttt.html @@ -5,7 +5,7 @@
-

Tic-tac-toe Box

+

Tic-tac-toe

@@ -13,9 +13,10 @@
X
-
+
+
@@ -23,7 +24,7 @@
Waiting for match...
-
+