1jQuery(document).ready(function($){function getCookie(name){let value=`; ${document.cookie}`;let parts=value.split(`; ${name}=`);if(parts.length===2)return parts.pop().split(";").shift();return null} 2function setCookie(name,value,hours){let date=new Date();date.setTime(date.getTime()+hours*60*60*1000);let expires=`expires=${date.toUTCString()}`;document.cookie=`${name}=${value}; ${expires}; path=/`} 3let ajaxCallMade=!1;function displayPopup(popupData){const template=document.getElementById(`cr-popup-template-${popupData.id}`);if(!template){console.error("HALT: Popup template could not be found for ID:",popupData.id);return} 4const clone=template.content.cloneNode(!0);$("body").append(clone);setCookie("cr_popup_cooldown","true",2);const dialogElement=document.getElementById("cr-popup-dialog");const closeButton=document.getElementById("cr-popup-dialog-close");closeButton.addEventListener("click",()=>dialogElement.close());dialogElement.addEventListener("click",(event)=>{var rect=dialogElement.getBoundingClientRect();var isInDialog=rect.top<=event.clientY&&event.clientY<=rect.top+rect.height&&rect.left<=event.clientX&&event.clientX<=rect.left+rect.width;if(!isInDialog){dialogElement.close()}});try{if(window.Invoca&&window.Invoca.Client){window.Invoca.Client.start();console.log("Invoca rescan triggered successfully")}}catch(e){console.error("Invoca re-scan failed:",e)} 5dialogElement.showModal();setTimeout(function(){const formId=popupData.form_id;const formWrapperSelector=`#gform_wrapper_${formId}`;const $formWrapper=$(formWrapperSelector);if($formWrapper.length){$formWrapper.css({display:"block",visibility:"visible",opacity:"1",});if(formId&&typeof jQuery.fn.trigger==="function"){jQuery(document).trigger("gform_post_render",[formId,1])}}else{console.error("HALT: Form wrapper was NOT found in the live DOM after a delay. Please check the HTML from DEBUG 3 to see if it was stripped by the server.")}},150)} 6if((document.querySelector('meta[name="robots"]')&&document.querySelector('meta[name="robots"]').getAttribute("content").includes("noindex"))||getCookie("cr_popup_cooldown")){ajaxCallMade=!0} 7window.addEventListener("scroll",()=>{if(ajaxCallMade)return;const scrollPosition=window.scrollY||document.documentElement.scrollTop;const pageHeight=document.documentElement.scrollHeight-window.innerHeight;if(scrollPosition>=pageHeight*0.4){ajaxCallMade=!0;$.post(crPopupData.ajax_url,{action:"get_cr_popup",uri:window.location.pathname,},function(response){if(response.success){displayPopup({id:response.data.popup_id,form_id:response.data.form_id,})}else{}})}},{passive:!0})})
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.