summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorstale <redkugelblitzin@gmail.com>2022-11-19 02:12:46 -0300
committerstale <redkugelblitzin@gmail.com>2022-11-19 02:12:46 -0300
commit276c99182626b0350b33b58bd26e2140cdb894e3 (patch)
treeee5fa3d45571ff452914297c793c5ff09ab2c72a /assets
parent5e207ab59b3d5ce2ce316d8727886aa66147f758 (diff)
the chat is dead
Diffstat (limited to 'assets')
-rw-r--r--assets/client.js8
-rw-r--r--assets/room.html3
2 files changed, 0 insertions, 11 deletions
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 @@
<input id="clr-in" type="color" value="#33c033"></input>
<button>Join</button>
</form>
- <div id="splitscreen">
<div>
<div id="board-container">
<span id="board"></span>
@@ -29,8 +28,6 @@
<a href="..">back to lobby</a>
</div>
</div>
- <div id="chat-div"></div>
- </div>
</body>
<script src="https://unpkg.com/fflate"></script>
<script src="../client.js"></script>