// Only run the VSL timing script if it's not a redirect if (!window.isRedirect) { var cookieValue = getCookie("VITRAFOXIN-VSL"); console.log("cookieValue:"+cookieValue); if (cookieValue != "vsl-twn") { cookieValue = "vsl-twn"; setTimeout(function() { $(".hide-content").css("display", "block"); startTimer(); }, 945000); setTimeout(scheduleRandomNotifications, 2100000); } else { $(".hide-content").css("display", "block"); startTimer(); setTimeout(scheduleRandomNotifications, 5000); } setCookie("VITRAFOXIN-VSL", cookieValue, 30); } else { console.log('Skipping cookie setup due to redirect'); }