diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-09-16 19:35:45 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | 4d7494341aaf970e599d1eb6f058bf9a077ac972 (patch) | |
tree | 17ea0a66d38632e82ec17b0244b994c6604c4d8a | |
parent | 8eb9e23aa7ed0269cfc1cbbb8a9bfa9107bf3a25 (diff) | |
download | wilderness-war-4d7494341aaf970e599d1eb6f058bf9a077ac972.tar.gz |
Hide "Discard" card menu option unless you hold down shift.
-rw-r--r-- | play.css | 1 | ||||
-rw-r--r-- | play.html | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -166,6 +166,7 @@ aside { width: 220px; } #popup div.enabled { color: black; display: block; } #popup div.enabled:hover { background-color: black; color: white; } #popup div.always { display: block; } +body:not(.shift) #popup #menu_discard { display: none; } /* MAP */ @@ -23,7 +23,7 @@ <div id="menu_activate_individually" class="always" onclick="on_activate_individually()">Activate individually</div> <div id="menu_construct_stockades" class="always" onclick="on_construct_stockades()">Construct stockades</div> <div id="menu_construct_forts" class="always" onclick="on_construct_forts()">Construct forts</div> -<div id="menu_discard" class="always" onclick="on_discard()">Discard</div> +<div id="menu_discard" onclick="on_discard()">Discard</div> </div> <div id="removed" class="card_list_dialog hide"> |