allbuild commit d9499077

This commit is contained in:
Olivier Gagnon 2022-04-01 01:18:03 -04:00
parent d94990779f
commit 9b4750aed4
5 changed files with 23 additions and 34 deletions

36
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -38,25 +38,14 @@ function isApr1(): boolean {
}
export function Apr1(): React.ReactElement {
// var colour = '#00ff00';
// async function play() {
// var frames = n.length;
// for (var i = 0; i < frames; i++) {
// document.getElementById("output").innerHTML = "";
// await new Promise(r => setTimeout(r, 100));
// }
// play();
// }
// play();
const [open, setOpen] = useState(isApr1());
const [n, setN] = useState(0);
if (!open) return <></>;
useEffect(() => {
const id = setInterval(() => setN((n) => (n + 1) % frames.length), 100);
return () => clearInterval(id);
}, []);
if (!open) return <></>;
return (
<Modal open={open} onClose={() => setOpen(false)}>