diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-10-06 13:37:16 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:31:29 +0100 |
commit | 57a65847177425776c348da5fa82eec4afeee608 (patch) | |
tree | 1c3f28ebe7068d29a266699a43fd96f87af46e88 /play.js | |
parent | f78698d6f442ed08337e7d0722fbb83cab769f10 (diff) | |
download | pax-pamir-57a65847177425776c348da5fa82eec4afeee608.tar.gz |
Fix display of presence.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 = "" |