summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-01 11:09:43 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-01 11:09:43 +0200
commita0bcafdf179911391202b4051c247da9410232d2 (patch)
treec312364d0fa7e2d0fc594b9a6d8dde207778711e /play.js
parentf5e3306c0a792d862be8d2ab3a40c9b4277617be (diff)
downloadfriedrich-a0bcafdf179911391202b4051c247da9410232d2.tar.gz
test zooming in fate cards by clicking on them
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/play.js b/play.js
index 7896724..6948f1d 100644
--- a/play.js
+++ b/play.js
@@ -494,6 +494,7 @@ function make_fate_card(fc) {
e.className = "card fate reverse"
else
e.className = "card fate c" + fc
+ e.onclick = on_click_fate_card
return e
}
@@ -701,6 +702,10 @@ function on_blur_piece() {
ui.status.textContent = ""
}
+function on_click_fate_card(evt) {
+ evt.target.classList.toggle("zoom")
+}
+
/* UPDATE UI */
function layout_general_offset(g, s) {