diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-20 17:03:04 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:12:55 +0100 |
commit | 95332a9d8d13cd16c544ae88a6d9ec7fe5c9352c (patch) | |
tree | f7264300a6f45a045b9300ce73cbd1ca9a0050f0 /ui.js | |
parent | 02d91454693650158b9bc7278f96c750d6ccab42 (diff) | |
download | richard-iii-95332a9d8d13cd16c544ae88a6d9ec7fe5c9352c.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
@@ -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() { |