PageSourceSearch

https://theurbandaily.com/wp-content/plugins/ione-modules/build/pa…/index.js?ver=e189c9207d623744b2cf

js theurbandaily.com collected 2026-10-02 05:30:43 UTC 2,749 bytes, 1 lines download raw bytes

1(()=>{"use strict";window.addEventListener("load",()=>{const e=document.querySelector(".ione-partner-stories");if(!e)return;if("undefined"==typeof ionePartnerStoriesData)return;const t=ionePartnerStoriesData.partnerStories;let r=Object.values(t);const n=r?.length;if(!t||0===n)return;r.reduce((e,t)=>e+t.length,0);const o=ionePartnerStoriesData.maxPosts;function a(e){let t,r=e.length;for(;0!==r;)t=Math.floor(Math.random()*r),r--,[e[r],e[t]]=[e[t],e[r]];return e}a(r);let i=[];r[0]&&Array.isArray(r[0])?(a(r[0]),i=r[0].slice(0,o)):i=[],fetch(ionePartnerStoriesData.restUrl,{method:"GET",headers:{"X-WP-Nonce":ionePartnerStoriesData.nonce}}).then(e=>e.json()).then(t=>{if(!t.template)throw new Error("Invalid response structure");{const r=t.template.trim(),n=document.createElement("div");n.innerHTML=r;const o=n.firstElementChild,a=n.lastElementChild;if(!o||"style"!==o.tagName.toLowerCase()||!a||"section"!==a.tagName.toLowerCase())throw new Error("Invalid template structure");const l=a.querySelector(".ione4-flex-posts-cards");if(!l)throw new Error("Card container not found in template");const s=a.querySelector(".ione4-flex-posts-card");if(!s)throw new Error("Card template not found in template");s.removeAttribute("data-id");const c=s.cloneNode(!0);l.innerHTML="",i.forEach(e=>{const t=c.cloneNode(!0),r=e.link||"#",n=e.title||"Untitled Story",o=e.site_name||"",i=e.image||ionePartnerStoriesData.noImageAvailableSrc,s=e.include_image||!1,d=o?" from "+o:"",m="Read "+n+d,p=t.querySelector(".ione4-block-title-text a");p&&(p.href=r,p.target="_blank",p.rel="noopener noreferrer nofollow",p.setAttribute("aria-label",m),p.innerText=n);const f=t.querySelector(".ione4-block-byline-text");if(f)if(o)f.innerText=o;else{const e=f.parentNode;e&&e.remove()}if(s){const e=t.querySelector(".ione4-block-graphic a");e&&(e.href=r,e.target="_blank",e.rel="noopener noreferrer nofollow",e.setAttribute("aria-label",m));const o=t.querySelector(".ione4-block-graphic img");o&&(o.src=i,o.alt=n+d,o.onerror=function(){this.style.display="none"})}else{const e=t.querySelector(".ione4-block-graphic-wrapper");e&&e.remove(),a.classList.remove("show-image"),a.classList.add("no-image")}l.appendChild(t)}),e.appendChild(o),e.appendChild(a)}}).catch(t=>{console.error("Error fetching partner stories template:",t);const r=document.createElement("ul");i.forEach(e=>{const t=document.createElement("a");t.innerText=e.title,t.href=e.link,t.target="_blank",t.rel="noopener noreferrer nofollow",t.setAttribute("aria-label","Read "+e.title+" from "+e.site_name);const n=document.createElement("span");e.site_name.length>0&&(n.innerText=" ["+e.site_name+"]");const o=document.createElement("li");o.appendChild(t),o.appendChild(n),r.appendChild(o)}),e.appendChild(r)})})})();

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.