diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-06-01 11:09:43 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-06-01 11:09:43 +0200 |
commit | a0bcafdf179911391202b4051c247da9410232d2 (patch) | |
tree | c312364d0fa7e2d0fc594b9a6d8dde207778711e /play.js | |
parent | f5e3306c0a792d862be8d2ab3a40c9b4277617be (diff) | |
download | friedrich-a0bcafdf179911391202b4051c247da9410232d2.tar.gz |
test zooming in fate cards by clicking on them
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |