HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srvntsweb01 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: admntserv (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/prestitravel.com/wp-content/themes/itfirm/assets/js/newsletter-popup.js
jQuery(document).ready(function(){  
  jQuery('.ct-newsletter-close').click(function(){
    jQuery('#ct-newsletter-popup').fadeOut();
  });
  
  var visits = jQuery.cookie('visits') || 0;
  visits++;
  
  jQuery.cookie('visits', visits, { expires: 1, path: '/' });
    
  if ( jQuery.cookie('visits') > 1 ) {
    jQuery('#ct-newsletter-popup').hide();
  } else {
    var pageHeight = jQuery(document).height();
    setTimeout(function(){
      jQuery('#ct-newsletter-popup').fadeIn();
    }, 5000);
  }

  if (jQuery.cookie('noShowWelcome')) { jQuery('#ct-newsletter-popup').hide(); }
});