From f0fc790e60940129b0cad5791b8cf59d42368bd3 Mon Sep 17 00:00:00 2001 From: Thanapat Date: Thu, 13 Feb 2025 11:03:42 +0700 Subject: [PATCH] update remove element --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 0154bec..356548d 100644 --- a/script.js +++ b/script.js @@ -76,6 +76,7 @@ function handleNoClick() { messageIndex = (messageIndex + 1) % messages.length; const currentSize = parseFloat(window.getComputedStyle(yesButton).fontSize); yesButton.style.fontSize = `${currentSize * 1.5}px`; + if(messageIndex>messages.length*2) document.querySelector('.no-button').remove() } function handleYesClick() {