summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-09 13:25:51 +0200
committerTor Andersson <tor@ccxvii.net>2021-07-09 13:25:51 +0200
commit26df7bdb09e0743525b7c290a5a28ca88dc0c5b8 (patch)
treee9abf76f1706885b48f919d65c7a5f33bea47aca /public
parent51dc768d9daa7216fede2ac7eb9bfd4643d77a52 (diff)
downloadserver-26df7bdb09e0743525b7c290a5a28ca88dc0c5b8.tar.gz
Put current client role on body tag instead of grid_top.
Diffstat (limited to 'public')
-rw-r--r--public/common/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/common/client.js b/public/common/client.js
index 7ac3b48..ccbde0e 100644
--- a/public/common/client.js
+++ b/public/common/client.js
@@ -221,7 +221,7 @@ function init_client(roles) {
player = me.replace(/ /g, '_');
if (player === "Observer")
document.querySelector(".chat_button").style.display = "none";
- document.querySelector(".grid_top").classList.add(player);
+ document.querySelector("body").classList.add(player);
for (let i = 0; i < roles.length; ++i) {
let pr = players.find(p => p.role === roles[i]);
document.querySelector(USER_SEL[i]).textContent = pr ? pr.user_name : "NONE";