PageSourceSearch

https://wpbase.co.uk/_astro/hoisted.Dd7XHQm3.js

js wpbase.co.uk collected 2026-10-10 02:36:43 UTC 3,203 bytes, 1 lines download raw bytes

1const n=document.getElementById("wpb-header"),h=Array.from(document.querySelectorAll(".wpb-item[data-id]"));let m,w;const f=e=>{h.forEach(t=>{const o=t===e;t.dataset.open=String(o),t.querySelector(".wpb-trigger")?.setAttribute("aria-expanded",String(o))})},i=()=>f(null);h.forEach(e=>{e.addEventListener("mouseenter",()=>{window.clearTimeout(w),window.clearTimeout(m),m=window.setTimeout(()=>f(e),70)}),e.querySelector(".wpb-trigger")?.addEventListener("click",t=>{t.preventDefault(),e.dataset.open==="true"?i():f(e)})});n&&(n.addEventListener("mouseenter",()=>window.clearTimeout(w)),n.addEventListener("mouseleave",()=>{window.clearTimeout(m),w=window.setTimeout(i,160)}),n.addEventListener("focusout",e=>{const t=e.relatedTarget;(!t||!n.contains(t))&&i()}));const u=e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},b=e=>{for(const t of e.matchAll(/rgba?\(([^)]+)\)/g)){const o=t[1].split(/[\s,\/]+/).filter(Boolean).map(parseFloat);if(o.length<3||o.slice(0,3).some(c=>Number.isNaN(c)))continue;if((o.length>3?o[3]:1)>=.5)return o.slice(0,3)}return null},l=()=>{if(!n||window.scrollY>24)return;const e=n.querySelector(".wpb-brand"),t=e?e.getBoundingClientRect().left+8:24,o=n.offsetHeight/2;let r="light";for(const c of document.elementsFromPoint(t,o)){if(n.contains(c))continue;const p=getComputedStyle(c),d=b(p.backgroundColor)||b(p.backgroundImage);if(!d)continue;r=.2126*u(d[0])+.7152*u(d[1])+.0722*u(d[2])<.35?"dark":"light";break}n.dataset.over=r};let g=null;const v=()=>{if(!n)return;const e=window.scrollY>24;e!==g&&(g=e,n.dataset.scrolled=String(e),e||l())};v();l();window.addEventListener("scroll",v,{passive:!0});window.addEventListener("load",l);window.addEventListener("pageshow",l);window.addEventListener("resize",()=>window.requestAnimationFrame(l));document.addEventListener("keydown",e=>{e.key==="Escape"&&(i(),n?.dataset.mobile==="true"&&(s(),document.getElementById("wpb-burger")?.focus()))});const a=document.getElementById("wpb-burger"),E=document.getElementById("wpb-backdrop");function s(){n&&(n.dataset.mobile="false",document.body.dataset.navOpen="false",a?.setAttribute("aria-expanded","false"),a?.setAttribute("aria-label","Open menu"),document.body.style.overflow="")}a?.addEventListener("click",()=>{if(!n)return;const e=n.dataset.mobile!=="true";n.dataset.mobile=String(e),document.body.dataset.navOpen=String(e),a.setAttribute("aria-expanded",String(e)),a.setAttribute("aria-label",e?"Close menu":"Open menu"),document.body.style.overflow=e?"hidden":""});E?.addEventListener("click",s);document.querySelectorAll(".wpb-acc .wpb-acc-trigger").forEach(e=>{e.addEventListener("click",()=>{const t=e.parentElement;if(!t)return;const o=t.dataset.open!=="true";t.dataset.open=String(o),e.setAttribute("aria-expanded",String(o))})});document.querySelectorAll(".wpb-mobile a").forEach(e=>{e.addEventListener("click",s)});document.querySelectorAll('a[href^="/#"]').forEach(e=>{e.addEventListener("click",t=>{if(i(),s(),window.location.pathname==="/"||window.location.pathname==="/index.html"){const o=e.getAttribute("href");if(!o)return;const r=document.querySelector(o.replace("/",""));r&&(t.preventDefault(),r.scrollIntoView({behavior:"smooth"}))}})});

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.