summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-10-06 13:37:16 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commit57a65847177425776c348da5fa82eec4afeee608 (patch)
tree1c3f28ebe7068d29a266699a43fd96f87af46e88 /play.js
parentf78698d6f442ed08337e7d0722fbb83cab769f10 (diff)
downloadpax-pamir-57a65847177425776c348da5fa82eec4afeee608.tar.gz
Fix display of presence.
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/play.js b/play.js
index 7de586f..cc65b47 100644
--- a/play.js
+++ b/play.js
@@ -648,7 +648,9 @@ function on_update() {
ui.player[p].prize.textContent = view.players[p].prizes + " prizes"
}
- ui.player[p].role.className = "role " + view.players[p].loyalty;
+ ui.player[p].role.classList.toggle("Afghan", view.players[p].loyalty == "Afghan")
+ ui.player[p].role.classList.toggle("British", view.players[p].loyalty == "British")
+ ui.player[p].role.classList.toggle("Russian", view.players[p].loyalty == "Russian")
ui.player[p].role.classList.toggle("active", p === player_index[view.active])
let a = ""