forked from seth/ipv4.army
uh
This commit is contained in:
parent
784c1c1c56
commit
a341bdde08
5 changed files with 17 additions and 132 deletions
|
@ -1,29 +1,20 @@
|
|||
import "tsx-dom";
|
||||
|
||||
import "beercss";
|
||||
|
||||
import App from "./App";
|
||||
import colors from "./utilities/colors.module.css";
|
||||
import { snacker } from "./utilities/snackbar";
|
||||
|
||||
document.documentElement.className = colors.offline || "";
|
||||
|
||||
document.body.appendChild(<App />);
|
||||
|
||||
let clicks = 0;
|
||||
let resetCount = "";
|
||||
|
||||
const effectTick = new Audio("https://no.ipv4.army/raw/Effect_Tick.ogg");
|
||||
document.onclick = () => {
|
||||
"vibrate" in navigator && navigator.vibrate(1);
|
||||
new Audio("https://no.ipv4.army/raw/Effect_Tick.ogg").play();
|
||||
|
||||
clicks++;
|
||||
|
||||
if (clicks % 10 === 0) {
|
||||
snacker({
|
||||
message: `Please stop.${resetCount}`,
|
||||
});
|
||||
resetCount += ".";
|
||||
}
|
||||
effectTick.currentTime = 0;
|
||||
effectTick.play()
|
||||
};
|
||||
|
||||
// You're garbage, let me collect you.
|
||||
fetch("/api/gc");
|
||||
fetch("/api/gc");
|
Loading…
Add table
Add a link
Reference in a new issue