From 276c99182626b0350b33b58bd26e2140cdb894e3 Mon Sep 17 00:00:00 2001 From: stale Date: Sat, 19 Nov 2022 02:12:46 -0300 Subject: the chat is dead --- assets/client.js | 8 -------- assets/room.html | 3 --- 2 files changed, 11 deletions(-) (limited to 'assets') diff --git a/assets/client.js b/assets/client.js index e1218ba..1150b8f 100644 --- a/assets/client.js +++ b/assets/client.js @@ -125,7 +125,6 @@ function connect() { room.bconf.h = Number(dims[1]); room.bconf.mine_ratio = fields[5]; createCursor(player.uid, name, room.identity.clr); - setup_chat(name, room.name); } break; case "win": { elem.info.innerHTML = "You win! Click here to play again."; @@ -331,10 +330,3 @@ volChanged(); }, 30000); })(); -function setup_chat(name, room_name) { - let chat_iframe = document.createElement("iframe"); - // FIXME the url should come from the server - chat_iframe.setAttribute("src", "/gamja?channels=" + encodeURIComponent(`#mines-${room_name}`) + "&nick=" + encodeURIComponent(name)); - elem.chat_div.appendChild(chat_iframe); -} - diff --git a/assets/room.html b/assets/room.html index f8a3f1b..71ba87f 100644 --- a/assets/room.html +++ b/assets/room.html @@ -12,7 +12,6 @@ -
@@ -29,8 +28,6 @@ back to lobby
-
-
-- cgit v1.2.3