PageSourceSearch

https://web3bet.com/wp-content/themes/web3bet-theme/assets/build/js/loadmore_newspage.js?ver=1790680368

js web3bet.com collected 2026-10-06 14:01:42 UTC 2,596 bytes, 1 lines download raw bytes

1!function(){"use strict";class t{constructor(t){this.ajaxUrl=window.siteConfig?.ajaxUrl??"",this.ajaxNonce=window.siteConfig?.ajax_nonce??"",this.action=t,this.isRequestProcessing=!1,this.timer=null,this.xhr=null,this.requestSeq=0,this.destroyed=!1,this.listeners=new AbortController}on(t,e,s){t?.addEventListener(e,s,{signal:this.listeners.signal})}onPagination(t,e){this.on(t,"click",(s=>{const i=s.target?.closest?.(".bonuses-cards-list-pagination-link");i&&t.contains(i)&&(s.preventDefault(),i.parentNode?.matches?.(".unactive")||e(i))}))}pushPageUrl(t){const e=t.getAttribute("href");e&&"#"!==e&&history.pushState({page:t.dataset.page},"",e)}scrollToElement(t){t&&window.scrollTo({top:t.offsetTop-67,behavior:"smooth"})}request(t,e){let{target:s,onSuccess:i,onError:n}=e;clearTimeout(this.timer);const r=++this.requestSeq,a=()=>this.destroyed||r!==this.requestSeq||s&&!s.isConnected;this.isRequestProcessing=!0,this.timer=setTimeout((()=>{this.xhr?.abort(),this.xhr=window.jQuery.ajax({url:this.ajaxUrl,type:"post",data:{...t,action:this.action,ajax_nonce:this.ajaxNonce},success:t=>{a()||(this.finishRequest(),i(t))},error:(t,e)=>{"abort"===e||a()||(this.finishRequest(),n?.(t))}})}),200)}renderHtml(t,e){window.jQuery(t).html(e)}finishRequest(){this.isRequestProcessing=!1,this.xhr=null}destroy(){this.destroyed=!0,clearTimeout(this.timer),this.requestSeq++,this.xhr?.abort(),this.finishRequest(),this.listeners.abort()}}class e extends t{constructor(t){super("load_more_newspage"),this.container=t,this.currentCat=t.dataset.cat??"",this.paginationBase=t.dataset.paginationBase??"",this.loadingCards=function(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=Array.from({length:t},(()=>`<div class='${e}'></div>`)).join(" ");return s?`<div class='${s}'>${i}</div>`:i}(8,"archive-card-item loading","archive-articles-cards"),this.onPagination(t,(e=>{this.pushPageUrl(e),this.handleLoadMorePosts(e.dataset.page),this.scrollToElement(t)}))}handleLoadMorePosts(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const e=this.container;e.innerHTML=this.loadingCards,this.request({page:t,cat:this.currentCat,pagination_base
1:this.paginationBase},{target:e,onSuccess:t=>{this.renderHtml(e,function(t){return""===t||"0"===t}(t)?"<p>Nothing found 😓</p>":t)},onError:()=>{e.innerHTML="<p>Something went wrong 😓</p>"}})}}!function(t){let s=null;const i=()=>{s?.destroy(),s=(()=>{const t=document.querySelector(".news-page-hero .archive-articles-container[data-cat]");return t?new e(t):null})()};i(),document.addEventListener("web3bet:navigated",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.