PageSourceSearch

https://casinohex.in/wp-content/themes/brand-hex/app/js/header.js?ver=6f3f2c58

js casinohex.in collected 2026-10-01 15:30:39 UTC 4,694 bytes, 1 lines download raw bytes

1(()=>{function f(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,i={}){let s=new Date;s.setTime(s.getTime()+n*24*60*60*1e3);let o=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;o+=`; expires=${s.toUTCString()}`,o+=`; path=${i.path||"/"}`,i.domain&&(o+=`; domain=${i.domain}`),i.sameSite?o+=`; SameSite=${i.sameSite}`:o+="; SameSite=Lax",i.secure&&(o+="; Secure"),document.cookie=o}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 L=document.getElementById("navToggle"),x=document.getElementById("liToggle"),p=document.getElementById("swuToggle"),r=document.getElementById("searchBtn"),c=document.getElementById("searchContainer"),a=document.getElementById("searchInput"),S=document.getElementById("mainNavigation"),_=document.getElementById("header"),k=document.querySelector("#linkerMenu"),E=document.querySelector("#menu-top_menu");if(_){let e=parseInt(_.offsetTop),t=parseInt(S?.offsetHeight);_.classList[t>50?"add":"remove"]("small-menu-text"),document.addEventListener("scroll",()=>{_.classList[window.scrollY>e?"add":"remove"]("fixed")},{passive:!0}),_.querySelectorAll("ul li.menu-item-has-children .menu-link span")?.forEach(n=>{n.addEventListener("click",i=>{let s=n.closest("li");s.classList[s.classList.contains("open")?"remove":"add"]("open")})})}L&&L.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),f("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")),f("user_action",n)})});x&&x.addEventListener("click",()=>{h(!0)});p&&p.addEventListener("click",()=>{p.classList[p.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,i=100;a.addEventListener("input",()=>{clearTimeout(n),a.classList.add("working"),n=setTimeout(s,i)});async function s(){let o=encodeURIComponent(a.value.trim());e.classList.remove("filled"),e.innerHTML="",t&&t.abort(),t=new AbortController;let{signal:g}=t;try{let l=await fetch(hexjs.rest_search,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":hexjs.rest_nonce},body:JSON.stringify({search:o}),signal:g});if(!l.ok)throw new Error(`HTTP ${l.status}`);let d=await l.json();if(g.aborted)return;f("search_success",{search_text:o,found_items:d.length}),d.length>0&&(e.innerHTML="",d.forEach(u=>{let w=T(u.value),v=document.createElement("li");if(u.link){let m=document.createElement("a");m.setAttribute("href",u.link),m.textContent=w,v.appendChild(m)}else{let m=document.createElement("span");m.textContent=w,v.appendChild(m)}e.appendChild(v)}),e.classList.add("filled"))}catch(l){if(l.name==="AbortError")return;let d=document.createElement("li"),u=document.createElement("span");u.textContent="Loading error",e.appendChild(d),e.classList.add("filled"),d.appendChild(u),console.error(l)}finally{g.aborted||(a.classList.remove("working"),document.activeElement!==a&&a.focus()),t&&t.signal===g&&(t=null)}}}function T(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&&E){let e=document.querySelector(".header-nav-mob");e.appendChild(E),E.classList.remove("desktop"),p&&e.appendChild(p)}})();

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.