Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nder

merge
  • Loading branch information
wolfstam committed Oct 24, 2024
2 parents 9d40e7a + 4bed134 commit 911e461
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ for (let i = 1; i <= 9; i++) {

let draggedImage = null;

let fireworksDisplay;

function dragStart(e) {
draggedImage = e.target;
}
Expand Down Expand Up @@ -271,9 +273,9 @@ function checkSolution() {
if (!img || parseInt(img.src.slice(-5, -4)) !== puzzle_solution[i][j]) {
if (img) {
wrong = true;
break;
}
solved = false;
break;
}

}
Expand All @@ -289,8 +291,6 @@ function checkSolution() {
}


let fireworksDisplay;

function showModal(message) {
const modal = document.getElementById('modal');
const modalMessage = document.getElementById('modal-message');
Expand Down Expand Up @@ -338,4 +338,4 @@ function showSimpleModal(message) {
modal.style.display = 'none';
}
}
}
}

0 comments on commit 911e461

Please sign in to comment.