diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-06-22 12:44:15 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-06-22 12:44:15 +0200 |
commit | 2130e4b6486bf7dff444a954241e07535d221071 (patch) | |
tree | c1b3223505f514a58743bfec0e07af716ec0446a | |
parent | a0fdc24e3c84ffc62ae21b7c0c2806b70cdcb414 (diff) | |
download | friedrich-2130e4b6486bf7dff444a954241e07535d221071.tar.gz |
Show offensive option in player list.
-rw-r--r-- | play.css | 2 | ||||
-rw-r--r-- | play.js | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -24,6 +24,8 @@ #role_Maria_Theresa { background-color: var(--color-role-austria) } #role_Pompadour { background-color: var(--color-role-france) } +#role_Frederick.oo .role_name::after { content: " (OO)" } + .role.active span { font-weight: bold } header.your_turn.prussia { background-color: var(--color-light-prussia); } @@ -1157,6 +1157,8 @@ function on_update() { ui.header.classList.toggle("imperial", view.power === P_IMPERIAL) ui.header.classList.toggle("france", view.power === P_FRANCE) + roles.Frederick.element.classList.toggle("oo", !!view.oo) + update_player_power_list("Frederick") update_player_power_list("Elisabeth") update_player_power_list("Maria Theresa") |