PageSourceSearch

https://kozienice.pl/js/prod/transpiled/simple-scroll-bar.js?ts=1742733078

js kozienice.pl collected 2026-10-02 20:38:46 UTC 3,328 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)};function r(t){Object.defineProperty(t,"data-simple-scrollbar",{value:new o(t),configurable:!0})}function l(t){Object.prototype.hasOwnProperty.call(t,"data-simple-scrollbar")&&(t["data-simple-scrollbar"].unBind(),delete t["data-simple-scrollbar"])}function s(r){for(this.target=r,this.content=r.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,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 n(){t.classList.remove("-hideScrollBar"),e.body.classList.remove("-hideScrollBar"),e.removeEventListener("mousemove",s),e.removeEventListener("mouseup",n)}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",n),!1}))}(this.bar,this),this.moveBar(),t.addEventListener("resize",this.mB),this.el.addEventListener("scroll",this.mB),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),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)r(e)}s.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.add("-active"),l.bar.style.cssText="height:"+Math.max(100*l.scrollRatio,10)+"%; top:"+l.el.scrollTop/e*100+"%;left:"+s+"px;")}))}},e.addEventListener("DOMContentLoaded",n),s.initEl=r,s.initAll=n,s.initChilds=function(t){t||(t=document.body);let e=t.querySelectorAll(".js__simpleScrollBar:not(.simpleScrollBar__Container)");if(e)for(let t of e)r(t)},s.unbindEl=l,s.unbindAll=function(){let t=e.querySelectorAll(".simpleScrollBar__Container");for(let e=0;e<t.length;e++)l(t[e])};let o=s;return o}));

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.