anti explod movement

This commit is contained in:
amy 2024-08-09 20:09:10 +03:30
parent b3401ddda4
commit 028f513797

View file

@ -8,6 +8,7 @@ import { InfoCard } from './components/middlecard.tsx';
export const [shouldpopup, setpopup] = createSignal(false) export const [shouldpopup, setpopup] = createSignal(false)
export const [ishover, setishover] = createSignal(false) export const [ishover, setishover] = createSignal(false)
let explodcount = 0
const isitmybd = () => new Date().toISOString().slice(5, 10) === '08-22'; const isitmybd = () => new Date().toISOString().slice(5, 10) === '08-22';
function getRandomVivsieWord() { function getRandomVivsieWord() {
@ -33,6 +34,7 @@ function vivsiepop() {
blep.forEach(fuckshit) blep.forEach(fuckshit)
} }
function nyaboom() { function nyaboom() {
explodcount++
const blep = document.body.childNodes; const blep = document.body.childNodes;
function fuckshit(node: ChildNode) { function fuckshit(node: ChildNode) {
if (node.nodeType === Node.TEXT_NODE) { if (node.nodeType === Node.TEXT_NODE) {
@ -135,8 +137,13 @@ function App() {
<p>echo if it was written by vivsiepop</p> <p>echo if it was written by vivsiepop</p>
</div> </div>
<div class="musicbutton" onclick={() => { <div class="musicbutton" onclick={() => {
new Audio("./explod.mp3").play() if (explodcount > 5) {
nyaboom() document.body.innerHTML = ""
setTimeout(() => {alert("sorry bud, you exploded so much that my document.body is gon")}, 500)
} else {
new Audio("./explod.mp3").play()
nyaboom()
}
}}> }}>
<img style={{ <img style={{
"margin-left": "0.3em", "margin-left": "0.3em",