1var SUGGESTION = { 2 init:function(){ 3 SUGGESTION.AlsoLike(); 4 SUGGESTION.SuggestionsCarousel(); 5 SUGGESTION.LoadDefault(); 6 }, 7 ReloadProcess:function(){ 8 var html = ""; 9 html += '<div class="graph__preloader">'; 10 html += '<div class="js-preloader preloader">'; 11 html += '<b class="preloader__bar -bar1"></b>'; 12 html += '<b class="preloader__bar -bar2"></b>'; 13 html += '<b class="preloader__bar -bar3"></b>'; 14 html += '<b class="preloader__bar -bar4"></b>'; 15 html += '<b class="preloader__bar -bar5"></b>'; 16 html += '</div>'; 17 html += '</div>'; 18 return html; 19 }, 20 AlsoLike:function(){ 21 $('.product_list_alsolike').owlCarousel({ 22 items:5, 23 loop: true, 24 navigation: false, 25 nav: false, 26 autoplay: false, 27 dots:true, 28 margin:20, 29 autoplaySpeed : 200, 30 navSpeed : 200, 31 dotsSpeed : 200, 32 autoplayHoverPause: true, 33 responsive: { 34 0: {items: 1}, 35 1200: {items: 5}, 36 992: {items: 4}, 37 768: {items: 4}, 38 531: {items: 3, margin:20}, 39 300: {items: 2, margin:20} 40 }, 41 onInitialize: function (event) { 42 if ($('.product_list_alsolike').find('article').length <= 1) { 43 this.settings.loop = false; 44 } 45 }, 46 navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"] 47 }); 48 }, 49 SuggestionsCarousel:function(){ 50 $('.suggestions-contents .product_list').owlCarousel({ 51 items:5, 52 loop: true, 53 navigation: false, 54 nav: false, 55 autoplay: false, 56 dots:true, 57 margin:20, 58 autoplaySpeed : 200, 59 navSpeed : 200, 60 dotsSpeed : 200, 61 autoplayHoverPause: true, 62 responsive: { 63 0: {items: 1}, 64 1200: {items: 5}, 65 992: {items: 4}, 66 768: {items: 4}, 67 531: {items: 3, margin:20}, 68 300: {items: 2, margin:20} 69 }, 70 onInitialize: function (event) { 71 if ($('.suggestions-contents .product_list').find('article').length <= 1) { 72 this.settings.loop = false; 73 } 74 }, 75 navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"] 76 }); 77 }, 78 LoadDefault:function(){ 79 var checkStatus = jQuery(".suggestions-contents").attr("data-ajaxload"); 80 if(typeof checkStatus == "undefined" || checkStatus == 0) return false; 81 var processHtml = SUGGESTION.ReloadProcess(); 82 jQuery(".suggestions-contents .graph__preloader").remove(); 83 jQuery(".suggestions-contents").append(processHtml); 84 jQuery(".suggestions-contents").css({ 85 'position':'relative', 86 'min-height':350 87 }); 88 var urlAjax = jQuery(".suggestions-contents").attr("data-ajaxurl"); 89 var params = {} 90 jQuery.ajax({ 91 url: urlAjax, 92 data:params, 93 type:"POST", 94 success:function(data){ 95 setTimeout(function(){ 96 var results = JSON.parse(data); 97 jQuery(".suggestions-contents .graph__preloader").remove(); 98 jQuery(".suggestions-contents").html(results); 99 jQuery(".suggestions-contents").css({ 100 'position':'relative', 101 'min-height':'auto' 102 }); 103 SUGGESTION.SuggestionsCarousel(); 104 105 },600); 106 return false; 107 } 108 }); 109 }, 110} 111jQuery(document).ready(function(){ 112 SUGGESTION.init(); 113});
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.