Como fazer
Our How-to-do articles are designed to help you learn new skills and techniques that you can put into practice right away.
Carregar Mais
270) {
initialScrollTriggered = true;
}
const newsletterSection = document.getElementById('newsletter');
const footerSection = document.getElementById('footer');
let isNearBottom = false;
if (newsletterSection) {
isNearBottom = (window.scrollY + window.innerHeight) > newsletterSection.offsetTop;
}
if (!isNearBottom && footerSection) {
isNearBottom = (window.scrollY + window.innerHeight) > footerSection.offsetTop;
}
showPopup = initialScrollTriggered && !isNearBottom;
}
">
Join Our Newsletter
Subscribe now