From 26df7bdb09e0743525b7c290a5a28ca88dc0c5b8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 9 Jul 2021 13:25:51 +0200 Subject: Put current client role on body tag instead of grid_top. --- public/common/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public') 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"; -- cgit v1.2.3