Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kudatama authored Jan 22, 2025
1 parent 8db5313 commit f72e5fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function resizeYesButton() {

// Special case for the last "No" click
if (noClickCount === MAX_NO_CLICKS) {
newFontSize = currentFontSize * 1.1; // Reduce size for the final text
newFontSize = currentFontSize * 1.4; // Reduce size for the final text
}

yesButton.style.fontSize = `${newFontSize}px`;
Expand Down Expand Up @@ -99,7 +99,7 @@ noButton.addEventListener("click", () => {

// Play music for the first "No" click
if (noClickCount === 1) {
playMusic(0, 19500); // Play from 0 to 19.5 seconds
playMusic(0, 19780); // Play from 0 to 19.5 seconds
}

// After max "No" clicks, randomize "No" button position for subsequent clicks
Expand Down

0 comments on commit f72e5fe

Please sign in to comment.