From e00fa116c51e728e341e48e4c5f9f09cf4d416fc Mon Sep 17 00:00:00 2001 From: stale Date: Sun, 5 Jun 2022 20:43:32 -0300 Subject: code cleanup, floodfill algo changed to iterative --- assets/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets/client.js') diff --git a/assets/client.js b/assets/client.js index 14e95f0..33ad796 100644 --- a/assets/client.js +++ b/assets/client.js @@ -11,7 +11,7 @@ window.room = { }; window.info_elem = document.getElementById("miscinfo"); window.identform = document.getElementById("identform"); -window.statusline = document.getElementById("statusline"); +window.statusline = document.getElementsByClassName("statusline")[0]; window.bcont_elem = document.getElementById("board-container"); window.board_elem = document.getElementById("board"); window.cursor_frame = document.getElementById("cursor-frame"); @@ -34,7 +34,7 @@ function join() { room.socket = connect(); statusline.style.display = "flex"; } -function new_ident_btn() { +function clear_ident() { localStorage.removeItem("identity"); document.location.reload(); } -- cgit v1.2.3