summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-20 17:06:04 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commit1a2218e7ff205ee160b13ce160c5d915e868ea6f (patch)
tree437ba6d10684d04f7a79a1af1e4887ed2a401c72
parent95332a9d8d13cd16c544ae88a6d9ec7fe5c9352c (diff)
downloadrichard-iii-1a2218e7ff205ee160b13ce160c5d915e868ea6f.tar.gz
Use ID instead of class for turn_info.
-rw-r--r--play.html4
-rw-r--r--ui.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/play.html b/play.html
index bf66876..e5ae252 100644
--- a/play.html
+++ b/play.html
@@ -20,7 +20,7 @@
#grid_top.your_turn { background-color: orange; }
.one .role_name { background-color: salmon; }
.two .role_name { background-color: ghostwhite; }
-.turn_info { background-color: gainsboro; }
+#turn_info { background-color: gainsboro; }
#log { background-color: ghostwhite; }
#log .st { background-color: steelblue; color: white; font-weight: bold; }
@@ -387,7 +387,7 @@ div.block {
<div class="role_info"><div class="small_card card_back" id="york_card"></div></div>
</div>
- <div class="turn_info">-</div>
+ <div id="turn_info">-</div>
</div>
diff --git a/ui.js b/ui.js
index 0799191..53125ae 100644
--- a/ui.js
+++ b/ui.js
@@ -515,7 +515,7 @@ function update_map() {
let overflow = { Lancaster: [], York: [], Rebel: [] };
let layout = {};
- document.querySelector(".turn_info").textContent =
+ document.getElementById("turn_info").textContent =
"Campaign " + game.campaign +
"\nKing: " + block_name(game.king) +
"\nPretender: " + block_name(game.pretender);