Streaming live at 10am (PST)

Cookie popup overlay

Hey,
so i tryed to use this mans Cookie Template Guide but it just wont work for my site, i have already spent hours googeling other solutions or spent time figureing out why his template wont work on my site but i feel like i have just to little knowledge of code to be able to fix it on my own. Does anyone know what i have done wrong that prevents it from working ? …

The guide/template i tryed to follow:

Read only link:
https://preview.webflow.com/preview/brunner-schmidt?utm_source=brunner-schmidt&preview=b2f70be52667cae8c3643d02a0efceb9

thanks for reading,
wish you a great day !

Hi, there was a bug in the script shown on the page, not the script used on the page… I’ve fixed it.

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.js"></script>

<script>
_$(document).ready(function(){
  if (!$.cookie('alert')) {  
    $('.popup-overlay').show();    
    var date = new Date();      
    date.setTime(date.getTime() + 24 * 60 * 60 * 1000);  
    $.cookie('alert', true, { expires: date });
   }
});
</script>

Hi Vincent

Thank you so much for this.
Could you assist in changing the script to have it expire in a month’s time instead of 24 hours?
Thank you so much in advance.