1var $j = jQuery; 2var UploadSource = ''; 3 4$j(document).ready(function() { 5 6 var path = window.location.pathname; 7 var showOpt = true; 8 9 if(path.indexOf("/c/p/") != -1){ showOpt = false; } 10 if(path.indexOf("cm/future-cruise-credits.php") != -1){ showOpt = false; } 11 if(path.indexOf("cm/future-cruise-credits-response.php") != -1){ showOpt = false; } 12 if(path.indexOf("future-cruise-credits.php") != -1){ showOpt = false; } 13 if(path.indexOf("cruise-volunteer-response.php") != -1){ showOpt = false; } 14 if(path.indexOf("cruise-volunteer.php") != -1){ showOpt = false; } 15 if(path.indexOf("surveyMain.php") != -1){ showOpt = false; } 16 if(path.indexOf("src.php") != -1){ showOpt = false; } 17 if(path.indexOf("cm/src.php") != -1){ showOpt = false; } 18 if(path.indexOf("contactus-response.php") != -1){ showOpt = false; } 19 if(path.indexOf("cancelcruise.php") != -1){ showOpt = false; } 20 if(path.indexOf("cruise-quote.php") != -1){ showOpt = false; } 21 if(path.indexOf("favorites.php") != -1){ showOpt = false; } 22 if(path.indexOf("group-quote.php") != -1){ showOpt = false; } 23 if(path.indexOf("cruise-quote-response.php") != -1){ showOpt = false; } 24 if(path.indexOf("future-cruise-credits-response.php") != -1){ showOpt = false; } 25 if(path.indexOf("combo-detail.php") != -1){ showOpt = false; } 26 if(path.indexOf("cm/customItin.php") != -1){ showOpt = false; } 27 if(path.indexOf("/itineraries/") != -1){ showOpt = false; } 28 if(path.indexOf("cm/FitAddOn.php") != -1){ showOpt = false; } 29 if(path.indexOf("cm/FitCat-avail.php") != -1){ showOpt = false; } 30 if(path.indexOf("cm/FitConfirmation.php") != -1){ showOpt = false; } 31 if(path.indexOf("cm/FitContactAgent.php") != -1){ showOpt = false; } 32 if(path.indexOf("cm/FitContactAgentConfirmation.php") != -1){ showOpt = false; } 33 if(path.indexOf("cm/FitHowToBook.php") != -1){ showOpt = false; } 34 if(path.indexOf("cm/FitPassenger-prefs.php") != -1){ showOpt = false; } 35 if(path.indexOf("cm/FitPassengers.php") != -1){ showOpt = false; } 36 if(path.indexOf("cm/FitPayment.php") != -1){ showOpt = false; } 37 if(path.indexOf("cm/FitSummary.php") != -1){ showOpt = false; } 38 if(path.indexOf("/promos/military-cruise-deals.html") != -1){ showOpt = false; } 39 if(path.indexOf("/promos/senior-cruise-deals.html") != -1){ showOpt = false; } 40 if(path.indexOf("/c/cabin-detail.php") != -1){ showOpt = false; } 41 if(path.indexOf("/cabins/") != -1){ showOpt = false; } 42 43 if(showOpt){ 44 45 if(typeof ContentID !== 'undefined'){ 46 47 $j.post("/c/getOptInOverlay.php",{ 48 "ContentID":ContentID 49 },function(data){ 50 51 if(data.ShowBox){ 52 53 $j(data.HTMLContent).appendTo("body"); 54 55 var domain = data.Domain; 56 var ShowTimer = data.ShowTimer; 57 UploadSource = data.UploadSource; 58 59 if(ShowTimer == 0){ 60 61 $j('#email-signup-2016').modal('show'); 62 setCookie(); 63 ga('send','event','Opt-In Overlay','Open','Show Overlay'); 64 65 }else{ 66 var signupModal = new bootstrap.Modal(document.getElementById("email-signup-2016"), {}); 67 setTimeout(function(){ 68 signupModal.show(); 69 setCookie(); 70 }, ShowTimer); 71 } 72 } 73 74 },"json"); 75 76 } 77 78 } 79 80}); 81 82function submitOptin(){ 83 84 var emailaddress = $j('#emailaddress').val(); 85 var tealium_event = $j('#tealium_event').val(); 86 let UploadSource = "Subscribe - Overlay Ver 01"; /*added per #9282 */ 87 //let UploadSource = ""; 88 89 if(emailaddress == ""){ 90 alert("Please enter a valid email address"); 91 $j('#emailaddress').focus(); 92 return false; 93 } 94 95 if(emailaddress == "Enter Your Email"){ 96 alert("Please enter a valid email address"); 97 $j('#emailaddress').focus(); 98 return false; 99 } 100 101 let tealium_utag = new Object(); 102 tealium_utag.email = emailaddress; 103 tealium_utag.tealium_event = tealium_event; 104 105 $j.ajax({ 106 url: '/c/save-email-subscribe.php', 107 type: 'POST', 108 // data: 'email='+encodeURIComponent(emailaddress)+'&FromOptIn=Y&WebsiteForm='+UploadSource+'&SectionOfSite='+window.location+'&EmailSourceID=35', //35 = Subscribe - Overlay 109 data: 'email='+encodeURIComponent(emailaddress)+'&FromOptIn=Y&WebsiteForm='+UploadSource+'&SectionOfSite='+window.location+'&EmailSourceID='+SRCType, //49 = Subscribe - Overlay Ver 01 110 success: function(data){ 111 utag_tealium(tealium_utag); 112 $j('.email-signup-2016-text-area').html(data); 113 114 } 115 116 }); 117 118} 119 120function createCookie(name,value,domain) { 121 var expires = ""; 122 var date = new Date(); 123 date.setTime(date.getTime() + (3600*6)); 124 expires = "; expires=" + date.toGMTString(); 125 document.cookie = name + "=" + value + expires + "; domain="+domain+"; path=/"; 126 127} 128 129function readCookie(name) { 130 var nameEQ = name + "="; 131 var ca = document.cookie.split(';'); 132 for(var i=0;i < ca.length;i++) { 133 var c = ca[i];
134 while (c.charAt(0)==' ') c = c.substring(1,c.length); 135 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 136 } 137 return null; 138} 139 140function eraseCookie(name) { 141 document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;'; 142} 143 144function setCookie(){ 145 146 $j.ajax({ 147 url: '/c/getOptInOverlayCookie.php', 148 type: 'POST', 149 data: 'optin=y', 150 success: function(data){ 151 152 } 153 154 }); 155 156 157}
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.