1jQuery(document).ready(function() { 2 "use strict"; 3 /* Menu */ 4 slideEffectAjax() 5 jQuery(".toggle").on("click", function() { 6 return jQuery(".submenu").is(":hidden") ? jQuery(".submenu").slideDown("fast") : jQuery(".submenu").slideUp("fast"), !1 7 }), jQuery(".topnav").accordion({ 8 accordion: !1, 9 speed: 300, 10 closedSign: "+", 11 openedSign: "-" 12 }), jQuery("#nav > li").hover(function() { 13 var e = jQuery(this).find(".level0-wrapper"); 14 e.hide(), e.css("left", "0"), e.stop(true, true).delay(150).fadeIn(300, "easeOutCubic") 15 }, function() { 16 jQuery(this).find(".level0-wrapper").stop(true, true).delay(300).fadeOut(300, "easeInCubic") 17 }); 18 jQuery("#nav li.level0.drop-menu").mouseover(function() { 19 return jQuery(window).width() >= 740 && jQuery(this).children("ul.level1").fadeIn(100), !1 20 }).mouseleave(function() { 21 return jQuery(window).width() >= 740 && jQuery(this).children("ul.level1").fadeOut(100), !1 22 }), jQuery("#nav li.level0.drop-menu li").mouseover(function() { 23 if (jQuery(window).width() >= 740) { 24 jQuery(this).children("ul").css({ 25 top: 0, 26 left: "165px" 27 }); 28 var e = jQuery(this).offset(); 29 e && jQuery(window).width() < e.left + 325 ? (jQuery(this).children("ul").removeClass("right-sub"), jQuery(this).children("ul").addClass("left-sub"), jQuery(this).children("ul").css({ 30 top: 0, 31 left: "-167px" 32 })) : (jQuery(this).children("ul").removeClass("left-sub"), jQuery(this).children("ul").addClass("right-sub")), jQuery(this).children("ul").fadeIn(100) 33 } 34 }).mouseleave(function() { 35 jQuery(window).width() >= 740 && jQuery(this).children("ul").fadeOut(100) 36 }), 37 38 /* Best Seller Slider */ 39 jQuery("#top-categories .slider-items").owlCarousel({ 40 items: 6, 41 itemsDesktop: [1024, 4], 42 itemsDesktopSmall: [900, 3], 43 itemsTablet: [600, 2], 44 itemsMobile: [320, 2], 45 navigation: !0, 46 navigationText: ['<a class="flex-prev"></a>', '<a class="flex-next"></a>'], 47 slideSpeed: 500, 48 pagination: !1 49 }), 50 /* Featured Product Slider */ 51 jQuery("#best-seller .slider-items").owlCarousel({ 52 items: 3, 53 itemsDesktop: [1024, 3], 54 itemsDesktopSmall: [900, 2], 55 itemsTablet: [600, 1], 56 itemsMobile: [320, 1], 57 navigation: !0, 58 navigationText: ['<a class="flex-prev"></a>', '<a class="flex-next"></a>'], 59 slideSpeed: 500, 60 pagination: !1 61 }), 62 63 jQuery("#brand-slider .slider-items").owlCarousel({ 64 autoplay : true, 65 items : 2, //10 items above 1000px browser width 66 itemsDesktop : [1199,2], //5 items between 1024px and 901px 67 itemsDesktopSmall : [900,2], // 3 items betweem 900px and 601px 68 itemsTablet: [600,2], //2 items between 600 and 0; 69 itemsMobile : [320,1], 70 navigation : true, 71 navigationText : ["<a class=\"flex-prev\"></a>","<a class=\"flex-next\"></a>"], 72 slideSpeed : 500, 73 pagination : false 74 }), 75 76 77 78 /* More Views Slider */ 79 jQuery("#more-views-slider .slider-items").owlCarousel({ 80 autoplay: !0, 81 items: 4, 82 itemsDesktop: [1024, 4], 83 itemsDesktopSmall: [900, 3], 84 itemsTablet: [600, 2], 85 itemsMobile: [320, 1], 86 navigation: !0, 87 navigationText: ['<a class="flex-prev"></a>', '<a class="flex-next"></a>'], 88 slideSpeed: 500, 89 pagination: !1 90 }), 91 /* Related Product Slider */ 92 jQuery("#related-slider .slider-items").owlCarousel({ 93 items: 5, 94 itemsDesktop: [1024, 4], 95 itemsDesktopSmall: [900, 3], 96 itemsTablet: [600, 2], 97 itemsMobile: [320, 1], 98 navigation: !0,
99 navigationText: ['<a class="flex-prev"></a>', '<a class="flex-next"></a>'], 100 slideSpeed: 500, 101 pagination: !1 102 }), 103 104 105 /* More Views Slider */ 106 jQuery("#more-views-slider .slider-items").owlCarousel({ 107 autoplay: !0, 108 items: 3, 109 itemsDesktop: [1024, 4], 110 itemsDesktopSmall: [900, 3], 111 itemsTablet: [600, 2], 112 itemsMobile: [320, 1], 113 navigation: !0, 114 navigationText: ['<a class="flex-prev"></a>', '<a class="flex-next"></a>'], 115 slideSpeed: 500, 116 pagination: !1 117 }), 118 /* Mobile Menu */ 119 120 jQuery("#mobile-menu").mobileMenu({ 121 MenuWidth: 250, 122 SlideSpeed: 300, 123 WindowsMaxWidth: 767, 124 PagePush: !0, 125 FromLeft: !0, 126 Overlay: !0, 127 CollapseMenu: !0, 128 ClassName: "mobile-menu" 129 }) 130 131 /* Top Offer slider */ 132 jQuery("#slideshow > p:gt(0)").hide(); 133 134 setInterval(function() { 135 jQuery('#slideshow > p:first') 136 .fadeOut(1000) 137 .next() 138 .fadeIn(1000) 139 .end() 140 .appendTo('#slideshow'); 141 }, 6000); 142 143 144 145 /* Sidebar Menu */ 146 jQuery("ul.accordion li.parent, ul.accordion li.parents, ul#magicat li.open").each(function() { 147 jQuery(this).append('<em class="open-close"> </em>') 148 }), jQuery("ul.accordion, ul#magicat").accordionNew(), jQuery("ul.accordion li.active, ul#magicat li.active").each(function() { 149 jQuery(this).children().next("div").css("display", "block") 150 }) 151 152 /* Cart */ 153 function deleteCartInCheckoutPage() { 154 return jQuery(".checkout-cart-index a.btn-remove2,.checkout-cart-index a.btn-remove").on("click", function(e) { 155 return e.preventDefault(), confirm(confirm_content) ? void 0 : !1 156 }), !1 157 } 158 jQuery(".subDropdown")[0] && jQuery(".subDropdown").on("click", function() { 159 jQuery(this).toggleClass("plus"), jQuery(this).toggleClass("minus"), jQuery(this).parent().find("ul").slideToggle() 160 }) 161 /* Top Cart */ 162 function slideEffectAjax() { 163 jQuery(".fl-cart-contain").mouseenter(function() { 164 jQuery(this).find(".fl-mini-cart-content").stop(true, true).slideDown() 165 }), jQuery(".fl-cart-contain").mouseleave(function() { 166 jQuery(this).find(".fl-mini-cart-content").stop(true, true).slideUp() 167 }) 168 } 169 170 function deleteCartInSidebar() { 171 return is_checkout_page > 0 ? !1 : void jQuery("#cart-sidebar a.btn-remove, #mini_cart_block a.btn-remove").each(function() {}) 172 } 173 174}) 175 176 177var isTouchDevice = "ontouchstart" in window || navigator.msMaxTouchPoints > 0; 178jQuery(window).on("load", function() { 179 isTouchDevice && jQuery("#nav a.level-top").on("click", function() { 180 if ($t = jQuery(this), $parent = $t.parent(), $parent.hasClass("parent")) { 181 if (!$t.hasClass("menu-ready")) return jQuery("#nav a.level-top").removeClass("menu-ready"), $t.addClass("menu-ready"), !1; 182 $t.removeClass("menu-ready") 183 } 184 }), jQuery().UItoTop() 185 }), 186 /* ToTop */ 187 188 function(e) { 189 jQuery.fn.UItoTop = function(t) { 190 var a = { 191 text: "", 192 min: 200, 193 inDelay: 600, 194 outDelay: 400, 195 containerID: "toTop", 196 containerHoverID: "toTopHover", 197 //scrollSpeed: 1200, 198 scrollSpeed: 800, 199 easingType: "linear" 200 }, 201 i = e.extend(a, t), 202 n = "#" + i.containerID, 203 s = "#" + i.containerHoverID; 204 jQuery("body #toTopWrapper").append('<a href="#" id="' + i.containerID + '">' + i.text + "</a>"), jQuery(n).hide().on("click", function() { 205 return jQuery("html, body").animate({ 206 scrollTop: 0 207 }, i.scrollSpeed, i.easingType), jQuery("#" + i.containerHoverID, this).stop().animate({ 208 opacity: 0 209 }, i.inDelay, i.easingType), !1 210 }).prepend('<span id="' + i.containerHoverID + '"></span>').hover(function() { 211 jQuery(s, this).stop().animate({ 212 opacity: 1 213 }, 600, "linear") 214 }, function() { 215 jQuery(s, this).stop().animate({ 216 opacity: 0 217 }, 700, "linear") 218 }), jQuery(window).scroll(function() { 219 var t = e(window).scrollTop(); 220 "undefined" == typeof document.body.style.maxHeight && jQuery(n).css({ 221 position: "absolute", 222 top: e(window).scrollTop() + e(window).height() - 50 223 }), t > i.min ? jQuery(n).slideDown(i.inDelay) : jQuery(n).slideUp(i.Outdelay) 224 }) 225 } 226 }(jQuery), 227 jQuery.extend(jQuery.easing, { 228 easeInCubic: function(e, t, a, i, n) { 229 return i * (t /= n) * t * t + a 230 }, 231 easeOutCubic: function(e, t, a, i, n) { 232 return i * ((t = t / n - 1) * t * t + 1) + a 233 } 234 }), 235 /* Accordian */ 236 jQuery.extend(jQuery.easing, { 237 easeInCubic: function(e, t, n, i, s) { 238 return i * (t /= s) * t * t + n 239 }, 240 easeOutCubic: function(e, t, n, i, s) { 241 return i * ((t = t / s - 1) * t * t + 1) + n 242 } 243 }), 244 function(e) { 245 e.fn.extend({ 246 accordion: function() { 247 return this.each(function() {}) 248 } 249 }) 250 }(jQuery), jQuery(function(e) { 251 e(".accordion").accordion(), e(".accordion").each(function() { 252 var t = e(this).find("li.active"); 253 t.each(function(n) { 254 e(this).children("ul").css("display", "block"), n == t.length - 1 && e(this).addClass("current") 255 }) 256 }) 257 }), 258 259 260 /* Responsive Nav */ 261 function(e) { 262 e.fn.extend({ 263 accordion: function(t) { 264 var n = { 265 accordion: "true", 266 speed: 300, 267 closedSign: "[+]", 268 openedSign: "[-]" 269 }, 270 i = e.extend(n, t), 271 s = e(this); 272 s.find("li").each(function() { 273 0 != e(this).find("ul").size() && (e(this).find("a:first").after("<em>" + i.closedSign + "</em>"), "#" == e(this).find("a:first").attr("href") && e(this).find("a:first").on("click", function() { 274 return !1 275 })) 276 }), s.find("li em").on("click", function() { 277 0 != e(this).parent().find("ul").size() && (i.accordion && (e(this).parent().find("ul").is(":visible") || (parents = e(this).parent().parents("ul"), visible = s.find("ul:visible"), visible.each(function(t) { 278 var n = !0; 279 parents.each(function(e) { 280 return parents[e] == visible[t] ? (n = !1, !1) : void 0 281 }), n && e(this).parent().find("ul") != visible[t] && e(visible[t]).slideUp(i.speed, function() { 282 e(this).parent("li").find("em:first").html(i.closedSign) 283 }) 284 }))), e(this).parent().find("ul:first").is(":visible") ? e(this).parent().find("ul:first").slideUp(i.speed, function() { 285 e(this).parent("li").find("em:first").delay(i.speed).html(i.closedSign) 286 }) : e(this).parent().find("ul:first").slideDown(i.speed, function() { 287 e(this).parent("li").find("em:first").delay(i.speed).html(i.openedSign) 288 })) 289 }) 290 } 291 }) 292 }(jQuery), 293 function(e) { 294 e.fn.extend({ 295 accordionNew: function() { 296 return this.each(function() { 297 function t(t, i) { 298 e(t).parent(l).siblings().removeClass(s).children(c).slideUp(r), e(t).siblings(c)[i || o]("show" == i ? r : !1, function() { 299 e(t).siblings(c).is(":visible") ? e(t).parents(l).not(n.parents()).addClass(s) : e(t).parent(l).removeClass(s), "show" == i && e(t).parents(l).not(n.parents()).addClass(s), e(t).parents().show() 300 }) 301 } 302 var n = e(this), 303 i = "accordiated", 304 s = "active", 305 o = "slideToggle", 306 c = "ul, div", 307 r = "fast", 308 l = "li"; 309 if (n.data(i)) return !1; 310 e.each(n.find("ul, li>div"), function() { 311 e(this).data(i, !0), e(this).hide() 312 }), e.each(n.find("em.open-close"), function() { 313 e(this).on("click", function() { 314 return void t(this, o) 315 }), e(this).bind("activate-node", function() { 316 n.find(c).not(e(this).parents()).not(e(this).siblings()).slideUp(r), t(this, "slideDown") 317 }) 318 }); 319 var a = location.hash ? n.find("a[href=" + location.hash + "]")[0] : n.find("li.current a")[0]; 320 a && t(a, !1) 321 }) 322 } 323 }), e(function() { 324 function t() { 325 var t = e('.navbar-collapse form[role="search"].active'); 326 t.find("input").val(""), t.removeClass("active") 327 } 328 e('header, .navbar-collapse form[role="search"] button[type="reset"]').on("click keyup", function(n) { 329 (27 == n.which && e('.navbar-collapse form[role="search"]').hasClass("active") || "reset" == e(n.currentTarget).attr("type")) && t() 330 }), e(document).on("click", '.navbar-collapse form[role="search"]:not(.active) button[type="submit"]', function(t) { 331 t.preventDefault(); 332 var n = e(this).closest("form"), 333 i = n.find("input"); 334 n.addClass("active"), i.focus() 335 }), e(document).on("click", '.navbar-collapse form[role="search"].active button[type="submit"]', function(n) { 336 n.preventDefault(); 337 var i = e(this).closest("form"), 338 s = i.find("input"); 339 e("#showSearchTerm").text(s.val()), t() 340 }) 341 }) 342 343 }(jQuery);
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.