From 5d1e227d53cd8cb3028c8548b7aef57831360d19 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Sat, 24 Feb 2018 12:57:23 +0100 Subject: cleanup --- client.css | 3 --- client.js | 10 ++++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/client.css b/client.css index 03f1d07..b5c9967 100644 --- a/client.css +++ b/client.css @@ -251,7 +251,4 @@ input { .client_prosecutor { position: absolute; left: 130px; -} - - } \ No newline at end of file diff --git a/client.js b/client.js index 8bab297..94936bb 100644 --- a/client.js +++ b/client.js @@ -152,7 +152,8 @@ function changeBlipVolume() { function changeCharacter(event) { serv.send("FC#%"); - document.getElementById("client_charselect").style.display = "block"; + document.getElementById("client_charselect").style.display = "block"; + document.getElementById("client_emo").innerHTML = ""; } function imgError(image) { @@ -296,7 +297,8 @@ function onOpen(e) { serv.send("HI#" + navigator.userAgent + "#%"); } else { document.getElementById("client_loading").style.display = "none"; - } + } + updater = setInterval(sendCheck, 5000); }; function onClose(e) { @@ -580,6 +582,10 @@ function sendMusic(song) { console.log("Music sent!"); } +function sendCheck() { + serv.send("CHECK#"+me+"#%"); +} + function escapeHtml(unsafe) { var transfer = unsafe; transfer.replace(/&/g, "&"); -- cgit