update remove element

This commit is contained in:
Thanapat 2025-02-13 11:03:42 +07:00
parent 402bc362db
commit f0fc790e60

View File

@ -76,6 +76,7 @@ function handleNoClick() {
messageIndex = (messageIndex + 1) % messages.length; messageIndex = (messageIndex + 1) % messages.length;
const currentSize = parseFloat(window.getComputedStyle(yesButton).fontSize); const currentSize = parseFloat(window.getComputedStyle(yesButton).fontSize);
yesButton.style.fontSize = `${currentSize * 1.5}px`; yesButton.style.fontSize = `${currentSize * 1.5}px`;
if(messageIndex>messages.length*2) document.querySelector('.no-button').remove()
} }
function handleYesClick() { function handleYesClick() {