Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SameerAhmed419 authored Aug 23, 2024
1 parent 642812c commit a4e1979
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ buttonToBuyCar.addEventListener("click", () => {
});
//Love Declaration
function love() {
const password = "asim";
const userEnteredPassword = prompt("Enter the password for the hidden feature or just continue: ");
const allElements = document.body.querySelectorAll("*");
if (userEnteredPassword !== password) {
alert("Wrong password: You won't see the hidden feature");
return;
}
setTimeout(()=>turnPink(allElements), 10000);
setTimeout(()=>showLoveImage(allElements), 15000);
}
Expand Down

0 comments on commit a4e1979

Please sign in to comment.