diff options
| author | sD <stoned@derpymail.org> | 2019-12-23 18:48:19 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2019-12-23 18:48:19 +0100 |
| commit | 2f2a440fd8e8a553459c4cf915b34b3f83b74b4b (patch) | |
| tree | 048a4e4f3b8eb88beb0db6c3aebcb968e6cf9bd3 | |
| parent | d6d07a509e8ecbb54e37acea9399a8090c7c45c2 (diff) | |
add idle and play it safe
| -rw-r--r-- | webAO/client.css | 4 | ||||
| -rw-r--r-- | webAO/client.js | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/webAO/client.css b/webAO/client.css index 787d35f..7a0d449 100644 --- a/webAO/client.css +++ b/webAO/client.css @@ -525,6 +525,10 @@ img { background-color: rgb(54,198,68); } +.area-idle { + background-color: rgb(54,198,68); +} + .area-looking-for-players { background-color: rgb(255,255,0); } diff --git a/webAO/client.js b/webAO/client.js index fc42a17..5dac931 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -904,7 +904,7 @@ class Client extends EventEmitter { for (let i = 1; i < args.length - 1; i++) { this.areas[i].status = args[i]; const thisarea = document.getElementById("area" + i); - thisarea.classList = "area-button area-" + args[i]; + thisarea.classList = "area-button area-" + safe_tags(args[i]).toLowerCase(); } break; case "2": |
