Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/public/games/Balloon Popper/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ function resetGame() {
document.getElementById("restart-btn").addEventListener("click", resetGame);

// Balloon spawner
setInterval(spawnBalloon, 800);
clearInterval(window.__interval); window.__interval = setInterval(spawnBalloon, 800);

update();
2 changes: 1 addition & 1 deletion frontend/public/scripts/memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function gameWon() {
gameActive = false;

// Check for best score
if (!bestScore || moves < parseInt(bestScore)) {
if (!bestScore || moves < parseInt(bestScore, 10)) {
bestScore = moves;
localStorage.setItem('memoryBestScore', bestScore);
document.getElementById('bestScore').textContent = bestScore;
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/scripts/snake.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function trackVisit() {
},
credentials: "include",
body: JSON.stringify({ game: "snake" })
}).catch(() => { });
}).catch( => console.error());
}

function trackPlay() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/scripts/whack-a-mole.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function trackVisit() {
},
credentials: "include",
body: JSON.stringify({ game: "whack-a-mole" })
}).catch(() => { });
}).catch( => console.error());
}

function trackPlay() {
Expand Down