diff --git a/script.js b/script.js index f6c1ad1..5fcfd5d 100644 --- a/script.js +++ b/script.js @@ -8,6 +8,10 @@ yesBtn.addEventListener("click", () => { question.innerHTML = "Yay, see you on the 18th!"; gif.src = "https://media.giphy.com/media/UMon0fuimoAN9ueUNP/giphy.gif"; + // this will hide the "No" button after you click "Yes" + noBtn.style.display = "none"; + // this will center the "Yes" button when the "No" button is hidden + yesBtn.style.margin = "0 auto"; }); noBtn.addEventListener("mouseover", () => { @@ -20,4 +24,4 @@ noBtn.addEventListener("mouseover", () => { noBtn.style.left = randomX + "px"; noBtn.style.top = randomY + "px"; -}); \ No newline at end of file +});