PageSourceSearch

https://hexjobs.com/assets/island.A677MHTA.js

js hexjobs.com collected 2026-10-06 13:06:03 UTC 1,774 bytes, 1 lines download raw bytes

1var T="hexjobs_signed=1";function b(){return document.cookie.split("; ").some(e=>e===T)}function y(e,i){let s=e.trim()||i.trim();return s===""?"?":s.split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(r=>r[0]).join("")}var u="hexjobs-account";function H(){try{let e=window.sessionStorage.getItem(u);return e?JSON.parse(e):null}catch{return null}}function p(e){try{if(e===null){window.sessionStorage.removeItem(u);return}window.sessionStorage.setItem(u,JSON.stringify(e))}catch{}}function I(e,i){let s=e.matches("[data-site-header]")?e:e.querySelector("[data-site-header]");if(!s)return()=>{};let o=t=>[...s.querySelectorAll(t)],r=o("[data-account-slot]");if(r.length===0)return()=>{};let m=t=>{r.forEach(a=>a.dataset.state=t?"member":"guest")},v=()=>{o("[data-skeleton]").forEach(t=>t.hidden=!0),o("[data-account]").forEach(t=>t.hidden=!1)},f=t=>{let a=t.name||t.email||"";o("[data-name]").forEach(n=>n.textContent=a),o("[data-email]").forEach(n=>n.textContent=t.email??"");let d=t.avatar??"",g=o("[data-initials]");g.forEach(n=>{n.textContent=y(t.name??"",t.email??""),n.hidden=d!==""}),d!==""&&o("[data-avatar]").forEach(n=>{n.onerror=()=>{n.hidden=!0,g.forEach(L=>L.hidden=!1)},n.src=d,n.alt=a,n.hidden=!1}),v()},c=b()?H():null;c?.signedIn&&f(c);let l=!0;(async()=>{try{let t=await fetch("/api/me",{headers:{accept:"application/json"}});if(!t.ok||!l)return;let a=await t.json();if(!l)return;p(a.signedIn?a:null),m(a.signedIn),a.signedIn&&f(a)}catch{c===null&&m(!1)}})();let w=async()=>{p(null);try{await fetch("/api/auth/session",{method:"DELETE"})}catch{}window.location.reload()},h=t=>{t.currentTarget.disabled=!0,w()},E=o("[data-sign-out]");return E.forEach(t=>t.addEventListener("click",h)),()=>{l=!1,E.forEach(t=>t.removeEventListener("click",h))}}export{I as mount};

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.