From 9aae82b288e41cef6e38d65ffb3a1403d6d06369 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 20 Dec 2021 17:25:56 +0100 Subject: Use ID instead of class for hand in 300. --- play.html | 4 ++-- ui.js | 4 ++-- 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 @@ -
+
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 = []; -- cgit v1.2.3