diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-20 17:06:04 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:08:56 +0100 |
commit | 0f402a882f6c5ac3fa8dcec8731b8adcf62ef834 (patch) | |
tree | e12d779b4a8d4b9880d8158acfdf66de03bcef95 | |
parent | fda8948d61cf9177d5a2df5fee2ffc44978e7e55 (diff) | |
download | julius-caesar-0f402a882f6c5ac3fa8dcec8731b8adcf62ef834.tar.gz |
Use ID instead of class for turn_info.
-rw-r--r-- | play.html | 4 | ||||
-rw-r--r-- | ui.js | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -22,7 +22,7 @@ #grid_top.your_turn { background-color: orange; } .one .role_name { background-color: salmon; } .two .role_name { background-color: #eb5; } -.turn_info { background-color: burlywood; } +#turn_info { background-color: burlywood; } #log { background-color: wheat; } #log .st { background-color: brown; color: gold; font-weight: bold; } @@ -322,7 +322,7 @@ body.Observer .columbia-labels .known.jupiter.Cleopatra { border: 3px solid #822 </div> </div> - <div class="turn_info">-</div> + <div id="turn_info">-</div> </div> <div id="log"></div> @@ -699,9 +699,9 @@ function on_update() { document.getElementById("caesar_vp").textContent = game.c_vp + " VP"; document.getElementById("pompeius_vp").textContent = game.p_vp + " VP"; if (game.turn < 1) - document.querySelector(".turn_info").textContent = `Year ${game.year}`; + document.getElementById("turn_info").textContent = `Year ${game.year}`; else - document.querySelector(".turn_info").textContent = `Turn ${game.turn} of Year ${game.year}`; + document.getElementById("turn_info").textContent = `Turn ${game.turn} of Year ${game.year}`; show_action_button("#undo_button", "undo"); show_action_button("#surprise_button", "surprise"); |