PageSourceSearch

https://online-aussie-casino.com/wp-content/cache/min/1/wp-content…/brand-hex/app/js/header.js?ver=1791449750

js online-aussie-casino.com collected 2026-10-09 18:02:12 UTC 5,238 bytes, 1 lines download raw bytes

1(()=>{function l(e,t={}){typeof dataLayer>"u"||dataLayer===null||(dataLayer.push({event_params:void 0}),dataLayer.push({event:e,event_params:t}))}function h(e=null){let t=e===null?document.body.classList.contains("is-menu-active"):e;document.body.classList[t?"remove":"add"]("is-menu-active")}function y(e,t,n,o={}){let s=new Date;s.setTime(s.getTime()+n*24*60*60*1e3);let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;i+=`; expires=${s.toUTCString()}`,i+=`; path=${o.path||"/"}`,o.domain&&(i+=`; domain=${o.domain}`),o.sameSite?i+=`; SameSite=${o.sameSite}`:i+="; SameSite=Lax",o.secure&&(i+="; Secure"),document.cookie=i}function b(e){if(!e)return;let t=new RegExp("(?:^|; )"+decodeURIComponent(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"=([^;]*)"),n=document.cookie.match(t);return n?decodeURIComponent(n[1]):void 0}var x=document.getElementById("navToggle"),L=document.getElementById("liToggle"),_=document.getElementById("swuToggle"),r=document.getElementById("searchBtn"),c=document.getElementById("searchContainer"),a=document.getElementById("searchInput"),S=document.getElementById("mainNavigation"),g=document.getElementById("header"),k=document.querySelector("#linkerMenu"),w=document.querySelector("#menu-top_menu");if(g){let e=parseInt(g.offsetTop),t=parseInt(S?.offsetHeight);g.classList[t>50?"add":"remove"]("small-menu-text"),document.addEventListener("scroll",()=>{g.classList[window.scrollY>e?"add":"remove"]("fixed")},{passive:!0}),g.querySelectorAll("ul li.menu-item-has-children .menu-link span")?.forEach(n=>{n.addEventListener("click",()=>{let o=n.closest("li");o.classList[o.classList.contains("open")?"remove":"add"]("open")})})}x&&x.addEventListener("click",()=>{r&&r.classList.remove("opened"),c&&c.classList.remove("opened");let e=parseInt(sessionStorage.getItem("open_nav_menu_count"));e?e+=1:e=1,sessionStorage.setItem("open_nav_menu_count",e),l("user_action",{element:"nav_menu",type:"open",count:e}),h()});document.querySelectorAll(".custom-ban button, .custom-ban a")?.forEach(e=>{let t=e.tagName.toLowerCase();e.addEventListener("click",()=>{let n={element:"nav_action_banner",type:"click"};t==="button"?n.type="register_click":t==="a"&&(n.url=e.getAttribute("href")),l("user_action",n)})});L&&L.addEventListener("click",()=>{h(!0)});_&&_.addEventListener("click",()=>{_.classList[_.classList.contains("active")?"remove":"add"]("active")});r&&(r.addEventListener("click",()=>{h(!0),r.classList[r.classList.contains("opened")?"remove":"add"]("opened"),c.classList[c.classList.contains("opened")?"remove":"add"]("opened"),c.classList.contains("opened")&&a&&a.focus()}),document.addEventListener("click",function(e){e.target.closest("#searchBtn.opened")===null&&e.target.closest("#searchInput")===null&&r.classList.contains("opened")&&r.click()}));if(a){let e=c.querySelector("ul.searchList"),t=null,n=null,o=100;a.addEventListener("input",()=>{clearTimeout(n),a.classList.add("working"),n=setTimeout(s,o)});async function s(){let i=encodeURIComponent(a.value.trim());e.classList.remove("filled"),e.innerHTML="",t&&t.abort(),t=new AbortController;let{signal:d}=t;try{let u=await fetch(window.hexjs.rest_search||"/wp-json/brand-hex/v1/other/search",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":window.hexjs.rest_nonce||""},body:JSON.stringify({search:i}),signal:d});if(!u.ok)throw new Error(`HTTP ${u.status}`);let m=await u.json();if(d.aborted)return;l("search_success",{search_text:i,found_items:m.length}),m.length>0&&(e.innerHTML="",m.forEach(p=>{let E=C(p.value),v=document.createElement("li");if(p.link){let f=document.createElement("a");f.setAttribute("href",p.link),f.textContent=E,v.appendChild(f)}else{let f=document.createElement("span");f.textContent=E,v.appendChild(f)}e.appendChild(v)}),e.classList.add("filled"))}catch(u){if(u.name==="AbortError")return;let m=document.createElement("li"),p=document.createElement("span");p.textContent="Loading error",e.appendChild(m),e.classList.add("filled"),m.appendChild(p),console.error(u)}finally{d.aborted||(a.classList.remove("working"),document.activeElement!==a&&a.focus()),t&&t.signal===d&&(t=null)}}}function C(e){return e.replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t])}!b("USER_REFERER")&&document.referrer&&y("USER_REFERER",document.referrer);b("USER_FIRST_VISIT")||y("USER_FIRST_VISIT",location.origin+location.pathname+location.search);window.innerWidth<=1200&&c&&document.querySelector(".header-nav-mob-top").after(c);window.innerWidth<=1200&&k&&document.querySelector(".header-nav-mob-top").prepend(k);if(window.innerWidth<=1200&&w){let e=document.querySelector(".header-nav-mob");e.appendChild(w),w.classList.remove("desktop"),_&&e.appendChild(_)}
1document.querySelectorAll(".basic-banner-wrap").forEach(e=>{let t=e.querySelector(".basic-banner-btn"),n=t?.getAttribute("data-source_context")||"",o=t?.getAttribute("data-destination_url")||"";if(t?.addEventListener("click",()=>{l("basic_banner_click",{source_context:n,destination_url:o})}),"IntersectionObserver"in window){let s=new IntersectionObserver(i=>{i.forEach(d=>{d.isIntersecting&&(l("basic_banner_view",{source_context:n,destination_url:o}),s.disconnect())})});s.observe(e)}})})()

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.