1let successEmailModal = ` 2<div class="modal fade" id="successEmailModal" tabindex="-1" role="dialog" aria-hidden="true"> 3 <div class="modal-dialog modal-dialog-centered" role="document"> 4 <div class="modal-content"> 5 <div class="modal-header"> 6 <h5 class="modal-title" style="color: green;">Success!</h5> 7 </div> 8 <div class="modal-body"> 9 <p>Thank you for subscribing! A 10%-off discount will be automatically applied to your next purchase.</p> 10 </div> 11 <div class="modal-footer"> 12 <button type="button" class="btn btn-dark btn-custom closeEmailSubscriberModal" data-dismiss="modal">Dismiss</button> 13 </div> 14 </div> 15 </div> 16</div> 17`; 18 19let invalidEmailModal = ` 20<div class="modal fade" id="invalidEmailModal" tabindex="-1" role="dialog" aria-hidden="true"> 21 <div class="modal-dialog modal-dialog-centered" role="document"> 22 <div class="modal-content"> 23 <div class="modal-header"> 24 <h5 class="modal-title" style="color: red;">Uh-oh!</h5> 25 </div> 26 <div class="modal-body"> 27 <p>The email you provided is invalid. Give it another try!</p> 28 </div> 29 <div class="modal-footer"> 30 <button type="button" class="btn btn-dark btn-custom closeEmailSubscriberModal" data-dismiss="modal">Dismiss</button> 31 </div> 32 </div> 33 </div> 34</div> 35`; 36 37let alreadyAddedEmailModal = ` 38<div class="modal fade" id="alreadyAddedEmailModal" tabindex="-1" role="dialog" aria-hidden="true"> 39 <div class="modal-dialog modal-dialog-centered" role="document"> 40 <div class="modal-content"> 41 <div class="modal-header"> 42 <h5 class="modal-title" style="color: red;">Uh-oh!</h5> 43 </div> 44 <div class="modal-body"> 45 <p>The email you provided is already subscribed or once was.</p> 46 </div> 47 <div class="modal-footer"> 48 <button type="button" class="btn btn-dark btn-custom closeEmailSubscriberModal" data-dismiss="modal">Dismiss</button> 49 </div> 50 </div> 51 </div> 52</div> 53`; 54 55let emailSubscriptionModal = ` 56<div class="modal fade" id="emailSubscriptionModal" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> 57 <div class="modal-dialog modal-lg modal-dialog-centered"> 58 <div class="modal-content"> 59 <div class="modal-body modal-subscriber"> 60 <div class="text-right"> <i class="fa fa-close close-subscriber-modal" data-dismiss="modal" onclick="setCookie('prevmo', 'true', 7)"></i> </div> 61 <div class="row"> 62 <div class="col-md-5"> 63 <div class="text-center mt-2"> <img src="https://lambgoat.com/i/shop/lambgoat_footer.jpg" class="footer-image" width="250" /> </div> 64 </div> 65 <div class="col-md-6"> 66 <div class="text-white mt-4"> <span class="intro-1">Subscribe & Save</span> 67 <div class="form-group"> 68 <span class="intro-2">Get 10% off your first purchase by subscribing to our emailing list</span> 69 </div> 70 <div class="form-group"> 71 <input type="email" id="emailSubscriberFieldModal" class="form-control" placeholder="Your email" /> 72 </div> 73 <div class="form-group"> 74 <input type="button" id="submitEmailSubscriberModal" value="Subscribe" class="btn btn-dark subscribe-btn-custom float-right" data-dismiss="modal" /> 75 </div> 76 </div> 77 </div> 78 <div class="col-1"></div> 79 </div> 80 <br /> 81 </div> 82 </div> 83 </div> 84</div> 85`; 86 87let loadingModal = ` 88<!--Loading overlay--> 89<div id="overlay" style="display:none;"> 90 <div class="spinner"></div> 91 <br /> 92 Processing... 93</div> 94`; 95 96function setCookie(name, value, days) { 97 var expires = ""; 98 if (days) { 99 var date = new Date(); 100 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 101 expires = "; expires=" + date.toUTCString(); 102 } 103 document.cookie = name + "=" + (value || "") + expires + "; path=/"; 104} 105function getCookie(name) { 106 var nameEQ = name + "="; 107 var ca = document.cookie.split(';'); 108 for (var i = 0; i < ca.length; i++) { 109 var c = ca[i]; 110 while (c.charAt(0) == ' ') c = c.substring(1, c.length); 111 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); 112 } 113 return null; 114}
115function eraseCookie(name) { 116 document.cookie = name + '=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; 117} 118 119$(document).ready(function () { 120 $("#cancelBtn").on("click", function () { 121 window.history.go(-1); 122 return false; 123 }); 124}); 125 126$(document).ready(function () { 127 $("#search").on("click", function () { 128 $("#searchForm").submit(); 129 }); 130}); 131 132$(document).ready(function () { 133 $("#submitEmailSubscriber").on("click", function () { 134 if ($("#emailSubscriberField").val().length > 0) { 135 $("#emailModals").append(loadingModal); 136 $('#overlay').fadeIn(0).delay(1); 137 $.ajax({ 138 type: "POST", 139 url: emailAddUrl, 140 data: { 141 "email": $("#emailSubscriberField").val() 142 }, 143 success: function (data) { 144 $("#emailSubscriberField").val(""); 145 $('#overlay').fadeOut(0, function () { 146 if (data.status == "success") { 147 setCookie("emdisc", data.code, 30); 148 setCookie("prevmo", "true", 120); 149 $("#emailModals").append(successEmailModal); 150 $('#successEmailModal').modal('show'); 151 } 152 else if (data.status == "invalid") { 153 $("#emailModals").append(invalidEmailModal); 154 $('#invalidEmailModal').modal('show'); 155 } 156 else if (data.status == "alreadyAdded") { 157 $("#emailModals").append(alreadyAddedEmailModal); 158 $('#alreadyAddedEmailModal').modal('show'); 159 } 160 $(".closeEmailSubscriberModal").on("click", function () { 161 location.reload(); 162 }); 163 }); 164 } 165 }); 166 } 167 }); 168}); 169 170$(document).ready(function () { 171 $("#submitEmailSubscriberModal").on("click", function () { 172 $("#emailModals").append(loadingModal); 173 $('#overlay').fadeIn().delay(0); 174 $.ajax({ 175 type: "POST", 176 url: emailAddUrl, 177 data: { 178 "email": $("#emailSubscriberFieldModal").val() 179 }, 180 success: function (data) { 181 $("#emailSubscriberFieldModal").val(""); 182 $('#overlay').fadeOut(0, function () { 183 if (data.status == "success") { 184 setCookie("emdisc", data.code, 30); 185 setCookie("prevmo", "true", 120); 186 $("#emailModals").append(successEmailModal); 187 $('#successEmailModal').modal('show'); 188 } 189 else if (data.status == "invalid") { 190 $("#emailModals").append(invalidEmailModal); 191 $('#invalidEmailModal').modal('show'); 192 } 193 else if (data.status == "alreadyAdded") { 194 $("#emailModals").append(alreadyAddedEmailModal); 195 $('#alreadyAddedEmailModal').modal('show'); 196 } 197 $(".closeEmailSubscriberModal").on("click", function () { 198 location.reload(); 199 }); 200 }); 201 } 202 }); 203 }); 204}); 205 206function NavCollapse() { 207 if ($("#NavCollapseId").attr("aria-expanded") == "true") { 208 $("#navAlert").css("visibility", "visible"); 209 } 210 if ($("#NavCollapseId").attr("aria-expanded") == "false") { 211 $("#navAlert").css("visibility", "hidden"); 212 } 213} 214 215if (getCookie("prevmo") != "true" && getCookie("emdisc") == null) { 216 $("#emailModals").append(emailSubscriptionModal); 217 $('#emailSubscriptionModal').modal('show'); 218} 219 220// BLACK FRIDAY START 221//function countDownTimer() { 222// var dateString = "2021-11-30 00:00:00"; 223// const difference = +new Date(dateString.replace(' ', 'T')) - + new Date(); 224// let remaining = "Deal has ended!"; 225 226// if (difference > 0) { 227// const parts = { 228// d: Math.floor(difference / (1000 * 60 * 60 * 24)), 229// h: Math.floor((difference / (1000 * 60 * 60)) % 24), 230// m: Math.floor((difference / 1000 / 60) % 60), 231// s: Math.floor((difference / 1000) % 60), 232// }; 233// remaining = Object.keys(parts).map(part => { 234// return `${parts[part]}${part}`; 235// }).join(" "); 236// } 237 238// document.getElementById("dealEndsNav").innerHTML = remaining; 239//} 240 241//countDownTimer(); 242//setInterval(countDownTimer, 1000); 243// BLACK FRIDAY END
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.