X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/92984c46263aee10ab6a6bb179ab9c174075895b..947ae817b8c3a2c0060d1457d7ff19d3e725a924:/js/animation.js?ds=sidebyside diff --git a/js/animation.js b/js/animation.js index 23d3ca5..6785a4f 100644 --- a/js/animation.js +++ b/js/animation.js @@ -86,8 +86,6 @@ i.c = (i.c + 2) % 101 } - canvas.addEventListener('click', () => {Z ? Z=0:(Z=1;frm())}) - function frm(t) { if (Z) requestAnimationFrame(frm) @@ -106,6 +104,7 @@ } } + K.addEventListener('click', () => (Z=Z?0:1&&frm())) frm() } )()