{
iconAnimation = Math.random() * 300
clicks++
if(clicks === 5){
iconAnimation = 0
}
}}
>
{/if}
{/if}
{
const miniGameDiv = document.getElementById('minigame-div')
const max = miniGameDiv.clientWidth - 70
iconAnimation = Math.random() * max
if(!miniGameStart){
if(time === 0){
time = 20
iconAnimation = 0
return
}
time = 20
score = 1
miniGameStart = true
const timer = setInterval(() => {
time -= 1
if(time <= 0){
miniGameStart = false
clearInterval(timer)
}
}, 700)
}
else{
score++
}
}}
>