Skip to content
Closed
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/games/Fruit Slice/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ canvas.addEventListener("mousemove", (e) => {
document.getElementById("restart-btn").addEventListener("click", resetGame);

// Spawn fruits continuously
setInterval(spawnFruit, 900);
clearInterval(window.__interval); window.__interval = setInterval(spawnFruit, 900);

update();
2 changes: 1 addition & 1 deletion frontend/public/games/color grid/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function checkWin(){
if(isSolved()){
// update best if necessary
const key = bestKey(SIZE);
const prevBest = parseInt(localStorage.getItem(key) || '0',10) || 0;
const prevBest = parseInt(localStorage.getItem(key, 10) || '0',10) || 0;
if(prevBest===0 || moves < prevBest){
localStorage.setItem(key, moves);
bestEl.textContent = moves;
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/scripts/minesweeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class Minesweeper {
// Restore board content
document.querySelectorAll('.cell').forEach(cell => {
cell.style.background = cell.style.originalBackground || '';
const row = parseInt(cell.dataset.row);
const row = parseInt(cell.dataset.row, 10);
const col = parseInt(cell.dataset.col);
this.updateCellDisplay(row, col);
});
Expand Down