File manager - Edit - /home/premiey/www/wp-content/plugins/astra-addon/addons/woocommerce/assets/js/minified/pagination-infinite.min.js
Back
!function(){var d=parseInt(astra.shop_infinite_total)||"",c=parseInt(astra.shop_infinite_count)||"",e=astra.shop_pagination||"",l=!0,t=astra.shop_infinite_scroll_event||"",p=document.querySelector(".ast-shop-pagination-infinite .ast-loader");if(astShopLoadMore=document.querySelector(".ast-shop-load-more"),typeof e&&"infinite"==e){if(("undefined"==typeof wp||!(void 0!==wp.customize))&&typeof t)switch(t){case"click":astShopLoadMore&&astShopLoadMore.addEventListener("click",function(e){if(e.preventDefault(),"undefined"!=c&&""!=c&&"undefined"!=d&&""!=d){if(d<c)return!1;r(c),c++}});break;case"scroll":var o,a=document.querySelector(".product:last-child").getBoundingClientRect(),n=a.top+window.scrollY;a.left,window.scrollX;astShopLoadMore&&astShopLoadMore.classList.add("ast-add-more-button-hide"),0<document.getElementById("main").querySelectorAll(".product:last-child").length&&(o=window.outerHeight/1.25,window.addEventListener("scroll",function(){if(window.scrollY+o>=n){if(d<c)return!1;1==l&&(r(c),c++,l=!1)}}))}function r(n){astShopLoadMore&&astShopLoadMore.classList.remove("active");var r=document.querySelector("a.next.page-numbers"),i=r.getAttribute("href"),s=(p.style.display="block",new XMLHttpRequest);s.open("GET",i,!0),s.send(),s.onload=function(){var e=s.response,t=(new DOMParser).parseFromString(e,"text/html").querySelectorAll("li.product"),o=document.querySelector(".ast-woocommerce-container ul.products");o=o||document.querySelector(".elementor-widget-wc-archive-products ul.products"),p.style.display="none",astShopLoadMore&&astShopLoadMore.classList.add("active");for(var a=0;a<t.length;a++)o.append(t[a]);astra.grid_layout;var e=astra.shop_no_more_post_message||"";d<c?document.querySelector(".ast-shop-pagination-infinite").innerHTML='<span class="ast-shop-load-more no-more active" style="display: inline-block;">'+e+"</span>":(e=i.replace(/\/page\/[0-9]+/,"/page/"+(n+1)),r.setAttribute("href",e)),l=!0,document.dispatchEvent(new CustomEvent("astraInfinitePaginationLoaded",{detail:{}}))}}}}();
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings