summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-20 17:03:04 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commit95332a9d8d13cd16c544ae88a6d9ec7fe5c9352c (patch)
treef7264300a6f45a045b9300ce73cbd1ca9a0050f0 /ui.js
parent02d91454693650158b9bc7278f96c750d6ccab42 (diff)
downloadrichard-iii-95332a9d8d13cd16c544ae88a6d9ec7fe5c9352c.tar.gz
Use ID instead of class for map and mapwrap.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js8
1 files changed, 4 insertions, 4 deletions
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() {