update remove element
This commit is contained in:
parent
402bc362db
commit
f0fc790e60
@ -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() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user