summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-02 10:28:04 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commit4040ff3d9ea6d24599ea0295fd6a4889f7c89ee1 (patch)
tree8f0f7f1ab2696d8c155f69c00109e154101769fd
parent7d685bd85e3a7bd68081880bb144e360d58beba0 (diff)
downloadrichard-iii-4040ff3d9ea6d24599ea0295fd6a4889f7c89ee1.tar.gz
Show turn info bar on all block games.
-rw-r--r--play.html13
-rw-r--r--ui.js2
2 files changed, 3 insertions, 12 deletions
diff --git a/play.html b/play.html
index fd5e390..4d87e71 100644
--- a/play.html
+++ b/play.html
@@ -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>
diff --git a/ui.js b/ui.js
index 5e93d4a..90cda18 100644
--- a/ui.js
+++ b/ui.js
@@ -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);