aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.css3
-rw-r--r--client.js10
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, "&");