diff options
| -rw-r--r-- | client.css | 3 | ||||
| -rw-r--r-- | client.js | 10 |
2 files changed, 8 insertions, 5 deletions
@@ -251,7 +251,4 @@ input { .client_prosecutor { position: absolute; left: 130px; -} - - }
\ No newline at end of file @@ -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, "&"); |
