PageSourceSearch

https://18forty.org/content/plugins/query-loop-load-more/assets/js/build/frontend.js?ver=4df33910a12de6294a04

js 18forty.org collected 2026-10-02 03:02:56 UTC 2,229 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var o=e.n(t);const n=new Event("qllmLoadStart"),r=new Event("qllmLoadEnd"),a=new window.IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&s(e.target)}))}),{threshold:.5}),s=e=>{const t=e?.closest(".wp-load-more__button");if(!t)return;const o=t.href,s=t.closest(".wp-block-query")?.querySelector(".wp-block-post-template");!t.classList.contains("loading")&&s&&o&&new URL(o,window.location.origin).origin===window.location.origin&&(t.classList.add("loading"),document.dispatchEvent(n),fetch(o,{method:"GET",headers:{"Content-Type":"text/html"}}).then((function(e){if(e.ok)return e.text();throw new Error("Network response was not ok.")})).then((function(e){const o=document.createElement("div");o.innerHTML=e;const n=s.dataset.qllmQueryRegion||"",r=o.querySelector(`.wp-block-post-template[data-qllm-query-region="${n}"]`);r&&s.insertAdjacentHTML("beforeend",r.innerHTML);const i=t.closest(".wp-block-button");i&&i.classList.remove("loading");const c=+t.dataset.queryNextPage,l=+t.dataset.queryMaxPage;if(t.dataset.updateUrl){const e=new URL(window.location.href);e.searchParams.set(t.dataset.queryUrl,c),window.history.pushState({},"",e)}if(c>=l)return t.classList.contains("wp-load-more__infinite-scroll")&&a.unobserve(t),void t.closest(".wp-block-buttons")?.remove();c<l&&(t.dataset.queryNextPage=c+1,t.href="?"+t.dataset.queryUrl+"="+t.dataset.queryNextPage)})).catch((e=>{console.error("Fetch error:",e)})).finally((()=>{if(t.classList.remove("loading"),document.dispatchEvent(r),t.classList.contains("wp-load-more__infinite-scroll")){const e=t.getBoundingClientRect();e.bottom>0&&e.top<window.innerHeight&&(a.unobserve(t),a.observe(t))}})))};o()((()=>{document.querySelectorAll(".wp-load-more__button:not(.wp-load-more__infinite-scroll)").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),s(e.target)}))})),document.querySelectorAll(".wp-load-more__infinite-scroll").forEach((function(e){a.observe(e)}))}))})();

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.