From 4efc1e09b3299389fdcd4b8263024684136e13fe Mon Sep 17 00:00:00 2001 From: Violet Date: Fri, 19 Apr 2024 14:31:26 +0000 Subject: [PATCH] Spinny Counter --- static/index.html | 2 +- static/main.js | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index 708acca..e471132 100644 --- a/static/index.html +++ b/static/index.html @@ -38,7 +38,7 @@

They/Them

-

Developer

+

Developer

{DISCORD_STATUS}

diff --git a/static/main.js b/static/main.js index f578535..d86213e 100644 --- a/static/main.js +++ b/static/main.js @@ -2,12 +2,30 @@ var catsOnMars = new Audio("/snds/cats on mars.mp3") var whipLash = new Audio("/snds/johnny-test-whip-crack.mp3") catsOnMars.loop = true +var spins = 1 + +function notif(text) { + document.body.innerHTML = "apple" +} + +function secondLoop() { + if (!catsOnMars.paused) { + spins += 0.5 + document.querySelector(".spinnyCount").innerHTML = `You have spun Violet ${Math.floor(spins)} times!` + } + + setTimeout(() => { + secondLoop() + }, 1000); +} + window.onbeforeunload = function () { window.scrollTo(0, 0); } window.onload = function () { window.scrollTo(0, 0); + secondLoop() var pfp = document.querySelector(".pfp")