From df8770384ecea4f2cd170ad799f150f85823a709 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 21 Oct 2023 00:45:23 +0200 Subject: Add some room to the floor. Don't show menu if action is unavailable. --- play.html | 3 +++ play.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/play.html b/play.html index 7f93139..eef9568 100644 --- a/play.html +++ b/play.html @@ -242,6 +242,9 @@
+


+


+ 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) { -- cgit v1.2.3