mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
allbuild commit d9499077
This commit is contained in:
parent
d94990779f
commit
9b4750aed4
36
dist/vendor.bundle.js
vendored
36
dist/vendor.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/vendor.bundle.js.map
vendored
2
dist/vendor.bundle.js.map
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
@ -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)}>
|
||||
|
Loading…
Reference in New Issue
Block a user