PageSourceSearch

https://myhoustonmajic.com/wp-content/plugins/ione-modules/build/ione4/blocks/flex-posts/index.js?ver=9617fb2

js myhoustonmajic.com collected 2026-09-24 09:26:57 UTC 5,186 bytes, 1 lines download raw bytes

1(()=>{"use strict";(function(){const t=matchMedia("(max-width: 900px)"),e=function(){n(),s()},n=function(){const e=document.querySelectorAll(".ione4-flex-posts-section.swipe-mobile .ione4-flex-posts-cards");e.length&&e.forEach(function(e){if(!e)return;let n=null;const o={cellAlign:"left",pageDots:!1,prevNextButtons:!1};t.matches&&(n=new Flickity(e,o)),t.addEventListener("change",function(){t.matches?n=new Flickity(e,o):n&&n.destroy()})})},o=new WeakSet,r=new WeakSet;let i=[];const s=function(){const t=new IntersectionObserver(u,{root:null,rootMargin:"400px",threshold:1});document.querySelectorAll(".ione4-flex-posts-section.infinite-scroll").forEach(function(e){const n=e.querySelector(".ione4-infinite-scroll-load-more-wrapper");if(!n)return;const o=e.querySelector(".token-controller-free-slot-counter");o&&e.setAttribute("data-token-free-slot-counter",o.value);const r=e.querySelector(".token-controller-placement-state");r&&e.setAttribute("data-token-placement-state",r.value),l(t,n)})};function l(t,e){r.add(e),t.observe(e)}function c(t,e){r.delete(e),t.unobserve(e)}function a(t,e,n){"string"==typeof n&&n.includes("ione4-flex-posts-card")&&r.has(e)&&(t.unobserve(e),t.observe(e))}function u(t,e){t.forEach(function(t){if(!t.isIntersecting)return;if(!r.has(t.target))return;const n=t.target.closest(".ione4-flex-posts-section.infinite-scroll");if(!n)return;if(o.has(n))return;const i=parseInt(n.getAttribute("data-paged"),10),s=parseInt(n.getAttribute("data-loads"),10);f(n,t.target.querySelector(".ione4-infinite-scroll-loader"),i,"scroll").then(function(n){const o=t.target.querySelector(".ione4-infinite-scroll-load-more");s>=3&&"string"==typeof n&&n.length>0&&(c(e,t.target),o.getAttribute("data-click-listener-added")||o.addEventListener("click",function(t){t.preventDefault();const n=this.parentElement,r=this.closest(".ione4-flex-posts-section.infinite-scroll"),i=n.querySelector(".ione4-infinite-scroll-loader");r.setAttribute("data-loads",0);const s=parseInt(r.getAttribute("data-paged"),10);f(r,i,s).then(function(t){if(null===t)return c(e,n),void(o.style.display="block");"string"!=typeof t||t.includes("ione4-flex-posts-card")?a(e,n,t):c(e,n)}).catch(function(t){console.error("iOne4 Flex Posts: load more handler failed.",t)}),o.style.display="none",l(e,n),this.setAttribute("data-click-listener-added",1)}),o.style.display="block",o.style.position="relative"),"string"!=typeof n||n.includes("ione4-flex-posts-card")||(c(e,t.target),o.style.display="none"),a(e,t.target,n)}).catch(function(t){console.error("iOne4 Flex Posts: infinite scroll intersection handler failed.",t)})})}function d(t,e,n){t?o.add(n):o.delete(n),e&&(e.style.display=t?"block":"none")}function f(t,e,n,o){let r=t.getAttribute("data-infinite-scroll");r=JSON.parse(r),r.post_type=r.post_type?r.post_type.join(","):"any",r.paged=n,function(t){if(i.length>=100)return;const e=t.querySelectorAll(".ione4-flex-posts-card"),n=Array.from(e).map(function(t){return t.getAttribute("data-id")});let o=t.getAttribute("data-post__not_in");o="string"==typeof o?o.split(","):[],i=Array.from(new Set(o.concat(n).concat(i))),i=i.slice(0,100)}(t),r.post__not_in=i.join(","),r.nonce=t.getAttribute("data-nonce"),r._wpnonce=t.getAttribute("data-rest-nonce");const s=new URLSearchParams(window.location.search);s.has("token_debug")&&"true"===s.get("token_debug")&&(r.token_debug=!0);const l=t.getAttribute("data-token-free-slot-counter");l&&(r.token_free_slot_counter=parseInt(l,10));const c=t.getAttribute("data-token-placement-state");return c&&(r.placement_state=c),d(!0,e,t),fetch(flex_posts_data.infiniteScrollURL+"/?"+new URLSearchParams(r).toString(),{method:"GET",headers:{Accept:"application/json"}}).then(function(e){return 200===e.status&&function(t,e,n){window.iOneGA.sendEvent("infinite_scroll",n,window.location.href.replace(/(https?:\/\/|\/\/)[^\/]+/i,""));try{window.ione3?.doComscore?.()}catch(t){}"true"===new URL(window.location.href).searchParams.get("comscore-debug")&&(console.log("fireEvent with page: "+e+", action: "+n),console.log("comscore beacon, flex-posts.js")),window.dispatchEvent(new CustomEvent("ione_infinite_scroll",{detail:{page:e,action:n,instanceEl:t}}))}(t,n,o),e}).then(function(t){return t.json()}).then(function(e){const n=t.querySelector(".ione4-flex-posts-cards");if(!n||"string"!=typeof e)return null;n.insertAdjacentHTML("beforeend",e);const o=n.querySelectorAll(".token-controller-free-slot-counter"),i=o[o.length-1]||null;i&&t.setAttribute("data-token-free-slot-counter",i.value);const s=n.querySelectorAll(".token-controller-placement-state"),l=s[s.length-1]||null;l&&t.setAttribute("data-token-placement-state",l.value);const c=parseInt(t.getAttribute("data-loads"),10);
1t.setAttribute("data-paged",parseInt(r.paged,10)+1),t.setAttribute("data-loads",c+1);try{ione_uads.buildAdsAndRefresh()}catch{console.error("ione_uads not loaded")}return e}).catch(function(t){return console.error("iOne4 Flex Posts: infinite scroll request failed.",t),null}).finally(function(){d(!1,e,t)})}iOneScriptLoader.mediumPriority(()=>{"complete"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)})}).call(window)})();

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.