1var tktssClose = sessionStorage.getItem("tkts"); 2var toasterdisplayRate = "once"; 3var toasterWrapper = document.querySelector("#tktsContainer #lightBoxContent"); 4var toasterFF = false, toasterSF = false; 5function setDisplayRate() { 6 switch(toasterdisplayRate){ 7 case 'always': 8 9 break; 10 11 case 'once': 12 localStorage.setItem("turnkeyPassCookie", 1); 13 //jQuery.cookie("turnkeyPassCookie", 1); 14 break; 15 } 16} 17jQuery(document).ready(function () { 18 var pageNameOption = {}; 19 function OmniPrep(omniVars, description) { 20 if ( typeof omniVars === "string") { 21 s_dtm.linkTrackVars = 'events'; 22 s_dtm.linkTrackEvents = omniVars; 23 s_dtm.events = omniVars; 24 } else { 25 s_dtm.linkTrackVars = 'events, linkTrackEvents'; 26 s_dtm = jQuery.extend(s_dtm, omniVars); 27 } 28 s_dtm.tl(this, 'o', description); 29 } 30 31 function hideToaster() { 32 jQuery("#lightBoxContent.lightBoxContent.tkt").removeClass('show_toaster').addClass('hide_toaster'); 33 setDisplayRate(); 34 } 35 36 function sendOmnitureEvent() { 37 var omniVars = {}; 38 omniVars.events = "event63"; 39 omniVars.linkTrackEvents = "event63"; 40 s_account = digitalData.settings.reportSuites; 41 var turnkeyLightboxDescription = s_dtm.pageName + ':Email Sign-up Form:Toaster'; 42 OmniPrep(omniVars, turnkeyLightboxDescription); 43 } 44 45 var scrollHandler = function() { 46 if(toasterWrapper){ 47 var windowpos = jQuery(window).scrollTop(); 48 if (localStorage.getItem("turnkeyPassCookie") === null || localStorage.getItem("turnkeyPassCookie") === undefined) { 49 50 //if (windowpos + jQuery(window).height() == jQuery(document).height()) { 51 if (window.pageYOffset >= (document.documentElement.scrollHeight/4 )) { 52 jQuery("#lightBoxContent.lightBoxContent.tkt").removeClass('hide_toaster').addClass('show_toaster'); 53 var turnkeyLightboxOmniVars = {}; 54 turnkeyLightboxOmniVars.eVar52 = 'Toaster:Email Sign-up Form'; 55 turnkeyLightboxOmniVars.events = "event62"; 56 turnkeyLightboxOmniVars.linkTrackEvents = "event62"; 57 s_account = digitalData.settings.reportSuites; 58 var turnkeyLightboxDescription = digitalData.page.pageInfo.pageName + ':Email Sign-up Form:Toaster'; 59 OmniPrep(turnkeyLightboxOmniVars, turnkeyLightboxDescription); 60 jQuery("#tktContainer .lightBoxContent.tkt .submit").click(function() { 61 sendOmnitureEvent(); 62 }) 63 //s_dtmClearvars(); 64 jQuery(window).unbind('scroll', scrollHandler); 65 }} 66 } 67 }; 68 var s = jQuery("body"); 69 var pos = s.offset().top; 70 jQuery(window).scroll(scrollHandler); 71 jQuery('.turnKeyClose.close').click(function() { 72 var turnkeyLightboxClose = digitalData.page.pageInfo.pageName + ":Toaster: Close:Click"; 73 OmniPrep({}, turnkeyLightboxClose); 74 hideToaster(); 75 }); 76 77 78 79});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.