remove unnecessary /2

pull/143/head
Aevann 2023-04-30 00:00:43 +02:00
parent 0bf9e225f6
commit 631b7af1f7
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ const marsekoEl = document.getElementById("marseko");
function getRandomInt(max) {
return Math.max(32, Math.floor(Math.random() * max));
}
let marsekoPosX = getRandomInt(screen.availWidth/2);
let marsekoPosX = getRandomInt(screen.availWidth);
let marsekoPosY = getRandomInt(screen.availHeight);
marsekoEl.style.left = `${marsekoPosX}px`;
marsekoEl.style.top = `${marsekoPosY}px`;