Skip to content

Commit

Permalink
fixed order of winner note to display on top of the stats container
Browse files Browse the repository at this point in the history
  • Loading branch information
szy-kenn committed Sep 18, 2024
1 parent 6af1005 commit 3f8b0d8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/sass/components/_note.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
z-index: 99999;
transition: all 0.2s ease;
border: 1px solid rgba(var(--secondary-rgb), 0.1);
filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.2));
Expand Down
2 changes: 0 additions & 2 deletions src/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ export async function copyToClipboard() {
evaluations.push(squares);
});

console.log(gameState);

if (gameState.guesses[gameState.guesses.length - 1].toLowerCase() === gameState.wordToGuess.toLowerCase()) {
evaluations.push(`Guessed the word in ${gameState.guesses.length} ${gameState.guesses.length === 1 ? "try" : "tries"} in ${getSettings().mode === "hard" ? "Hard Mode" : "Normal Mode"}.`);
Expand Down Expand Up @@ -1006,7 +1005,6 @@ document.addEventListener("keydown", async (event) => {
} else {
const wrongRow = getRow(currentRow);

console.log(currentRow);
wrongRow.classList.add("shake");
setTimeout(() => {
wrongRow.classList.remove("shake");
Expand Down

0 comments on commit 3f8b0d8

Please sign in to comment.