aboutsummaryrefslogtreecommitdiff
path: root/client.js
diff options
context:
space:
mode:
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, "&");