aboutsummaryrefslogtreecommitdiff
path: root/client.js
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2018-02-24 12:57:23 +0100
committerstonedDiscord <stoned@derpymail.org>2018-02-24 12:57:23 +0100
commit5d1e227d53cd8cb3028c8548b7aef57831360d19 (patch)
tree937fcf1f6dc7c877fac81da1762b1f53cb5111b4 /client.js
parent1a7a3b4961dabacb3b0795769efeb2e01876875d (diff)
cleanup
Diffstat (limited to 'client.js')
-rw-r--r--client.js10
1 files changed, 8 insertions, 2 deletions
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, "&amp;");