PageSourceSearch

https://www.australiancurriculum.edu.au/etc.clientlibs/acara-curri…/chunks/searchhighlight.f318fd64.js

js australiancurriculum.edu.au collected 2026-10-01 09:26:11 UTC 1,146 bytes, 1 lines download raw bytes

1var e=()=>{const e=document.querySelector("#app");if(e)return;const o=document.querySelectorAll("#main-content, #iop-main-content, #fa-main-content");o.forEach((e=>{if(e)t(e)}))};const t=e=>{var t;const r=sessionStorage.getItem("searchTerm");if(!r)return;const n=[];const l=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let c;let s=0;while(c=l.nextNode())n.push(c);n.forEach((e=>{let t=e.nodeValue;let o=e.parentNode;let n=t.toLowerCase().indexOf(r.toLowerCase());if(n>-1){s++;let l=t.substr(0,n);let c=t.substr(n,r.length);let i=t.substr(n+r.length);let a=document.createElement("span");a.textContent=c;a.classList.add("highlighted");if(o){o.insertBefore(document.createTextNode(l),e);o.insertBefore(a,e);o.insertBefore(document.createTextNode(i),e);o.removeChild(e)}}}));if(r&&s){const e=document.querySelector("#aemSearchHighlightAlert");if(e){const n=e.querySelector("p");if(n){n.innerHTML=`The search term "${r}" is highlighted.`;e.style.display="block";null==(t=e.querySelector("button"))?void 0:t.addEventListener("click",o)}}}};const o=()=>{sessionStorage.removeItem("searchTerm");window.location.reload()};export{e as default};

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.