PageSourceSearch

https://eyeofhorus.uk/wp-content/themes/neve-child/assets/js/custom.js?ver=1791323537

js eyeofhorus.uk collected 2026-10-06 21:55:30 UTC 2,752 bytes, 7 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){if(!document.body.classList.contains("single-post"))return;const e=document.querySelector(".entry-content");if(!e)return;const t=e.querySelector("h2");if(!t)return;let n=t.nextElementSibling;if(!n||"p"!==n.tagName.toLowerCase())return;const r=document.createElement("div");r.className="collapsible-paragraph",n.parentNode.insertBefore(r,n),r.appendChild(n);const a=document.createElement("button");a.className="mobile-toggle",a.setAttribute("aria-expanded","false"),a.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16l-6-6h12z" fill="currentColor"/></svg>',t.insertAdjacentElement("afterend",a),a.addEventListener("click",function(){const e=r.classList.toggle("open");a.classList.toggle("open",e),a.setAttribute("aria-expanded",e?"true":"false")})});
2document.addEventListener("DOMContentLoaded",function(){const o=document.getElementById("scrollTopBtn");window.addEventListener("scroll",function(){window.scrollY>300?o.classList.add("show"):o.classList.remove("show")}),o.addEventListener("click",function(){window.scrollTo({top:0,behavior:"smooth"})})});
3!function(){const e=document.querySelector(".symbols-slider");if(!e)return;const r=e.querySelector(".symbols-slider-track");if(!r)return;if(r.scrollWidth>e.clientWidth){Array.from(r.children).forEach(e=>r.appendChild(e.cloneNode(!0)));let e=0;!function t(){e+=.5,e>=r.scrollWidth/2&&(e=0),r.style.transform=`translateX(-${e}px)`,requestAnimationFrame(t)}()}else r.style.transform="translateX(0)"}();
4!function(){const e=document.querySelector(".screenshots-slider");if(!e)return;const t=e.querySelector(".screenshots-track");if(!t)return;if(t.scrollWidth>e.clientWidth){Array.from(t.children).forEach(e=>t.appendChild(e.cloneNode(!0)));let e=0;!function c(){e+=.5,e>=t.scrollWidth/2&&(e=0),t.style.transform=`translateX(-${e}px)`,requestAnimationFrame(c)}()}const c=document.createElement("div");c.className="screenshot-modal";const r=document.createElement("img");c.appendChild(r),document.body.appendChild(c),t.querySelectorAll("img").forEach(e=>{e.addEventListener("click",()=>{r.src=e.src,c.classList.add("active")})}),c.addEventListener("click",()=>c.classList.remove("active"))}();
5document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".schema-faq-question").forEach(function(e){e.addEventListener("click",function(){e.closest(".schema-faq-section").classList.toggle("active")})})});
6document.addEventListener("DOMContentLoaded",function(){document.getElementById("currentYear").textContent=(new Date).getFullYear()});
7window.addEventListener("scroll",function(){const e=document.querySelector(".game-header-section");window.scrollY>1?e.classList.add("scrolled"):e.classList.remove("scrolled")});

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.