summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-02-08 11:22:26 +0100
committerTor Andersson <tor@ccxvii.net>2025-02-08 11:22:26 +0100
commit28d026a9a61a820d054d8562eaaa0e2c82dd84be (patch)
treec8e351f49213121dab30bd483cd8e4d29cfceb59
parent6310dbf8ea1d74f919881f2e3a71b25a82a6b086 (diff)
download1989-dawn-of-freedom-28d026a9a61a820d054d8562eaaa0e2c82dd84be.tar.gz
add button to toggle markers
-rw-r--r--play.html1
-rw-r--r--play.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/play.html b/play.html
index 4dd5635..4bc29dd 100644
--- a/play.html
+++ b/play.html
@@ -31,6 +31,7 @@
<li><a target="_blank" href="/1989-dawn-of-freedom/info/cards.html">Card Gallery</a>
</menu>
</details>
+ <button onclick="toggle_pieces()"><img src="/images/earth-africa-europe.svg"></button>
<details>
<summary><img src="images/all-seeing-eye.svg"></summary>
<menu>
diff --git a/play.js b/play.js
index 55eb2b4..290c9b1 100644
--- a/play.js
+++ b/play.js
@@ -1150,3 +1150,7 @@ function toggle_discard() {
function toggle_removed() {
document.getElementById("removed_panel").classList.toggle("hide")
}
+
+function toggle_pieces() {
+ document.getElementById("markers").classList.toggle("hide")
+}