PageSourceSearch

https://www.fussballtransfers.com/build/js/sidePaginationManager.e05924cf.js

js fussballtransfers.com collected 2026-10-02 12:08:06 UTC 3,265 bytes, 1 lines download raw bytes

1!function(){function t(t,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}function e(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var i=function(){"use strict";return e=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),window.addEventListener("load",(function(){var t=document.querySelector(".group__side .tabs__tab.active");e.init(t)}))},i=[{key:"init",value:function(t){if(t){this.position=0;var e=t.querySelector(".sideArticles");e&&(this.$wrapper=e,this.$wrapper.style.height=this.$wrapper.offsetHeight+"px",this.itemsPerPage=this.$wrapper.querySelectorAll(".articleCompact").length,this.listenNextClick(t),this.listenPreviousClick(t))}}},{key:"listenNextClick",value:function(t){var e=this;this.nextButton=t.querySelector("[data-side-pagination-next]"),this.nextButton.addEventListener("click",(function(t){t.preventDefault();var i=e.$wrapper.querySelectorAll(".articleCompact").length,n=i/e.itemsPerPage+1;if(e.position+e.itemsPerPage<i)return e.position=e.position+e.itemsPerPage,void e.scrollToPosition();var r=t.currentTarget.dataset.sidePaginationNext;r=r.includes("?")?"".concat(r,"&page=").concat(n):"".concat(r,"?page=").concat(n),Number.isInteger(n)?e.fetch(r).then((function(){i=e.$wrapper.querySelectorAll(".articleCompact").length})):e.nextButton.classList.add("disabled")}))}},{key:"listenPreviousClick",value:function(t){var e=this;this.previousButton=t.querySelector("[data-side-pagination-previous]"),this.updateButtonState(),this.previousButton.addEventListener("click",(function(t){t.preventDefault(),0!==e.position&&(e.position=e.position-e.itemsPerPage,e.scrollToPosition(),e.nextButton.classList.remove("disabled"))}))}},{key:"fetch",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=this;return this.nextButton.classList.add("loading"),fetch(t,{method:"GET"}).then((function(t){if(!t.ok)throw Error(t.statusText);return t.text()})).then((function(t){""===t?e.nextButton.classList.add("disabled"):(e.$wrapper.innerHTML+=t,e.position=e.$wrapper.querySelectorAll(".articleCompact").length-10,e.scrollToPosition(),window.articlesFlashManager&&window.articlesFlashManager.init(e.$wrapper))})).catch((function(t){console.error(t)}))}))},{key:"scrollToPosition",value:function(){var t=this.$wrapper.querySelector(".articleCompact:nth-of-type(".concat(this.position+1,")")).getBoundingClientRect().height*this.position;this.$wrapper.scrollTo({top:t,behavior:"smooth"}),this.updateButtonState()}},{key:"updateButtonState",value:function(){this.previousButton&&(0===this.position?this.previousButton.classList.add("disabled"):this.previousButton.classList.remove("disabled"))}}],i&&t(e.prototype,i),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,i,n}();window.sidePaginationManager=new 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.