summaryrefslogtreecommitdiff
path: root/page.html
diff options
context:
space:
mode:
authorstale <redkugelblitzin@gmail.com>2022-05-11 08:28:20 -0300
committerstale <redkugelblitzin@gmail.com>2022-05-11 08:28:20 -0300
commit8d02c5653079039bf748e1d0748d220cf933b725 (patch)
tree3284ff2e92a4909c9106e84f0ce0d70352ee9d11 /page.html
parent5d3ab3dcf8deb887877523e0293237bcee804b1b (diff)
fixes
Diffstat (limited to 'page.html')
-rw-r--r--page.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/page.html b/page.html
index 78df322..6806e54 100644
--- a/page.html
+++ b/page.html
@@ -46,7 +46,7 @@
<script>
window.id = NaN;
let wsproto = (window.location.protocol == "https:")? "wss:": "ws:";
- let s = new WebSocket(`${wsproto}//${window.location.hostname}:${window.location.port}/ws`);
+ let s = new WebSocket(`${wsproto}//${window.location.hostname}:${window.location.port}${window.location.pathname}ws`);
let info_elem = document.getElementById("miscinfo");
let board_elem = document.getElementById("board");
let name = "deadbeef";
@@ -62,6 +62,7 @@
s.onopen = function(e) {
info_elem.innerHTML =
`<input id="name-in" type="text">
+ <input id="clr-in" type="color"></input>
<button onclick=register()>Join</button>`;
}
s.onmessage = function(e) {