From 27b37d954b7936b4e8654c7f3dc8b7ced8eab3d3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 20 Dec 2021 17:06:04 +0100 Subject: Use ID instead of class for turn_info. --- ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui.js') diff --git a/ui.js b/ui.js index 4481132..f69a376 100644 --- a/ui.js +++ b/ui.js @@ -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) -- cgit v1.2.3