PageSourceSearch

https://visitadirondacks.com/themes/custom/artc/assets/plugins/selectnav.js-v0.0.1/selectnav.min.js?v=1.x

js visitadirondacks.com collected 2026-10-02 04:18:29 UTC 2,042 bytes, 1 lines download raw bytes

1window.selectnav=function(){"use strict";var selectnav=function(element,options){if((element=document.getElementById(element))&&islist(element)&&"insertAdjacentHTML"in window.document.documentElement){document.documentElement.className+=" js";var o=options||{},activeclass=o.activeclass||"active",autoselect="boolean"!=typeof o.autoselect||o.autoselect,nested="boolean"!=typeof o.nested||o.nested,indent=o.indent||"→",label=o.label||"Quicklinks",level=0,selected=" selected ";element.insertAdjacentHTML("afterend",parselist(element));var nav=document.getElementById(id());return nav.addEventListener&&nav.addEventListener("change",goTo),nav.attachEvent&&nav.attachEvent("onchange",goTo),nav}function goTo(e){var targ;e||(e=window.event),e.target?targ=e.target:e.srcElement&&(targ=e.srcElement),3===targ.nodeType&&(targ=targ.parentNode),targ.value&&(window.location.href=targ.value)}function islist(list){var n=list.nodeName.toLowerCase();return"ul"===n||"ol"===n}function id(nextId){for(var j=1;document.getElementById("selectnav"+j);j++);return nextId?"selectnav"+j:"selectnav"+(j-1)}function parselist(list){level++;var length=list.children.length,html="",prefix="",k=level-1;if(length){if(k){for(;k--;)prefix+=indent;prefix+=" "}for(var i=0;i<length;i++){var link=list.children[i].children[0];if(void 0!==link){var text=link.innerText||link.textContent,isselected="";if(activeclass&&(isselected=-1!==link.className.search(activeclass)||-1!==link.parentNode.className.search(activeclass)?selected:""),autoselect&&!isselected&&(isselected=link.href===document.URL?selected:""),html+='<option value="'+link.href+'" '+isselected+">"+prefix+text+"</option>",nested){var subElement=list.children[i].children[1];subElement&&islist(subElement)&&(html+=parselist(subElement))}}}return 1===level&&label&&(html='<option value="">'+label+"</option>"+html),1===level&&(html='<select aria-label = "quicklinks" class="selectnav" id="'+id(!0)+'">'+html+"</select>"),level--,html}}};return function(element,options){return selectnav(element,options)}}();

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.