Spin count

This commit is contained in:
Violet 2024-04-19 16:14:09 +00:00 committed by GitHub
parent 4efc1e09b3
commit df49e37654

View file

@ -9,9 +9,10 @@ function notif(text) {
}
function secondLoop() {
var pfp = document.querySelector(".pfp")
if (!catsOnMars.paused) {
spins += 0.5
document.querySelector(".spinnyCount").innerHTML = `You have spun Violet ${Math.floor(spins)} times!`
document.querySelector(".spinnyCount").innerHTML = `You have spun Violet ${Math.floor(spins)} times!` + pfp.style.animationDuration
}
setTimeout(() => {