1(function ($) { 2 "use Strict"; 3 /*-------------------------- 4 1. Newsletter Popup 5 ---------------------------*/ 6 setTimeout(function () { 7 $('.popup_wrapper').css({ 8 "opacity": "1", 9 "visibility": "visible" 10 }); 11 $('.popup_off').on('click', function () { 12 $(".popup_wrapper").fadeOut(500); 13 }) 14 },700000); 15 16 /*---------------------------- 17 2. Mobile Menu Activation 18 -----------------------------*/ 19 jQuery('.mobile-menu nav').meanmenu({ 20 meanScreenWidth: "991", 21 }); 22 23 /*---------------------------- 24 3. Tooltip Activation 25 ------------------------------ */ 26 $('.pro-actions a,.quick_view').tooltip({ 27 animated: 'fade', 28 placement: 'top', 29 container: 'body' 30 }); 31 32 /*---------------------------- 33 4.1 Vertical-Menu Activation 34 -----------------------------*/ 35 $('.categorie-title,.mobile-categorei-menu').on('click', function () { 36 $('.vertical-menu-list,.mobile-categorei-menu-list').slideToggle(); 37 }); 38 39 /*------------------------------ 40 4.2 Category menu Activation 41 ------------------------------*/ 42 $('#cate-toggle li.has-sub>a,#cate-mobile-toggle li.has-sub>a,#shop-cate-toggle li.has-sub>a').on('click', function () { 43 $(this).removeAttr('href'); 44 var element = $(this).parent('li'); 45 if (element.hasClass('open')) { 46 element.removeClass('open'); 47 element.find('li').removeClass('open'); 48 element.find('ul').slideUp(); 49 } else { 50 element.addClass('open'); 51 element.children('ul').slideDown(); 52 element.siblings('li').children('ul').slideUp(); 53 element.siblings('li').removeClass('open'); 54 element.siblings('li').find('li').removeClass('open'); 55 element.siblings('li').find('ul').slideUp(); 56 } 57 }); 58 $('#cate-toggle>ul>li.has-sub>a').append('<span class="holder"></span>'); 59 60 /*---------------------------- 61 4.3 Checkout Page Activation 62 -----------------------------*/ 63 $('#showlogin').on('click', function () { 64 $('#checkout-login').slideToggle(); 65 }); 66 $('#showcoupon').on('click', function () { 67 $('#checkout_coupon').slideToggle(); 68 }); 69 $('#cbox').on('click', function () { 70 $('#cbox_info').slideToggle(); 71 }); 72 $('#ship-box').on('click', function () { 73 $('#ship-box-info').slideToggle(); 74 }); 75 76 /*---------------------------- 77 5. NivoSlider Activation 78 -----------------------------*/ 79 80// $('#slider').nivoSlider({ 81// effect: 'random', // Specify sets like: 'fold,fade,sliceDown' 82// slices: 15, // For slice animations 83// boxCols: 8, // For box animations 84// boxRows: 4, // For box animations 85// animSpeed: 500, // Slide transition speed 86// pauseTime: 4000, // How long each slide will show 87// startSlide: 0, // Set starting Slide (0 index) 88// directionNav: true, // Next & Prev navigation 89// controlNav: true, // 1,2,3... navigation 90// controlNavThumbs: false, // Use thumbnails for Control Nav 91// pauseOnHover: true, // Stop animation while hovering 92// manualAdvance: false, // Force manual transitions 93// prevText: 'Prev', // Prev directionNav text 94// nextText: 'Next', // Next directionNav text 95// randomStart: false, // Start on a random slide 96// beforeChange: function(){}, // Triggers before a slide transition 97// afterChange: function(){}, // Triggers after a slide transition 98// slideshowEnd: function(){}, // Triggers after all slides have been shown 99// lastSlide: function(){}, // Triggers when last slide is shown 100// afterLoad: function(){} // Triggers when slider has loaded 101// }); 102 /*---------------------------------------------------- 103 6. Hot Deal Product Activation 104 -----------------------------------------------------*/ 105 $('.hot-deal-active').owlCarousel({ 106 loop: false, 107 nav: true, 108 dots: false, 109 smartSpeed: 1500, 110 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 111 margin: 10, 112 responsive: { 113 0: { 114 items: 1, 115 autoplay: true, 116 smartSpeed: 500 117 }, 118 480: { 119 items: 2 120 }, 121 768: { 122 items: 2 123 }, 124 992: { 125 items: 3 126 }, 127 1200: { 128 items: 5 129 } 130 } 131 }) 132 $('.hot-deal-active3').owlCarousel({ 133 loop: false, 134 nav: true, 135 dots: false, 136 smartSpeed: 1500, 137 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 138 margin: 10, 139 responsive: { 140 0: { 141 items: 1, 142 autoplay: true, 143 smartSpeed: 500 144 }, 145 480: { 146 items: 1 147 }, 148 768: { 149 items: 1 150 }, 151 992: { 152 items: 1 153 }, 154 1200: { 155 items: 1 156 } 157 } 158 }) 159 160 /*---------------------------------------------------- 161 7. Brand Banner Activation 162 -----------------------------------------------------*/ 163 $('.brand-banner').owlCarousel({ 164 loop: true, 165 nav: true, 166 autoplay: true, 167 dots: false, 168 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 169 smartSpeed: 1200, 170 margin: 0, 171 responsive: { 172 0: { 173 items: 1, 174 autoplay: true, 175 smartSpeed: 500 176 }, 177 380: { 178 items: 2 179 }, 180 768: { 181 items: 3 182 }, 183 1000: { 184 items: 3 185 } 186 } 187 }) 188 $('.brand-banner-sidebar').owlCarousel({ 189 loop: true, 190 nav: false, 191 autoplay: true, 192 dots: false, 193 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 194 smartSpeed: 1200, 195 margin: 0, 196 responsive: { 197 0: { 198 items: 1, 199 autoplay: true, 200 smartSpeed: 500 201 }, 202 380: { 203 items: 2 204 }, 205 768: { 206 items: 2 207 }, 208 1000: { 209 items: 2 210 } 211 } 212 }) 213 214 /*---------------------------------------------------- 215 8. Electronics Product Activation 216 -----------------------------------------------------*/ 217 $('.electronics-pro-active') 218 .on('changed.owl.carousel initialized.owl.carousel', function (event) { 219 $(event.target) 220 .find('.owl-item').removeClass('last') 221 .eq(event.item.index + event.page.size - 1).addClass('last'); 222 }).owlCarousel({ 223 loop: false, 224 nav: true, 225 dots: false, 226 smartSpeed: 1000, 227 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 228 margin: 10, 229 responsive: { 230 0: { 231 items: 1, 232 autoplay: true, 233 smartSpeed: 500 234 }, 235 768: { 236 items: 2 237 }, 238 992: { 239 items: 3 240 }, 241 1200: { 242 items: 3 243 } 244 } 245 }) 246 247 $('.electronics-pro-active2') 248 .on('changed.owl.carousel initialized.owl.carousel', function (event) { 249 $(event.target) 250 .find('.owl-item').removeClass('last') 251 .eq(event.item.index + event.page.size - 1).addClass('last'); 252 }).owlCarousel({ 253 loop: false, 254 nav: true, 255 dots: false, 256 smartSpeed: 1000, 257 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 258 margin: 10, 259 responsive: { 260 0: { 261 items: 1, 262 autoplay: true, 263 smartSpeed: 500 264 }, 265 768: { 266 items: 2 267 }, 268 992: { 269 items: 2 270 }, 271 1200: { 272 items: 3 273 } 274 } 275 }) 276 277 /*---------------------------------------------------- 278 9. Best Seller Product Activation 279 -----------------------------------------------------*/ 280 $('.best-seller-pro-active').owlCarousel({ 281 loop: false, 282 nav: true, 283 dots: false, 284 smartSpeed: 1500, 285 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 286 margin: 10, 287 responsive: { 288 0: { 289 items: 1, 290 autoplay: true, 291 smartSpeed: 500 292 }, 293 450: { 294 items: 2 295 }, 296 768: { 297 items: 3 298 }, 299 992: { 300 items: 4 301 }, 302 1200: { 303 items: 5 304 } 305 } 306 }) 307 $('.trending-pro-active').owlCarousel({ 308 loop: false, 309 nav: false, 310 dots: true, 311 smartSpeed: 1500, 312 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 313 margin: 10, 314 responsive: { 315 0: { 316 items: 1, 317 autoplay: true, 318 smartSpeed: 500 319 }, 320 450: { 321 items: 2 322 }, 323 768: { 324 items: 3 325 }, 326 992: { 327 items: 4 328 }, 329 1200: { 330 items: 5 331 } 332 } 333 }) 334 335 /*---------------------------------------------------- 336 10. Like Product Activation 337 -----------------------------------------------------*/ 338 $('.like-pro-active').owlCarousel({ 339 loop: false, 340 nav: false, 341 dots: true, 342 smartSpeed: 1500, 343 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 344 margin: 10, 345 responsive: { 346 0: { 347 items: 1, 348 autoplay: true, 349 smartSpeed: 500 350 }, 351 450: { 352 items: 2 353 }, 354 768: { 355 items: 3 356 }, 357 992: { 358 items: 4 359 }, 360 1200: { 361 items: 5 362 } 363 } 364 }) 365 366 /*---------------------------------------------------- 367 11. Second Hot Deal Product Activation 368 -----------------------------------------------------*/ 369 $('.second-hot-deal-active').on('changed.owl.carousel initialized.owl.carousel', function (event) { 370 $(event.target) 371 .find('.owl-item').removeClass('last') 372 .eq(event.item.index + event.page.size - 1).addClass('last'); 373 }).owlCarousel({ 374 loop: false, 375 nav: true, 376 dots: false, 377 smartSpeed: 1500, 378 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 379 margin: 0, 380 responsive: { 381 0: { 382 items: 1, 383 autoplay: true, 384 smartSpeed: 500 385 }, 386 768: { 387 items: 1 388 }, 389 992: { 390 items: 2 391 }, 392 1200: { 393 items: 2 394 } 395 } 396 }) 397 398 /*---------------------------------------------------- 399 12. Side Product Activation 400 -----------------------------------------------------*/ 401 $('.side-product-active').owlCarousel({ 402 loop: false, 403 nav: false, 404 dots: false, 405 smartSpeed: 1500, 406 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 407 margin: 0, 408 responsive: { 409 0: { 410 items: 1, 411 autoplay: true, 412 smartSpeed: 500 413 }, 414 450: { 415 items: 1 416 }, 417 768: { 418 items: 1 419 }, 420 1200: { 421 items: 1 422 } 423 } 424 }) 425 426 /*---------------------------------------------------- 427 12. New Product Tow For Home-2 Activation 428 -----------------------------------------------------*/ 429 $('.latest-blog-active').owlCarousel({ 430 loop: false, 431 nav: false, 432 dots: true, 433 smartSpeed: 1500, 434 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 435 margin: 20, 436 responsive: { 437 0: { 438 items: 1, 439 autoplay: true, 440 smartSpeed: 500 441 }, 442 450: { 443 items: 1 444 }, 445 768: { 446 items: 1 447 }, 448 992: { 449 items: 2 450 }, 451 1200: { 452 items: 2 453 } 454 } 455 }) 456 457 /*-------------------------------------
458 13. Thumbnail Product activation 459 --------------------------------------*/ 460 $('.thumb-menu').owlCarousel({ 461 loop: false, 462 navText: ["<i class='lnr lnr-arrow-left'></i>", "<i class='lnr lnr-arrow-right'></i>"], 463 margin: 15, 464 smartSpeed: 1000, 465 nav: true, 466 dots: false, 467 responsive: { 468 0: { 469 items: 3, 470 autoplay: true, 471 smartSpeed: 500 472 }, 473 768: { 474 items: 3 475 }, 476 1000: { 477 items: 3 478 } 479 } 480 }) 481 $('.thumb-menu a').on('click', function () { 482 $('.thumb-menu a').removeClass('active'); 483 }) 484 485 /*---------------------------- 486 14. Countdown Js Activation 487 -----------------------------*/ 488 $('[data-countdown]').each(function () { 489 var $this = $(this), 490 finalDate = $(this).data('countdown'); 491 $this.countdown(finalDate, function (event) { 492 $this.html(event.strftime('<div class="count"><p>%D</p> <span>Days</span></div><div class="count"><p>%H</p> <span>Hours</span></div><div class="count"><p>%M</p> <span>Mins</span></div><div class="count"> <p>%S</p> <span>Secs</span></div>')); 493 }); 494 }); 495 496 /*---------------------------- 497 15. ScrollUp Activation 498 -----------------------------*/ 499 $.scrollUp({ 500 scrollName: 'scrollUp', // Element ID 501 topDistance: '550', // Distance from top before showing element (px) 502 topSpeed: 1000, // Speed back to top (ms) 503 animation: 'fade', // Fade, slide, none 504 scrollSpeed: 900, 505 animationInSpeed: 1000, // Animation in speed (ms) 506 animationOutSpeed: 1000, // Animation out speed (ms) 507 scrollText: '<i class="fa fa-angle-double-up" aria-hidden="true"></i>', // Text for element 508 activeOverlay: false // Set CSS color to display scrollUp active point, e.g '#00FFFF' 509 }); 510 511 /*---------------------------- 512 16. Sticky-Menu Activation 513 ------------------------------ */ 514 $(window).scroll(function () { 515 if ($(this).scrollTop() > 400) { 516 $('.header-sticky').addClass("sticky"); 517 } else { 518 $('.header-sticky').removeClass("sticky"); 519 } 520 }); 521 522 /*---------------------------- 523 17. Nice Select Activation 524 ------------------------------ */ 525 $('select').niceSelect(); 526 527 /*---------------------------- 528 18. Price Slider Activation 529 -----------------------------*/ 530 $("#slider-range").slider({ 531 range: true, 532 min: 0, 533 max: 100, 534 values: [0, 85], 535 slide: function( event, ui ) { 536 $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] ); 537 } 538 }); 539 $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) + 540 " - $" + $( "#slider-range" ).slider( "values", 1 ) ); 541 542 543 544 /*-------------------------- 545 banner colse Popup 546 ---------------------------*/ 547 $('.popup_off_banner').on('click', function () { 548 $(".popup_banner").fadeOut(500); 549 }) 550 551})(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.