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-17 12:53:18 +0100
commit5b88b82e18ed8810c2cec9611cea200fe71eed85 (patch)
tree4e87bbec77be794a45c011c6f255db8098cec4d3 /ui.js
parent426a3b5ef8ff9f7e754abe00955593c8f9930867 (diff)
downloadhammer-of-the-scots-5b88b82e18ed8810c2cec9611cea200fe71eed85.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 0e8dbbc..4061cbd 100644
--- a/ui.js
+++ b/ui.js
@@ -647,13 +647,13 @@ function update_cards() {
}
if (!game.e_card)
- document.querySelector("#england_card").className = "small_card card_back";
+ document.getElementById("england_card").className = "small_card card_back";
else
- document.querySelector("#england_card").className = "small_card " + CARDS[game.e_card].image;
+ document.getElementById("england_card").className = "small_card " + CARDS[game.e_card].image;
if (!game.s_card)
- document.querySelector("#scotland_card").className = "small_card card_back";
+ document.getElementById("scotland_card").className = "small_card card_back";
else
- document.querySelector("#scotland_card").className = "small_card " + CARDS[game.s_card].image;
+ document.getElementById("scotland_card").className = "small_card " + CARDS[game.s_card].image;
}
function update_battle() {