X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/c9a4c7e5a909dba40697b01f1077e9fefc0fa209..98bd88385dbbdfbd719948eb0cfa705481dd58b5:/js/animation.js?ds=inline diff --git a/js/animation.js b/js/animation.js index c71ee0c..f1a624d 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:(frm(),1))) frm() } )()