summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-12-20 17:25:56 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:42:59 +0100
commit9aae82b288e41cef6e38d65ffb3a1403d6d06369 (patch)
tree0076d7ecd7f531d00bbf7db7440cd5b0d7361321
parent89c7c9a9b45cbd89bb1eaea40c7b4dad3765f094 (diff)
download300-earth-and-water-9aae82b288e41cef6e38d65ffb3a1403d6d06369.tar.gz
Use ID instead of class for hand in 300.
-rw-r--r--play.html4
-rw-r--r--ui.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/play.html b/play.html
index 064d054..9f16a10 100644
--- a/play.html
+++ b/play.html
@@ -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>
diff --git a/ui.js b/ui.js
index 71e3634..ec0ee88 100644
--- a/ui.js
+++ b/ui.js
@@ -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 = [];