From 1a2218e7ff205ee160b13ce160c5d915e868ea6f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 20 Dec 2021 17:06:04 +0100 Subject: Use ID instead of class for turn_info. --- play.html | 4 ++-- ui.js | 2 +- 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 {
-
-
+
-
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); -- cgit v1.2.3