(function () {
- if (window.matchMedia(`(prefers-reduced-motion: reduce)`).matches === true) return;
+ if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return
var K = document.querySelector('canvas'),
{ random: R, PI, cos: C, sin: S, atan2: A } = Math,
i.c = (i.c + 2) % 101
}
- canvas.addEventListener('click', () => {Z ? Z=0:(Z=1;frm())})
-
function frm(t) {
if (Z) requestAnimationFrame(frm)
}
}
+ K.addEventListener('click', () => (Z=Z?0:1&&frm()))
frm()
}
)()