PageSourceSearch

https://gfx.antyradio.pl/design/antyradio/javascript/chunks/SliderSimple-chunk.js?s=f2afb15b4ef9cd5fc876

js antyradio.pl collected 2026-10-02 02:54:36 UTC 2,896 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkantyradio=self.webpackChunkantyradio||[]).push([[26],{1268:(e,t,i)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}i.r(t),i.d(t,{default:()=>c});var c=function(){return e=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config={desktop:"simple__slider__desktop",mobile:"simple__slider__mobile",slide:"simple__slider__slide",btnnext:"simple__slider__btn--next",btnprev:"simple__slider__btn--prev",widthScroll:"",elementWidth:"",inactiveClass:"in-active"};var i=document.querySelectorAll("."+this.config.desktop);i.length&&i.forEach((function(e){t.getWidth(e),t.clickNext(e),t.clickPrev(e)}))},t=[{key:"clickNext",value:function(e){var t=this;e.querySelector("."+this.config.btnnext).addEventListener("click",(function(i){i.preventDefault(),e.querySelector("."+t.config.slide).scrollLeft=e.querySelector("."+t.config.slide).scrollLeft+2*t.config.elementWidth,setTimeout((function(){t.checkEnd(e),t.checkPrev(e)}),500)}))}},{key:"checkEnd",value:function(e){var t=e.querySelector("."+this.config.slide),i=t.offsetWidth,n=t.scrollWidth,r=t.scrollLeft;r>0&&e.querySelector("."+this.config.btnprev).classList.remove(this.config.inactiveClass),n-r===i?e.querySelector("."+this.config.btnnext).classList.add(this.config.inactiveClass):e.querySelector("."+this.config.btnnext).classList.remove(this.config.inactiveClass)}},{key:"checkPrev",value:function(e){0===e.querySelector("."+this.config.slide).scrollLeft&&e.querySelector("."+this.config.btnprev).classList.add(this.config.inactiveClass)}},{key:"clickPrev",value:function(e){var t=this;e.querySelector("."+this.config.btnprev).addEventListener("click",(function(i){i.preventDefault(),e.querySelector("."+t.config.slide).scrollLeft=e.querySelector("."+t.config.slide).scrollLeft-2*t.config.elementWidth,setTimeout((function(){t.checkEnd(e),t.checkPrev(e)}),500)}))}},{key:"getWidth",value:function(e){this.config.widthScroll=e.querySelector("."+this.config.slide).scrollWidth,this.config.elementWidth=e.querySelector("."+this.config.slide+" .list-element").offsetWidth}}],t&&r(e.prototype,t),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()}}]);

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.