diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-20 17:03:04 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 12:53:18 +0100 |
commit | 5b88b82e18ed8810c2cec9611cea200fe71eed85 (patch) | |
tree | 4e87bbec77be794a45c011c6f255db8098cec4d3 /ui.js | |
parent | 426a3b5ef8ff9f7e754abe00955593c8f9930867 (diff) | |
download | hammer-of-the-scots-5b88b82e18ed8810c2cec9611cea200fe71eed85.tar.gz |
Use ID instead of class for map and mapwrap.
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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() { |