From a0bcafdf179911391202b4051c247da9410232d2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 1 Jun 2024 11:09:43 +0200 Subject: test zooming in fate cards by clicking on them --- play.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'play.js') 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) { -- cgit v1.2.3