From 95332a9d8d13cd16c544ae88a6d9ec7fe5c9352c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 20 Dec 2021 17:03:04 +0100 Subject: Use ID instead of class for map and mapwrap. --- ui.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ui.js') diff --git a/ui.js b/ui.js index 609c20d..0799191 100644 --- a/ui.js +++ b/ui.js @@ -664,13 +664,13 @@ function update_cards() { } if (!game.l_card) - document.querySelector("#lancaster_card").className = "small_card card_back"; + document.getElementById("lancaster_card").className = "small_card card_back"; else - document.querySelector("#lancaster_card").className = "small_card " + CARDS[game.l_card].image; + document.getElementById("lancaster_card").className = "small_card " + CARDS[game.l_card].image; if (!game.y_card) - document.querySelector("#york_card").className = "small_card card_back"; + document.getElementById("york_card").className = "small_card card_back"; else - document.querySelector("#york_card").className = "small_card " + CARDS[game.y_card].image; + document.getElementById("york_card").className = "small_card " + CARDS[game.y_card].image; } function update_battle() { -- cgit v1.2.3