PageSourceSearch

https://wholedogz.com/etc.clientlibs/platform/components/content/p…-e766b06c7a88ec4159bcb064b63bafbd-lc.min.js

js wholedogz.com collected 2026-09-30 10:59:05 UTC 3,826 bytes, 8 lines download raw bytes

1var platformnewSubmitButton=document.querySelector(".target-popup .submit"),platformnewSuccessMsg=platformnewSubmitButton.getAttribute("successMsg"),platformnewFailureMsg=platformnewSubmitButton.getAttribute("failureMsg"),platformnewEmail=document.querySelector(".target-popup .email"),platformnewFormElement=document.querySelector(".target-popup .contactus"),platformnewResponse=document.querySelector(".target-popup .response"),platformnewIsValid=!1,platformnewUrl=document.querySelector(".target-popup .submit").getAttribute("data-url"),
2platformnewResultElement=document.querySelector(".target-popup .resultElement"),platformnewLastResponse="",platformnewIsValidEmail=function(a){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.\d{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(a).toLowerCase())};document.addEventListener("keydown",function(a){"Enter"===a.key&&(a.preventDefault(),platformnewSubmitButton.click())});
3platformnewSubmitButton.addEventListener("click",function(){var a=document.querySelector(".target-popup .g-recaptcha"),b=grecaptcha.getResponse(),d=0!==b.length;platformnewValidateUserDetails();if(platformnewIsValid&&d){d=platformnewEmail.value.trim();a.getAttribute("data-sitekey");a=platformnewFormElement.getAttribute("formId");var f=platformnewFormElement.getAttribute("centerId"),g=platformnewFormElement.getAttribute("service");b={email:d,captchaToken:b,formId:a,centerId:f,key5:"service",value5:g};
4var c=new XMLHttpRequest;c.open("POST",platformnewUrl);c.setRequestHeader("Content-Type","application/json; charset\x3dUTF-8");c.onload=function(){if(4==c.readyState)if(200==c.status){var e=JSON.parse(c.responseText);e&&e.status&&"Error"===e.status?(platformnewShowModal(e.message),platformnewLastResponse=e.message):(platformnewShowModal(platformnewSuccessMsg),platformnewLastResponse=platformnewSuccessMsg)}else platformnewShowModal(platformnewFailureMsg),platformnewLastResponse=platformnewFailureMsg};
5c.onerror=function(){platformnewShowModal(platformnewFailureMsg);platformnewLastResponse=platformnewFailureMsg};c.send(JSON.stringify(b))}});var platformnewSetError=function(a,b){a=a.closest(".input-control");var d=a.querySelector(".target-popup .error");d.innerText=b;d.classList.add("emailvalidationerror");a.classList.remove("success")},platformnewSetSuccess=function(a){a=a.closest(".input-control");a.querySelector(".target-popup .error").innerText="";a.classList.add("success");a.classList.remove("emailvalidationerror")};
6function platformnewValidateUserDetails(){var a=platformnewEmail.value.trim();""===a?(platformnewSetError(platformnewEmail,"Please enter email"),platformnewIsValid=!1):platformnewIsValidEmail(a)?(platformnewSetSuccess(platformnewEmail),platformnewIsValid=!0):(platformnewSetError(platformnewEmail,"Enter a valid email address Ex: [email protected]"),platformnewIsValid=!1)}
7function platformnewShowModal(a){"Submitted Successfully"===a?(platformnewResultElement.style.display="flex",platformnewResponse.textContent="Form submitted successfully!!",document.querySelector(".target-popup .targetpopupresultelement .wrapper-close").style.display="none",setTimeout(function(){document.querySelector(".target-popup .modal").style.display="none";document.querySelector(".target-popup .modal-overlay").style.display="none"},1E3)):(platformnewResultElement.style.display="flex",platformnewResponse.textContent=
8a)}var platformnewWrapperClose=document.querySelector(".target-popup .wrapper-close");platformnewWrapperClose.addEventListener("click",function(a){a.preventDefault();platformnewResultElement.style.display="none";platformnewFormElement.reset();document.querySelectorAll(".target-popup .input-control").forEach(function(b){b.classList.remove("success");b.classList.remove("error")});grecaptcha.reset()});

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.