1$(function(){ 2 3if(document.body.classList.contains("mobile")){ 4 5 6 7 8var a=document.querySelector("#header .banner-container"); 9 10if(a){ 11var d=a.getBoundingClientRect().left; 12 13a.style.width="100vw", 14a.style.marginLeft=-d+"px", 15a.style.marginBottom="0px"; 16} 17 18if(!(0<window.esh.get("ESH-3743"))){ 19 20 21 22initMobileSlider("#categories-menu",categoriesListLimit);var 23 24b=document.querySelector("#categories-menu"), 25c=document.querySelectorAll(".next-categories-list-cont .list-page"); 26 27b&&( 28 29 30 31c.forEach(function(a){ 32a.addEventListener("click",showNextList); 33}), 34 35b.addEventListener("touchstart",handleTouchStart,!1), 36b.addEventListener("touchmove",handleTouchMove,!1), 370<c.length&&( 38c[0].classList.add("active"), 39c[0].disabled=!0))}} 40 41 42}), 43 44 45 46$(function(){ 47 48var a=["novinky","bestsellery"]; 49 50document.body.classList.contains("mobile")|| 51a.push("great-prices-products","mega-sale-products","toy-products","english-books");var 52 53 54b=a. 55map(function(a){return document.getElementById(a)}). 56filter(function(a){return!!a}), 57 58c=function(a,b,c){ 59 60return fetch("/?ajax=true&homefeatured="+a+"&offset="+(null!==b&&void 0!==b?b:0)+"&limit="+(null!==c&&void 0!==c?c:0)). 61then(function(a){return a.json()}); 62}, 63 64d=function(a,b){ 65if(b&&b.length){ 66 67 68 69var c=b.join(""); 70a.innerHTML+=c, 71 72window.handleCartPopupLinks&& 73window.handleCartPopupLinks(), 74 75window.initializeTippy&& 76window.initializeTippy()} 77 78}, 79 80e=function(a){ 81var b=10; 82 83 84 85 86 87return a.classList.contains("single-row-product-list")&&(b=5),b; 88}; 89 90b.forEach(function(a){var 91 92b=a.querySelector("ul#product_list"), 93f=a.querySelector("button[data-load-homefeatured]"); 94if(b&&f){var 95 96 97g=f.dataset.loadHomefeatured, 98 99h=!1, 100i=b.childElementCount, 101 102j=a.querySelector(".pagination-placeholder"); 103j&& 104 105c(g,0,e(a)). 106then(function(c){var e;return( 107 108c.products&&c.products.length?void( 109 110 111 112 113 114j.style.display="none", 115f.parentElement.style.display="block", 116 117b.innerHTML="", 118d(b,c.products),(null===(e= 119 120c.hasMore)||void 0===e||!e)&& 121f.remove(), 122 123i=c.limit):void a.remove()); 124}), 125 126 127f.addEventListener("click",function(j){ 128j.preventDefault(), 129 130h||( 131 132 133h=!0, 134f.classList.add("loading"), 135 136c(g,i). 137then(function(c){var e, 138g=null!==(e=c.hasMore)&&void 0!==e&&e;return( 139d(b,c.products), 140 141g?void( 142 143 144 145 146i+=c.limit, 147h=!1, 148f.classList.remove("loading"), 149 150a.classList.contains("single-row-product-list")? 151a.classList.remove("single-row-product-list"): 152 153a.classList.remove("two-row-product-list")):void f.remove()); 154 155})); 156})} 157}); 158 159});
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.