1(function () { 2 function slugifyState(value) { 3 return String(value || "") 4 .toLowerCase() 5 .trim() 6 .replace(/[^a-z0-9\s-]/g, "") 7 .replace(/\s+/g, "-") 8 .replace(/-+/g, "-"); 9 } 10 11 function setupStateSelector(selectEl) { 12 if (!selectEl) return; 13 14 selectEl.addEventListener("change", function () { 15 var selectedState = selectEl.value; 16 if (!selectedState) return; 17 18 var slug = slugifyState(selectedState); 19 if (!slug) return; 20 21 var base = selectEl.getAttribute("data-base-path") || "/tag"; 22 base = base.replace(/\/+$/, ""); 23 24 window.location.href = base + "/" + slug; 25 }); 26 } 27 28 document.addEventListener("DOMContentLoaded", function () { 29 var selectors = document.querySelectorAll(".js-state-selector"); 30 selectors.forEach(setupStateSelector); 31 }); 32})();
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.