diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-20 17:25:56 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:42:59 +0100 |
commit | 9aae82b288e41cef6e38d65ffb3a1403d6d06369 (patch) | |
tree | 0076d7ecd7f531d00bbf7db7440cd5b0d7361321 | |
parent | 89c7c9a9b45cbd89bb1eaea40c7b4dad3765f094 (diff) | |
download | 300-earth-and-water-9aae82b288e41cef6e38d65ffb3a1403d6d06369.tar.gz |
Use ID instead of class for hand in 300.
-rw-r--r-- | play.html | 4 | ||||
-rw-r--r-- | ui.js | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -40,7 +40,7 @@ padding: 3px; } -.hand.greek { +#hand.greek { background-color: rosybrown; border-radius: 10px; } @@ -414,7 +414,7 @@ </div> - <div class="hand"> + <div id="hand" class="hand"> <div id="card_1" class="card card_1"></div> <div id="card_2" class="card card_2"></div> <div id="card_3" class="card card_3"></div> @@ -369,9 +369,9 @@ function on_update() { } if (game.show_greek_hand) - document.querySelector(".hand").classList.add("greek"); + document.getElementById("hand").classList.add("greek"); else - document.querySelector(".hand").classList.remove("greek"); + document.getElementById("hand").classList.remove("greek"); function update_units(index, elements) { let overflow = []; |