1document.addEventListener("DOMContentLoaded", function() { 2 3 $(".popup--goodbye .js-popup-close").click(function(){ 4 closePopup($("[data-block='goodbye']")); 5 }); 6 7 if (document.documentElement.classList.contains("bx-touch")) { 8 inactivityTime() 9 } else { 10 document.addEventListener("mousemove", leaveWindowHandler) 11 } 12}) 13 14function leaveWindowHandler(event) { 15 if (event.relatedTarget === null && event.pageY - 5 <= window.scrollY && !!getCookie("leave") === false) { 16 openPopup($("[data-block='goodbye']")); 17 setCookie("leave", "1", 7); 18 } 19} 20 21function inactivityTime() { 22 let t; 23 window.onload = resetTimer; 24 document.ontouchstart = resetTimer; 25 document.onkeypress = resetTimer; 26 document.onclick = resetTimer; 27 28 function resetTimer() { 29 clearTimeout(t); 30 if (!!getCookie("leave") === false) { 31 t = setTimeout(() => { 32 openPopup($("[data-block='goodbye']")); 33 setCookie("leave", "1", 7); 34 }, 15000) 35 } 36 } 37} 38 39function sendLiveForm(pass) { 40 let email = $('#liveFormEmail').val(); 41 42 if (!email || !emailValidate($('#liveFormEmail'))) { 43 return false; 44 } 45 BX.ajax({ 46 url: pass + '/ajax.php', 47 data: { 48 'email': email, 49 }, 50 method: 'POST', 51 dataType: 'json', 52 timeout: 30, 53 async: true, 54 processData: true, 55 scriptsRunFirst: true, 56 emulateOnload: true, 57 start: true, 58 cache: false, 59 onsuccess: function(data) { 60 closePopup($("[data-block='goodbye']")); 61 }, 62 onfailure: function(data) {} 63 }); 64}
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.