1shop2.queue.lazyLoad = function() { 2 var $document = $(document), 3 $window = $(window), 4 blocked = false, 5 products = $(".product-list"); 6 7 function path(url, param, value) { 8 return url + (~url.indexOf("?") ? "&" : "?") + param + "=" + value; 9 } 10 11 if (shop2.my.lazy_load_subpages && products.get(0)) { 12 $document.on("click", ".lazy-pagelist-btn", function(e){ 13 14 e.preventDefault(); 15 16 var pagelist = $(".shop-pagelist"); 17 var next = pagelist.find(".active-num").next().find("a"); 18 19 if (!next.length) { 20 return; 21 } 22 23 if (!blocked && next.get(0)) { 24 blocked = true; 25 26 $.get(path(next.attr("href"), "products_only", 1), function(data) { 27 var productsHtml = $(data).filter(".product-list").html(); 28 var $lazyLoad = $(data).filter(".lazy-pagelist"); 29 30 $(".lazy-pagelist").remove(); 31 32 $(".product-list").append(productsHtml); 33 $(".product-list").after($lazyLoad); 34 35 $(".product-list .gr_lazy_load").each(function(){ 36 $(this).attr("src", $(this).attr("data-src")); 37 }); 38 39 if (typeof viewLots === "function") { 40 viewLots(); 41 }; 42 43 if (typeof amountInit === "function") { 44 amountInit(); 45 }; 46 47 pagelist = $(".shop-pagelist"); 48 49 pagelist.find("a").each(function() { 50 var $this = $(this), 51 href = $this.attr("href"); 52 $this.attr("href", href.replace(/[&|\?]*products_only=[^&]/, "")); 53 }); 54 55 blocked = false; 56 }); 57 /*1553*/ 58 var url = document.location.origin; 59 $.ajax({ 60 url: url, 61 success: function(data){ 62 if (shop2.my.gr_img_lazyload) { 63 try{ 64 var myLazyLoad = new LazyLoad(); 65 myLazyLoad.update(); 66 } catch (e) { 67 console.log(e); 68 } 69 } 70 } 71 }); 72 /*1553*/ 73 } 74 }); 75 } 76 77};
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.