X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/40af835cd5c95e4de38fe9b8e1d0b4150f4a32e3..8729afa8d546cf24416337a908dc79188ced6832:/js/animation.js?ds=sidebyside diff --git a/js/animation.js b/js/animation.js index f2f998a..6dbd0be 100644 --- a/js/animation.js +++ b/js/animation.js @@ -104,7 +104,7 @@ } } - canvas.addEventListener('click', () => (Z ? Z=0:(Z=1&&frm()))) + K.addEventListener('click', () => ((Z=Z?0:1)&&frm())) frm() } )()