PageSourceSearch

https://www.banuba.com/hubfs/assets/js/1.3.0/scroll-up-XZtFWHZw.js

js banuba.com collected 2026-09-24 08:53:48 UTC 984 bytes, 1 lines download raw bytes

1import{l as t}from"./app.js";class e{constructor(e){return this.log=t("ScrollUp"),e?(this.log("Init: ",e),this.nodeElement=e,this.visible=!1,this.init(),this):(this.log("No node element provided"),!1)}init(){return this.log("Init call"),this.bindEvents(),this.update(),this}bindEvents(){return this.log("Bind events"),this.nodeElement.addEventListener("click",(t=>{t.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})})),window.addEventListener("scroll",(t=>{this.update()})),this}show(){return this.visible||(this.log("Show call"),this.nodeElement.classList.add("visible"),this.visible=!0),this}hide(){return this.visible?(this.log("Hide call"),this.nodeElement.classList.remove("visible"),this.visible=!1,this):this}update(){return(self.pageYOffset?self.pageYOffset:document.documentElement?.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0)>window.innerHeight?this.show():this.hide(),this}}export{e as ScrollUp,e 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.