From 4040ff3d9ea6d24599ea0295fd6a4889f7c89ee1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 2 Jul 2021 10:28:04 +0200 Subject: Show turn info bar on all block games. --- play.html | 13 ++----------- ui.js | 2 +- 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 {
-
-
+
-
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); -- cgit v1.2.3