Spinny Counter
This commit is contained in:
parent
689e66e1d5
commit
4efc1e09b3
2 changed files with 19 additions and 1 deletions
|
@ -38,7 +38,7 @@
|
||||||
<div style="width: 50%;">
|
<div style="width: 50%;">
|
||||||
<div style="float: left;">
|
<div style="float: left;">
|
||||||
<p>They/Them</p>
|
<p>They/Them</p>
|
||||||
<p>Developer</p>
|
<p class="spinnyCount">Developer</p>
|
||||||
<!-- <p>Dating Asahi <3</p> -->
|
<!-- <p>Dating Asahi <3</p> -->
|
||||||
<p>{DISCORD_STATUS}</p>
|
<p>{DISCORD_STATUS}</p>
|
||||||
<!-- <p>THIS TEXT IS THE EPIC EXTREME FILLER TO TEST THE SITE'S FORMATTING :fire:</p> -->
|
<!-- <p>THIS TEXT IS THE EPIC EXTREME FILLER TO TEST THE SITE'S FORMATTING :fire:</p> -->
|
||||||
|
|
|
@ -2,12 +2,30 @@ var catsOnMars = new Audio("/snds/cats on mars.mp3")
|
||||||
var whipLash = new Audio("/snds/johnny-test-whip-crack.mp3")
|
var whipLash = new Audio("/snds/johnny-test-whip-crack.mp3")
|
||||||
catsOnMars.loop = true
|
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.onbeforeunload = function () {
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
|
secondLoop()
|
||||||
|
|
||||||
var pfp = document.querySelector(".pfp")
|
var pfp = document.querySelector(".pfp")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue