I have a popup and would like it to open after the user is already a while on a particular link.
My JS looks like this:
if($('.popup-banner').length > 0) {
(window.location.href === '/')
$('.popup-banner .fechar, .popup-banner .link-fechar, .popup-overlay').click(function() {
$('.popup-overlay, .popup-banner').fadeOut(400);
});
}
Where do I put the delay ?