From 4e8dfae6870d46887dd6be8e08426cf0b821f27d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 2 Jun 2024 12:46:14 +0200 Subject: add button to toggle "shift" display on mobile --- play.css | 8 ++++++++ play.html | 1 + play.js | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/play.css b/play.css index 98236ee..1f72299 100644 --- a/play.css +++ b/play.css @@ -423,6 +423,14 @@ span.suit.reserve { color: var(--color-reserve); font-weight: bold; font-family: .number.france { background-color: var(--color-france); } */ +/* CARD COUNTING AIDS */ + +@media (hover: hover) { + #shift_button { + display: none; + } +} + /* CARDS */ .card { diff --git a/play.html b/play.html index d2848c9..73242cc 100644 --- a/play.html +++ b/play.html @@ -28,6 +28,7 @@ + diff --git a/play.js b/play.js index 4088a83..5d486c2 100644 --- a/play.js +++ b/play.js @@ -18,6 +18,10 @@ function toggle_pieces() { } } +function toggle_shift() { + document.body.classList.toggle("shift") +} + /* DATA */ const R_FREDERICK = "Frederick" -- cgit v1.2.3