From: Ruben Beltran del Rio Date: Mon, 9 Sep 2024 20:08:11 +0000 (+0200) Subject: More parens X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/commitdiff_plain/c9a4c7e5a909dba40697b01f1077e9fefc0fa209?hp=92984c46263aee10ab6a6bb179ab9c174075895b More parens --- diff --git a/js/animation.js b/js/animation.js index 23d3ca5..c71ee0c 100644 --- a/js/animation.js +++ b/js/animation.js @@ -86,7 +86,7 @@ i.c = (i.c + 2) % 101 } - canvas.addEventListener('click', () => {Z ? Z=0:(Z=1;frm())}) + canvas.addEventListener('click', () => (Z ? Z=0:(Z=1;frm()))) function frm(t) { if (Z) requestAnimationFrame(frm)