summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-22 12:48:16 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:38 +0100
commit7bb46dfeeef808b3479b34dcba9243df5f96ee12 (patch)
tree2e3a87ff3ed0b9e13ca9ebcd111145a71a6fee01 /ui.js
parent89366b0aff5217665ea511f856681f9a60602c2e (diff)
downloadcrusader-rex-7bb46dfeeef808b3479b34dcba9243df5f96ee12.tar.gz
crusader: Highlight timeline with current year.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index f25f5e4..c0c0ee4 100644
--- a/ui.js
+++ b/ui.js
@@ -520,6 +520,7 @@ function hide_block(element) {
function update_map() {
let layout = {};
+ document.getElementById("timeline").className = "year_" + game.year;
document.getElementById("turn").textContent =
"Turn " + game.turn + " of Year " + game.year;