Skip to content

Commit

Permalink
change timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sugoides committed Feb 13, 2024
1 parent f472012 commit b45596c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions will-you-be-my-valentine/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ let noCount = 0;
function preloadImages() {
// Preload images
const preloadedImages = [new Image().src=`img/cat-yes.jpg`];



for (let i = 1; i <= MAX_IMAGES; i++) {
const img = new Image();
img.src = `img/cat-${i}.jpg`;
Expand Down Expand Up @@ -46,7 +43,7 @@ function handleYesClick() {
changeImage("yes");
setTimeout(function() {
window.location.href = '../flowers/';
}, 5000);
}, 2000);

}

Expand Down

0 comments on commit b45596c

Please sign in to comment.