PageSourceSearch

https://gminadrawsko.pl/js/prod/transpiled/simple-scroll-bar.js?ts=1790066146

js gminadrawsko.pl collected 2026-09-25 07:57:30 UTC 3,582 bytes, 1 lines download raw bytes

1"use strict";!function(t,e){"object"==typeof exports?module.exports=e(window,document):window.SimpleScrollbar=e(window,document)}(0,function(t,e){let i=t.requestAnimationFrame||t.setImmediate||function(t){return setTimeout(t,0)};const r="touch"===window.deviceInfo.primaryInput;function l(t){Object.defineProperty(t,"data-simple-scrollbar",{value:new a(t),configurable:!0})}function s(t){Object.prototype.hasOwnProperty.call(t,"data-simple-scrollbar")&&(t["data-simple-scrollbar"].unBind(),delete t["data-simple-scrollbar"])}function o(l){for(this.target=l,this.content=l.firstElementChild,this.direction=t.getComputedStyle(this.target).direction,this.bar='<div class="simpleScrollBar__Scroll">',this.mB=this.moveBar.bind(this),this.wrapper=e.createElement("div"),this.wrapper.setAttribute("class","simpleScrollBar__Wrapper"),this.el=e.createElement("div"),this.el.setAttribute("class","simpleScrollBar__Content"),this.el.setAttribute("tabindex","-1"),"rtl"===this.direction&&this.el.classList.add("-rtl"),this.wrapper.appendChild(this.el);this.target.firstChild;)this.el.appendChild(this.target.firstChild);this.target.appendChild(this.wrapper),this.target.insertAdjacentHTML("beforeend",this.bar),this.bar=this.target.lastChild,r||function(t,r){let l;function s(t){let e=t.pageY-l;l=t.pageY,i(function(){r.el.scrollTop+=e/r.scrollRatio})}function o(){t.classList.remove("-hideScrollBar"),e.body.classList.remove("-hideScrollBar"),e.removeEventListener("mousemove",s),e.removeEventListener("mouseup",o)}t.addEventListener("mousedown",function(i){return l=i.pageY,t.classList.add("-hideScrollBar"),e.body.classList.add("-hideScrollBar"),e.addEventListener("mousemove",s),e.addEventListener("mouseup",o),!1})}(this.bar,this),this.moveBar(),t.addEventListener("resize",this.mB),this.el.addEventListener("scroll",this.mB),r||this.el.addEventListener("mouseenter",this.mB),this.target.classList.add("simpleScrollBar__Container"),this.unBind=function(){t.removeEventListener("resize",this.mB),this.el.removeEventListener("scroll",this.mB),r||this.el.removeEventListener("mouseenter",this.mB),this.target.classList.remove("simpleScrollBar__Container"),this.target.insertBefore(this.content,this.wrapper),this.target.removeChild(this.wrapper),this.target.removeChild(this.bar),this.bar=null}}function n(){let t=e.querySelectorAll(".js__simpleScrollBar:not(.simpleScrollBar__Container)");if(t)for(let e of t)l(e)}o.prototype={moveBar:function(t){let e=this.el.scrollHeight,r=this.el.clientHeight,l=this;this.scrollRatio=r/e;let s="rtl"===l.direction?l.target.clientWidth-l.bar.clientWidth+18:l.target.clientWidth-l.bar.clientWidth-parseInt(getComputedStyle(l.bar,null).getPropertyValue("border-left-width").slice(0,-2))-parseInt(getComputedStyle(l.bar,null).getPropertyValue("border-right-width").slice(0,-2));i(function(){l.scrollRatio>=1?(l.bar.classList.remove("-active"),l.bar.classList.remove("-visible")):(l.bar.classList.add("-active"),l.bar.classList.add("-visible"),l.bar.style.cssText="height:"+Math.max(100*l.scrollRatio,10)+"%; top:"+l.el.scrollTop/e*100+"%;left:"+s+"px;")}),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(function(){l.bar.classList.remove("-visible")},1e3)}},e.addEventListener("DOMContentLoaded",n),o.initEl=l,o.initAll=n,o.initChilds=function(t){t||(t=document.body);let e=t.querySelectorAll(".js__simpleScrollBar:not(.simpleScrollBar__Container)");if(e)for(let t of e)l(t)},o.unbindEl=s,o.unbindAll=function(){let t=e.querySelectorAll(".simpleScrollBar__Container");for(let e=0;e<t.length;e++)s(t[e])};let a=o;return a});

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.