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:19:39 +0100 |
commit | 27b37d954b7936b4e8654c7f3dc8b7ced8eab3d3 (patch) | |
tree | 4e17c54d2edab2f3fa9c7b10d0ca4fcdf98c55c1 /ui.js | |
parent | 05a157a1979478d7a714a12af1230f2037b2f0de (diff) | |
download | crusader-rex-27b37d954b7936b4e8654c7f3dc8b7ced8eab3d3.tar.gz |
Use ID instead of class for turn_info.
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -508,13 +508,13 @@ function update_map() { document.getElementById("saracen_vp").textContent = game.s_vp + " VP"; document.getElementById("timeline").className = "year_" + game.year; if (game.turn < 1) - document.querySelector(".turn_info").textContent = + document.getElementById("turn_info").textContent = "Year " + game.year; else if (game.turn < 6) - document.querySelector(".turn_info").textContent = + document.getElementById("turn_info").textContent = "Turn " + game.turn + " of Year " + game.year; else - document.querySelector(".turn_info").textContent = + document.getElementById("turn_info").textContent = "Winter Turn of Year " + game.year; for (let town in TOWNS) |