vendor: 416 bytes, lines 1-12
1(function (i, s, o, g, r, a, m) { 2 i['GoogleAnalyticsObject'] = r; 3 i[r] = i[r] || function () { 4 (i[r].q = i[r].q || []).push(arguments) 5 }, i[r].l = 1 * new Date(); 6 a = s.createElement(o), 7 m = s.getElementsByTagName(o)[0]; 8 a.async = 1; 9 a.src = g; 10 m.parentNode.insertBefore(a, m) 11})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); 12ga('create', '
12UA-23146765-1
vendor: 36 bytes, lines 12-13
12', 'auto'); 13ga('send', 'pageview');
14/* Start google tag manager */
vendor: 439 bytes, lines 14-27
14 15(function (w, d, s, l, i) { 16 w[l] = w[l] || []; 17 w[l].push({ 18 'gtm.start': 19 new Date().getTime(), event: 'gtm.js' 20 }); 21 var f = d.getElementsByTagName(s)[0], 22 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; 23 j.async = true; 24 j.src = 25 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 26 f.parentNode.insertBefore(j, f); 27})(window, document, 'script', 'dataLayer', '
27GTM-K94NTL7
vendor: 4 bytes, line 27
27');
28/* End google tag manager */ 29 30(function (d, s, id) { 31 var js, fjs = d.getElementsByTagName(s)[0]; 32 if (d.getElementById(id)) { 33 return; 34 } 35 js = d.createElement(s); 36 js.id = id; 37 js.src = "https://connect.facebook.net/en_US/sdk.js"; 38 fjs.parentNode.insertBefore(js, fjs); 39}(document, 'script', 'facebook-jssdk')); 40 41var pathArray = window.location.pathname.split('/'); 42var base_url = window.location.origin + '/' + pathArray[1] + '/'; 43 44$(function () { 45 $.widget("custom.catcomplete", $.ui.autocomplete, { 46 _create: function () { 47 this._super(); 48 this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); 49 }, 50 _renderMenu: function (ul, items) { 51 var that = this, 52 currentCategory = ""; 53 $.each(items, function (index, item) { 54 var li; 55 if (item.category != currentCategory) { 56 ul.append("<li class='ui-autocomplete-category value_search' data-value='" + item.category + "'>" + item.category + "</li>"); 57 currentCategory = item.category; 58 } 59 li = that._renderItemData(ul, item); 60 if (item.category) { 61 li.attr("aria-label", item.category + " : " + item.label); 62 } 63 }); 64 } 65 }); 66 67 $("#serch_btn").click(function () { 68 var srh_src = $("#productTitle").val(); 69 var srh = encodeURIComponent(srh_src); 70 var type_cate = $("#srh_cate li.active a").data('source'); 71 window.location.href = base_url + 'product/product_search/0?str_search=' + srh + '&cate_id[]=' + type_cate; 72 }); 73 74 $('#productTitle').keypress(function (e) { 75 if (e.which == 13) { 76 var srh_src = $("#productTitle").val(); 77 var srh = encodeURIComponent(srh_src); 78 var type_cate = $("#srh_cate li.active a").data('source'); 79 window.location.href = base_url + 'product/product_search/0?str_search=' + srh + '&cate_id[]=' + type_cate; 80 return false; //<---- Add this line 81 } 82 }); 83 // 84 // $("#productTitle").catcomplete({ 85 // minLength: 1, 86 // source: function (request, response) { 87 // $.getJSON(base_url + "product/search_suggestion", request, function (data, status, xhr) { 88 // response(data); 89 // $(".ui-autocomplete-category").click(function () { 90 // var val = $(this).data('value'); 91 // window.location.href = base_url + 'product/product_search/0?str_search=' + val; 92 // }); 93 // }); 94 // }, 95 // select: function (event, ui) { 96 // window.location.href = base_url + 'product/product_search/0?str_search=' + ui.item.value; 97 // }, 98 // open: function () { 99 // $(this).removeClass("ui-corner-all").addClass("ui-corner-top"); 100 // }, 101 // close: function () { 102 // $(this).removeClass("ui-corner-top").addClass("ui-corner-all"); 103 // } 104 // }); 105 106 $(".clicksidebar").click(function () { 107 $.ajax({ 108 url: base_url + "widget/categories", 109 success: function (result) { 110 $(".categories").html(result); 111 $(".main_cat").click(function () { 112 var id = $(this).attr('id'); 113 var mn_id = $("#" + id + " .mn_arrow").attr('id'); 114 var s = $("#" + mn_id).attr('source'); 115 $(".mn_arrow i").removeClass('glyphicon-menu-down'); 116 $(".mn_arrow i").addClass('glyphicon-menu-right'); 117 if (s == 1) { 118 $(".mn_arrow i").removeClass('glyphicon-menu-down'); 119 $(".mn_arrow").attr('source', '0'); 120 } else { 121 $("#" + id + " .mn_arrow").attr('source', '1'); 122 $("#" + id + " .mn_arrow i").addClass('glyphicon-menu-down'); 123 } 124 var idsub = $("#" + id).data("first");
125 var count = $("#" + id).data("count"); 126 if (count == 1) { 127 $('#dv_' + idsub).trigger('click'); 128 } 129 }); 130 131 $("#menu_left").mouseover(function () { 132 var win = $(window).height(); 133 var head_h = $("#header").height(); 134 var h_show = win - head_h; 135 $("#menu_left").css({ height: h_show }); 136 }); 137 } 138 }); 139 }); 140 141 $('.multi-item-carousel').carousel({ 142 interval: 3000 143 }); 144 145 $('.multi-item-carousel .item').each(function () { 146 var next = $(this).next(); 147 if (!next.length) { 148 next = $(this).siblings(':first'); 149 } 150 next.children(':first-child').clone().appendTo($(this)); 151 if (next.next().length > 0) { 152 next.next().children(':first-child').clone().appendTo($(this)); 153 } else { 154 $(this).siblings(':first').children(':first-child').clone().appendTo($(this)); 155 } 156 }); 157 158 $(".clickbannerlink").click(function () { 159 var banner_id = $(this).attr("data-banner"); 160 var url = $(this).attr("data-url"); 161 $.ajax({ 162 type: "POST", 163 url: base_url + "count/count_page", 164 data: { banner_id: banner_id }, 165 success: function (data) { 166 167 } 168 }); 169 }); 170 171 $(".ct_add").click(function () { 172 var product_id = $(this).data('id'); 173 var name = $(this).data('name'); 174 $("#modal .modal-dialog").removeClass("modal-sm"); 175 $("#modal .modal-content").load(base_url + 'product/out_stock/' + product_id + '?name=' + encodeURI(name)); 176 $('#modal').modal(); 177 }); 178 179 $(".pm_click").click(function () { 180 var product_id = $(this).data('id'); 181 $("#modal .modal-content").load(base_url + 'product/product_pm_form/' + product_id); 182 $('#modal').modal(); 183 }); 184 185 186 187}); 188 189function openpanel(id, main, bg, url, banner_id) { 190 var widthcon = $(".container").width(); 191 var pos = $("#main_" + main).offset().top; 192 var dv_h = $("#menu_left").height(); 193 var dv_w = $("#menu_left").width() - 1; 194 var width_bg = widthcon - dv_w; 195 var dv_sce = $(".menu_sub").attr("source"); 196 var dv_bg = $("#dv_" + id).attr("bg"); 197 $("#ul_menu_left li").css("box-shadow", "none"); 198 $(".menu_sub").css('background-image', 'url(' + bg + ')'); 199 $(".menu_sub").css('backgroundPosition', 'top right'); 200 $(".menu_sub").css('background-repeat', 'no-repeat'); 201 /*$(".menu_sub").css('-webkit-filter', 'grayscale(70%)');*/ 202 if (id != dv_sce) { 203 $(".menu_sub").html(); 204 $("#menu_sub").css("height", "691px"); 205 $("#menu_sub").css("width", width_bg); 206 $("#menu_sub").css("left", dv_w); 207 $("#menu_sub").css("border-left", "3px solid " + dv_bg); 208 $(".menu_sub").attr("source", id); 209 $(".menu_sub").css("display", "block"); 210 $.ajax({ 211 url: base_url + "widget/sub_categories?id=" + main + "&dv_h=" + dv_h + "&cat_sub=" + id + "&pos=" + pos + "&urlimg=" + url, 212 success: function (result) { 213 $(".menu_sub").html(result); 214 $("#menu_sub .head2 a").css("color", dv_bg); 215 /*$(".banner_cate").click(function () { 216 $.ajax({ 217 type: "POST", 218 url: base_url + "count/count_banner_cate", 219 data: {banner_id: banner_id}, 220 success: function (data) { 221 } 222 }); 223 });*/ 224 } 225 }); 226 } else { 227 $(".menu_sub").html(''); 228 $(".menu_sub").css("display", "none"); 229 $(".menu_sub").attr("source", ''); 230 } 231} 232 233function close_sub() { 234 $(".menu_sub").html(''); 235 $(".menu_sub").css("display", "none"); 236} 237function signOut() { 238 var auth2 = gapi.auth2.getAuthInstance(); 239 auth2.signOut().then(function () { 240 }); 241} 242 243 244 245
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.