diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-20 17:06:04 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 12:53:18 +0100 |
commit | fcad5df0821e674c7f0fc7700707cd9be28fafd9 (patch) | |
tree | 3d3d95ff35ffbcaeb6c7957292b9f7338bbf6ec3 | |
parent | 5b88b82e18ed8810c2cec9611cea200fe71eed85 (diff) | |
download | hammer-of-the-scots-fcad5df0821e674c7f0fc7700707cd9be28fafd9.tar.gz |
Use ID instead of class for turn_info.
-rw-r--r-- | play.html | 4 | ||||
-rw-r--r-- | ui.js | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -21,7 +21,7 @@ #grid_top.your_turn { background-color: orange; } .one .role_name { background-color: salmon; } .two .role_name { background-color: skyblue; } -.turn_info { background-color: gainsboro; } +#turn_info { background-color: gainsboro; } #log { background-color: ghostwhite; } #log .st { background-color: #053; color: white; font-weight: bold; } @@ -406,7 +406,7 @@ div.block { </div> </div> - <div class="turn_info">-</div> + <div id="turn_info">-</div> </div> <div id="log"></div> @@ -753,7 +753,7 @@ function on_update() { document.getElementById("england_vp").textContent = game.e_vp; document.getElementById("scotland_vp").textContent = game.s_vp; - document.querySelector(".turn_info").textContent = `Turn ${game.turn} of Year ${game.year}`; + document.getElementById("turn_info").textContent = `Turn ${game.turn} of Year ${game.year}`; update_cards(); update_map(); |