summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-21 00:45:23 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-21 00:45:23 +0200
commitdf8770384ecea4f2cd170ad799f150f85823a709 (patch)
treeed64c240cd759cc2c921cc06727d708ce6a0bc1a
parent0c75bd8a604cf5e6913c35e5be752d9103ee93bb (diff)
downloadshores-of-tripoli-df8770384ecea4f2cd170ad799f150f85823a709.tar.gz
Add some room to the floor. Don't show menu if action is unavailable.
-rw-r--r--play.html3
-rw-r--r--play.js2
2 files changed, 4 insertions, 1 deletions
diff --git a/play.html b/play.html
index 7f93139..eef9568 100644
--- a/play.html
+++ b/play.html
@@ -242,6 +242,9 @@
<div id="us_card_3" class="show card us_card_3 us_core"></div>
</div>
+<br><br><br>
+<br><br><br>
+
</main>
<footer id="status"></footer>
diff --git a/play.js b/play.js
index 5f1062a..1dce5ca 100644
--- a/play.js
+++ b/play.js
@@ -501,7 +501,7 @@ function is_action(action, card) {
function show_popup_menu(evt, menu_id, target_id, title) {
let menu = document.getElementById(menu_id)
- let show = true
+ let show = false
for (let item of menu.querySelectorAll("li")) {
let action = item.dataset.action
if (action) {