PageSourceSearch

https://tangail.gov.bd/widget-assets/js/HeaderVersionFourWidget

js tangail.gov.bd collected 2026-10-02 16:48:12 UTC 1,528 bytes, 3 lines download raw bytes

1;((window,document)=>{ // HeaderVersionFourWidget
2function setCookie(e,t,n){var o=new Date,n=(o.setTime(o.getTime()+24*n*60*60*1e3),"expires="+o.toUTCString());document.cookie=e+"="+t+";"+n+";path=/",window.location.reload()}function getCookieLang(e){var t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){var o=n[e].trim();if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}document.querySelectorAll(".bangladesh-header-widget-dropdown").forEach(n=>{var e=n.querySelector(".bangladesh-header-widget-dropdown-toggle"),t=n.querySelector(".bangladesh-header-widget-dropdown-menu").querySelectorAll(".bangladesh-header-widget-dropdown-item");let o=document.getElementById("bangladesh-header-widget-current-lang");e.addEventListener("click",()=>{n.classList.contains("show")?n.classList.remove("show"):n.classList.add("show")}),t.forEach(t=>{t.addEventListener("click",e=>{e.preventDefault(),o.textContent=t.getAttribute("data-lang"),n.classList.remove("show"),setCookie("lang",t.getAttribute("data-value"),30)})}),document.addEventListener("click",e=>{n.contains(e.target)||n.classList.remove("show")})});let langCookie=getCookieLang("lang"),currentLang=document.getElementById("bangladesh-header-widget-current-lang");langCookie?(currentLang.textContent=langCookie.toUpperCase(),document.documentElement.setAttribute("lang",currentLang.textContent?.toLowerCase())):(setCookie("lang","bn",30),currentLang.textContent="BN",document.documentElement.setAttribute("lang","bn"));
3})(_window,_document);

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.