1var Interstitials = { 2 SelfCertifications: [], 3 Externals: [], 4 Internals: [], 5 AddSelfCertification: function (selfCert) { 6 Interstitials.SelfCertifications.push(selfCert); 7 } 8} 9 10function IsHcpLink(Urllink) { 11 12 return getQueryStringValueFromUrl(Urllink, "hcp"); 13} 14 15var localMarketsObj = new Object(); 16 17 18jQuery(document).ready(function ($) { 19 20 if ($(".interstitial")[0]) { 21 //$(document).ready(function () { 22 /*INTERSTITIAL POPUP*/ 23 $("body").append("<div id='interstitial-overlay' alt='Close Window' title='Close Window'></div>"); 24 25 var countryName; 26 27 $("a").click(function (e) { 28 var thishostname = window.location.hostname; 29 var currentLink = $(this).attr('href'); 30 31 var protocolAgnosticLink = currentLink == undefined ? undefined : currentLink.replace(/http(s)?\:\/\//i, ''); 32 var currentId = $(this).attr('id'); 33 if (currentLink != undefined && currentLink != "" && currentLink != "/" && currentLink != "#" && !$(this).hasClass("interstitial-anchor") && !$(e.srcElement).hasClass("nav-toggle")) { 34 var currentpathArray = $.trim(currentLink).split('/'); 35 var found1 = $.inArray('http:', currentpathArray); 36 var found2 = $.inArray('https:', currentpathArray); 37 if (found1 > -1 || found2 > -1) { 38 var currentdomain = currentpathArray[2]; 39 if (typeof __externalInterstitialWhitelist != 'undefined' && $.inArray(currentdomain, __externalInterstitialWhitelist) > -1) return; 40 if (thishostname != currentdomain) { 41 console.log("Exit"); 42 $("#interstitial-overlay").show(); 43 $(".external-interstitial").show(); 44 if (currentId == "hcp_popup") { 45 $('.external-interstitial .exist').hide(); 46 $('.external-interstitial .hcpexist').show(); 47 } else { 48 $('.external-interstitial .exist').show(); 49 $('.external-interstitial .hcpexist').hide(); 50 } 51 $(".external-interstitial .continue a").attr('href', currentLink); 52 setTimeout(function () { 53 $(".external-interstitial a.interstitial-anchor").focus(); 54 }); 55 e.preventDefault(); 56 } 57 } 58 } 59 }); 60 61 $(document).keyup(function (e) { 62 if (e.keyCode == 27) { 63 $("#interstitial-overlay").hide(); 64 $(".interstitial").hide(); 65 } 66 }); 67 $(".interstitial-exit-icon, .interstitial .left").click(function (e) { 68 $("#interstitial-overlay").hide(); 69 $(".interstitial").hide(); 70 e.preventDefault(); 71 }); 72 $("#interstitial-overlay").click(function (e) { 73 if ($('.self-cert-interstitial').is(":visible")) { 74 return; 75 } 76 $("#interstitial-overlay").hide(); 77 $(".interstitial").hide(); 78 e.preventDefault(); 79 }); 80 $(".interstitial .cancel a").click(function (e) { 81 $("#interstitial-overlay").hide(); 82 $(".interstitial").hide(); 83 e.preventDefault(); 84 }); 85 /*$("#special").click(function (e) { 86 alert('welcome special'); 87 });*/ 88 $(".interstitial .continue a").click(function (e) { 89 if ($('.self-cert-interstitial').is(":visible")) { 90 // localStorage.setItem("hcppopup", now); 91 } 92 $("#interstitial-overlay").hide(); 93 $(".interstitial").hide(); 94 if ($(".interstitial").filter(':visible').length < 1) { 95 $("#interstitial-overlay").hide(); 96 } 97 }); 98 //}); 99 }; 100 101}); 102 103
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.