PageSourceSearch

https://www.albany.org/dist/ScrollUpLink-D4hYclJt.js

js albany.org collected 2026-10-02 02:53:20 UTC 1,464 bytes, 1 lines download raw bytes

1import{d as o}from"./index--6mjBm2l.js";import{L as l}from"./ListenerManager-B9zmCDZv.js";const r=(t={})=>({baseClass:t.baseClass??"animated",inClass:t.inClass??"fade-in",outClass:t.outClass??"fadeOut",offset:t.offset??0,topDistance:t.topDistance??400,bottomOffset:t.bottomOffset??120,bottomHysteresis:t.bottomHysteresis??160,nearBottom:!1,listenerBoss:new l,scrollHandler:null,init(){return()=>this.mounted()},mounted(){this.baseClass&&this.$el.classList.add(this.baseClass),this.startScrollWatching(),this.checkScrollPosition()},destroy(){this.listenerBoss.removeAll(),this.scrollHandler=null},scrollToTop(){window.scrollTo({top:this.offset,left:0,behavior:"smooth"})},startScrollWatching(){this.scrollHandler||(this.scrollHandler=o(()=>this.checkScrollPosition(),10,{immediate:!1}),["DOMContentLoaded","load","resize","scroll"].forEach(s=>{this.listenerBoss.register(window,s,this.scrollHandler)}))},checkScrollPosition(){const s=window.pageYOffset||document.documentElement.scrollTop,e=document.documentElement.scrollHeight-(window.innerHeight+s);if(e<=this.bottomOffset?this.nearBottom=!0:e>this.bottomOffset+this.bottomHysteresis&&(this.nearBottom=!1),s<this.topDistance||this.nearBottom){this.$el.classList.remove(this.inClass),this.$el.classList.add(this.outClass),this.setInertState(!0);return}this.$el.classList.remove(this.outClass),this.$el.classList.add(this.inClass),this.setInertState(!1)},setInertState(s){this.$el.inert=s}});export{r as default};

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.