Hi Guys,
I was working with @vincent his custom cookie pop-up. It is to set a cookie using Jquery, and use it to show a pop-up message or not.
Project is available here: Webflow - Cookie Template
The thing I’m trying to add is a delay on that pop-up, so the pop-up will show up after 10 seconds.
This is the code I managed to make, but for some reason it is not working.
$(document).ready(function(){
if (!Cookies.get('alert')) {
setTimeout(function(){
$('.popup-overlay').show();
}, 10000); }
Cookies.set('alert', true, { expires: 1 });
});
Thanks in advance!