PageSourceSearch

https://fpmarkets.eu/build/assets/lang-selector-BsB7oCgu.js

js fpmarkets.eu collected 2026-10-06 10:17:40 UTC 1,230 bytes, 1 lines download raw bytes

1const l=new Set;let d=!1;function v(r=document){const a=r.querySelectorAll("[data-lang-select]");a.length&&(a.forEach(e=>{const o=e.querySelector("[data-selected]"),n=e.querySelector("[data-selected-value]"),c=e.querySelector("[data-dropdown]").querySelectorAll(".lang-select__option");e.dataset.langSelectInitialized!=="true"&&(e.dataset.langSelectInitialized="true",l.add(e),o.addEventListener("click",()=>{a.forEach(s=>s!==e&&s.classList.remove("open")),e.classList.toggle("open");const t=r.querySelector(".navbar__dropdown");t.style.animation="slideUp 0.3s ease-in-out forwards",setTimeout(()=>{t.classList.remove("navbar__dropdown--visible")},300)}),c.forEach(t=>{t.addEventListener("click",()=>{c.forEach(i=>i.classList.remove("active")),t.classList.add("active");const s=t.getAttribute("data-value");n.textContent=s,e.classList.remove("open")})}))}),window.addEventListener("scroll",()=>{a.forEach(e=>e.classList.remove("open"))}),r.querySelectorAll(".navbar__menu").forEach(e=>{e.addEventListener("mouseover",()=>{a.forEach(o=>o.classList.remove("open"))})}),d||(document.addEventListener("click",e=>{const o=e.composedPath();l.forEach(n=>{o.includes(n)||n.classList.remove("open")})}),d=!0))}export{v as initLangSelect};

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.