diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-02 10:28:04 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:12:55 +0100 |
commit | 4040ff3d9ea6d24599ea0295fd6a4889f7c89ee1 (patch) | |
tree | 8f0f7f1ab2696d8c155f69c00109e154101769fd | |
parent | 7d685bd85e3a7bd68081880bb144e360d58beba0 (diff) | |
download | richard-iii-4040ff3d9ea6d24599ea0295fd6a4889f7c89ee1.tar.gz |
Show turn info bar on all block games.
-rw-r--r-- | play.html | 13 | ||||
-rw-r--r-- | ui.js | 2 |
2 files changed, 3 insertions, 12 deletions
@@ -23,20 +23,11 @@ .role_info { background-color: silver; } .one .role_name { background-color: salmon; } .two .role_name { background-color: ghostwhite; } +.turn_info { background-color: gainsboro; } .battle_header { background-color: silver; } .battle_message { background-color: silver; } .battle_separator { background-color: silver; } -#turn { - padding: 8px 0px 8px 8px; - border-bottom: 1px solid black; - white-space: pre-wrap; - font-style: italic; - font-size: 12px; - line-height: 18px; - font-family: "Source Serif SmText"; -} - .hand { min-height: 300px; } @@ -382,7 +373,7 @@ div.block { <div class="role_info"><div class="small_card card_back" id="york_card"></div></div> </div> - <div id="turn">-</div> + <div class="turn_info">-</div> </div> @@ -483,7 +483,7 @@ function update_map() { let overflow = { Lancaster: [], York: [], Rebel: [] }; let layout = {}; - document.getElementById("turn").textContent = + document.querySelector(".turn_info").textContent = "Campaign " + game.campaign + "\nKing: " + block_name(game.king) + "\nPretender: " + block_name(game.pretender); |