PageSourceSearch

https://www.innoforte-zorg.nl/assets/dist/js/ajax-content.js?1787312521

js innoforte-zorg.nl collected 2026-10-05 08:39:33 UTC 2,333 bytes, 4 lines download raw bytes

1(function(){
2const h=(i,t=document)=>t.querySelector(i),n=(i,t=document)=>[].slice.call(t.querySelectorAll(i)),a={pagination:"pagination",loading:"is-loading"};class c{constructor(t){this.handle=t,this.content=h(`[data-ajax-content="${t}"]`),this.content&&(this.forms=n(`[data-ajax-form=${t}]`),this.submits=n(`[data-ajax-form="${t}"] [type="submit"]`),this.content.setAttribute("aria-live","polite"),this.createXHR(),this.bindEvents())}createXHR(){this.xhrOptions={},this.xhr=new XMLHttpRequest,this.xhr.onload=()=>{if(this.xhr.status>=200&&this.xhr.status<300){let t=this.xhrOptions.url;this.xhrOptions.data&&(t+=`?${new URLSearchParams(this.xhrOptions.data).toString()}`),window.history.replaceState({},document.title,t),this.content.innerHTML=this.xhr.response,n("script",this.content).filter(e=>e.type!=="application/json").forEach(e=>{const s=document.createElement("script");s.append(document.createTextNode(e.innerHTML)),document.head.append(s),s.remove()})}else this.content.innerHTML="Er is iets fout gegaan";this.stopLoading()}}bindEvents(){this.forms.forEach(t=>{t.dataset.ajaxFilterTrigger!=="submit"&&t.addEventListener("change",()=>{this.fetchResults()}),t.addEventListener("submit",e=>{e.preventDefault(),this.fetchResults()})}),this.content.addEventListener("click",t=>{const s=t.target.closest("a");s?.closest(`.${a.pagination}`)&&(t.preventDefault(),this.fetchResults({url:s.href.split("?")[0],scrollIntoView:!0}))})}fetchResults(t={}){const e={scrollIntoView:!1,url:this.forms[0]?.action||window.location.href};this.xhr.abort(),this.xhrOptions={...e,...t},this.xhrOptions.data=this.forms.length?new FormData(this.forms[0]):null;for(let s=1;s<this.forms.length;s++){const o=new FormData(this.forms[s]);for(const r of o.entries())this.xhrOptions.data.append(...r)}this.startLoading(),this.xhr.open("POST",this.xhrOptions.url),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),this.xhr.send(this.xhrOptions.data)}startLoading(){this.submits.forEach(t=>{t.disabled=!0}),this.xhrOptions.scrollIntoView&&window.scrollTo(0,0),this.content.classList.add(a.loading)}stopLoading(){this.submits.forEach(t=>{t.disabled=!1}),this.xhrOptions.scrollIntoView&&window.scrollTo(0,0),this.content.classList.remove(a.loading)}}const l=()=>{n("[data-ajax-content]").forEach(i=>{new c(i.dataset.ajaxContent)})};l();
3
4})();

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.