PageSourceSearch

https://www.waterdrop.com/cdn/shop/t/30/assets/safe-sticky-C_EOZR3a.js

js waterdrop.com collected 2026-10-01 10:27:31 UTC 897 bytes, 1 lines download raw bytes

1var e=class extends HTMLElement{connectedCallback(){this.lastKnownY=window.scrollY,this.currentTop=0,this.hasPendingRaf=!1,window.addEventListener("scroll",this._checkPosition.bind(this))}get initialTopOffset(){return getStickyHeaderOffset()+(parseInt(this.getAttribute("offset"))||0)}_checkPosition(){this.hasPendingRaf||(this.hasPendingRaf=!0,requestAnimationFrame(()=>{let t=this.getBoundingClientRect(),i=t.top+window.scrollY-this.offsetTop+this.initialTopOffset,s=this.clientHeight-window.innerHeight;window.scrollY<this.lastKnownY?this.currentTop-=window.scrollY-this.lastKnownY:this.currentTop+=this.lastKnownY-window.scrollY,this.currentTop=Math.min(Math.max(this.currentTop,-s),i,this.initialTopOffset),this.lastKnownY=window.scrollY,this.style.top=`${this.currentTop}px`,this.hasPendingRaf=!1}))}};window.customElements.get("safe-sticky")||window.customElements.define("safe-sticky",e);

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.