aboutsummaryrefslogtreecommitdiff
path: root/master.js
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2017-12-12 16:39:05 +0100
committerstonedDiscord <stoned@derpymail.org>2017-12-12 16:39:05 +0100
commit198231c4685a90cf10d819be7eedaa265dc9404e (patch)
treec34654698ba9e0314685f28addb12bfc2826b685 /master.js
parent3bc7e930e2b96e1482e81380c51c00572d1b52f4 (diff)
ao2 edits and avail server now green
Diffstat (limited to 'master.js')
-rw-r--r--master.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/master.js b/master.js
index bab3e65..675db1a 100644
--- a/master.js
+++ b/master.js
@@ -47,7 +47,13 @@ function onMessage(e) {
header = msg.split('#', 2)[0];
arguments = msg.split('#').slice(1)
if (header == 'SN') {
- document.getElementById('masterlist').innerHTML += '<li onmouseover="setServ(' + arguments[0] + ')"><p>' + arguments[4] + '</p> <a class=\"button\" href=\"client.html?mode=watch&ip=' + arguments[1] + ':' + arguments[3] + '\">Watch</a><a class=\"button\" href=\"client.html?mode=join&ip=' + arguments[1] + ':' + arguments[3] + '\">Join</a></li><br/>'
+ console.log(arguments[2].substring(0, 7));
+ if (arguments[2].substring(0, 7) == 'serverD') {
+ unavv = 'class="available" '
+ }else{
+ unavv = ''
+ }
+ document.getElementById('masterlist').innerHTML += '<li ' + unavv + 'onmouseover="setServ(' + arguments[0] + ')"><p>' + arguments[4] + '</p> <a class=\"button\" href=\"client.html?mode=watch&ip=' + arguments[1] + ':' + arguments[3] + '\">Watch</a><a class=\"button\" href=\"client.html?mode=join&ip=' + arguments[1] + ':' + arguments[3] + '\">Join</a></li><br/>'
serverpics[arguments[0]] = arguments[2];
descs[arguments[0]] = arguments[5];
}