PageSourceSearch

https://www.cadac.com/Static/js/components/modalInput.js

js cadac.com collected 2026-10-04 00:24:37 UTC 1,371 bytes, 1 lines download raw bytes

1!function(){function v(t,e){var a=document.querySelector(".backdrop--input-modal.is-active");t.classList.remove("is-active"),a&&!e&&(a.classList.remove("is-active"),setTimeout(function(){a.parentNode.removeChild(a)},300))}function m(){return document.querySelector(".modal-input__box.is-active")}document.addEventListener("click",function(t){var e,a,n=t.target.closest(".js-modalInput-open"),o=t.target.closest(".js-modalInput-close"),i=t.target.closest("[data-input-clear]"),c=t.target.closest(".js-modalInput-apply"),t=t.target.closest(".backdrop.is-active");if(n){n=(n=n).getAttribute("data-modalInput-target");n=document.getElementById(n);if(!n)return;(e=m())&&v(e,!0);(s=document.querySelector(".backdrop.is-active"))||(s=document.createElement("div")).setAttribute("class","backdrop backdrop--input-modal"),s.style.display="block";var s;document.body.appendChild(s),n.style.transitionDuration=".3s",s.style.transitionDuration=".3s",n.classList.add("is-active"),s.classList.add("is-active")}if(c)for(var r=c.closest(".modal-input"),d=r.querySelectorAll(".js-modalInput-input"),l=0;l<d.length;l+=1){var u=r.querySelector('[data-modalInput-id="'.concat(d[l].id,'"]'));u.value=d[l].value,u=u,a=void 0,"createEvent"in document?((a=document.createEvent("HTMLEvents")).initEvent("change",!1,!0),u.dispatchEvent(a)):u.fireEvent("onchange")}(o||t||i)&&(e=m())&&v(e,!1)})}();

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.