anti explod movement
This commit is contained in:
parent
b3401ddda4
commit
028f513797
1 changed files with 9 additions and 2 deletions
|
@ -8,6 +8,7 @@ import { InfoCard } from './components/middlecard.tsx';
|
|||
export const [shouldpopup, setpopup] = createSignal(false)
|
||||
export const [ishover, setishover] = createSignal(false)
|
||||
|
||||
let explodcount = 0
|
||||
const isitmybd = () => new Date().toISOString().slice(5, 10) === '08-22';
|
||||
|
||||
function getRandomVivsieWord() {
|
||||
|
@ -33,6 +34,7 @@ function vivsiepop() {
|
|||
blep.forEach(fuckshit)
|
||||
}
|
||||
function nyaboom() {
|
||||
explodcount++
|
||||
const blep = document.body.childNodes;
|
||||
function fuckshit(node: ChildNode) {
|
||||
if (node.nodeType === Node.TEXT_NODE) {
|
||||
|
@ -135,8 +137,13 @@ function App() {
|
|||
<p>echo if it was written by vivsiepop</p>
|
||||
</div>
|
||||
<div class="musicbutton" onclick={() => {
|
||||
if (explodcount > 5) {
|
||||
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={{
|
||||
"margin-left": "0.3em",
|
||||
|
|
Loading…
Reference in a new issue