1jQuery(document).ready(function($) { 2 'use strict'; 3 4 var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) 5 var tooltipList = tooltipTriggerList.map(function(tooltipTriggerEl) { 6 return new bootstrap.Tooltip(tooltipTriggerEl) 7 }); 8 9 window.addEventListener('scroll', function() { 10 var fixedNavBar = $('#fixed-navbar'), 11 nav = $('.nav-sticky-top'), 12 btn = $('.btn-nav'); 13 if (window.scrollY > 50) { 14 fixedNavBar.addClass('sticky-top bg-white shadow slideInDown'); 15 nav.removeClass('nav-white'); 16 btn.removeClass('btn-white').addClass('btn-outline-primary'); 17 } else { 18 fixedNavBar.removeClass('bg-white shadow slideInDown'); 19 nav.addClass('nav-white'); 20 btn.addClass('btn-white').removeClass('btn-outline-primary'); 21 } 22 }); 23 24 /*============================= 25 [01. Carousel] 26 ===============================*/ 27 28 // carousel Show 1 item. 29 $('.carousel-slider-1-items').slick({ 30 dots: true, 31 infinite: true, 32 speed: 1000, 33 slidesToShow: 1, 34 slidesToScroll: 1, 35 prevArrow: "<button type='button' aria-label='Previous slide' class='slick-prev slick-arrow'><i class='bi bi-chevron-left'></i></button>", 36 nextArrow: "<button type='button' aria-label='Next slide' class='slick-next slick-arrow'><i class='bi bi-chevron-right'></i></button>", 37 responsive: [{ 38 breakpoint: 1024, 39 settings: { 40 slidesToShow: 1, 41 slidesToScroll: 1, 42 infinite: true, 43 // dots: true 44 } 45 }, 46 { 47 breakpoint: 600, 48 settings: { 49 slidesToShow: 1, 50 slidesToScroll: 1 51 } 52 }, 53 { 54 breakpoint: 480, 55 settings: { 56 slidesToShow: 1, 57 slidesToScroll: 1 58 } 59 } 60 // You can unslick at a given breakpoint now by adding: 61 // settings: "unslick" 62 // instead of a settings object 63 ] 64 }); 65 66 // carousel Show 2 item. 67 $('.carousel-slider-2-items').slick({ 68 dots: true, 69 infinite: true, 70 speed: 1000, 71 slidesToShow: 2, 72 slidesToScroll: 1, 73 prevArrow: "<button type='button' aria-label='Previous slide' class='slick-prev slick-arrow'><i class='bi bi-chevron-left'></i></button>", 74 nextArrow: "<button type='button' aria-label='Next slide' class='slick-next slick-arrow'><i class='bi bi-chevron-right'></i></button>", 75 responsive: [{ 76 breakpoint: 1024, 77 settings: { 78 slidesToShow: 2, 79 slidesToScroll: 1, 80 infinite: true, 81 // dots: true 82 } 83 }, 84 { 85 breakpoint: 600, 86 settings: { 87 slidesToShow: 1, 88 slidesToScroll: 1 89 } 90 }, 91 { 92 breakpoint: 480, 93 settings: { 94 slidesToShow: 1, 95 slidesToScroll: 1 96 } 97 } 98 // You can unslick at a given breakpoint now by adding: 99 // settings: "unslick" 100 // instead of a settings object 101 ] 102 }); 103 104 // carousel Show 3 item. 105 $('.carousel-slider-3-items').slick({ 106 dots: true, 107 infinite: true, 108 speed: 1000, 109 slidesToShow: 3, 110 slidesToScroll: 1, 111 prevArrow: "<button type='button' aria-label='Previous slide' class='slick-prev slick-arrow'><i class='bi bi-chevron-left'></i></button>", 112 nextArrow: "<button type='button' aria-label='Next slide' class='slick-next slick-arrow'><i class='bi bi-chevron-right'></i></button>", 113 responsive: [{ 114 breakpoint: 1025, 115 settings: { 116 slidesToShow: 2, 117 slidesToScroll: 1, 118 infinite: true, 119 // dots: true 120 } 121 }, 122 { 123 breakpoint: 600, 124 settings: { 125 slidesToShow: 1, 126 slidesToScroll: 1 127 } 128 }, 129 { 130 breakpoint: 480, 131 settings: { 132 slidesToShow: 1, 133 slidesToScroll: 1 134 } 135 } 136 // You can unslick at a given breakpoint now by adding: 137 // settings: "unslick" 138 // instead of a settings object 139 ] 140 }); 141 142 // carousel Show 4 item. 143 $('.carousel-slider-4-items').slick({ 144 dots: true, 145 infinite: true, 146 speed: 1000, 147 slidesToShow: 4, 148 slidesToScroll: 2, 149 prevArrow: "<button type='button' aria-label='Previous slide' class='slick-prev slick-arrow'><i class='bi bi-chevron-left'></i></button>", 150 nextArrow: "<button type='button' aria-label='Next slide' class='slick-next slick-arrow'><i class='bi bi-chevron-right'></i></button>", 151 responsive: [{ 152 breakpoint: 1024, 153 settings: { 154 slidesToShow: 3, 155 slidesToScroll: 1, 156 infinite: true, 157 // dots: true 158 } 159 }, 160 { 161 breakpoint: 600, 162 settings: { 163 slidesToShow: 1, 164 slidesToScroll: 1 165 } 166 }, 167 { 168 breakpoint: 480, 169 settings: { 170 slidesToShow: 1, 171 slidesToScroll: 1 172 } 173 } 174 // You can unslick at a given breakpoint now by adding: 175 // settings: "unslick" 176 // instead of a settings object 177 ] 178 }); 179 180 // carousel Show 5 item. 181 $('.carousel-slider-5-items').slick({ 182 dots: true, 183 infinite: true, 184 speed: 1000, 185 slidesToShow: 5, 186 slidesToScroll: 1, 187 prevArrow: "<button type='button' aria-label='Previous slide' class='slick-prev slick-arrow'><i class='bi bi-chevron-left'></i></button>", 188 nextArrow: "<button type='button' aria-label='Next slide' class='slick-next slick-arrow'><i class='bi bi-chevron-right'></i></button>", 189 responsive: [{ 190 breakpoint: 1024, 191 settings: { 192 slidesToShow: 4, 193 slidesToScroll: 3, 194 infinite: true, 195 // dots: true 196 } 197 }, 198 { 199 breakpoint: 600, 200 settings: { 201 slidesToShow: 2, 202 slidesToScroll: 1 203 } 204 }, 205 { 206 breakpoint: 480, 207 settings: { 208 slidesToShow: 2, 209 slidesToScroll: 1 210 } 211 } 212 ] 213 }); 214 215 // carousel Show 6 item. 216 $('.carousel-slider-6-items').slick({ 217 dots: true, 218 infinite: true, 219 speed: 1000, 220 slidesToShow: 6, 221 slidesToScroll: 1, 222 prevArrow: "<button type='button' aria-label='Previous slide' class='slick-prev slick-arrow'><i class='bi bi-chevron-left'></i></button>", 223 nextArrow: "<button type='button' aria-label='Next slide' class='slick-next slick-arrow'><i class='bi bi-chevron-right'></i></button>", 224 responsive: [{ 225 breakpoint: 1024, 226 settings: { 227 slidesToShow: 4, 228 slidesToScroll: 3, 229 infinite: true, 230 // dots: true 231 } 232 }, 233 { 234 breakpoint: 600, 235 settings: { 236 slidesToShow: 2, 237 slidesToScroll: 1 238 } 239 }, 240 { 241 breakpoint: 480, 242 settings: { 243 slidesToShow: 2, 244 slidesToScroll: 1 245 } 246 } 247 ] 248 }); 249 250 // Single Prod 251 // $('.carousel-slider-single').slick({ 252 // dots: true, 253 // infinite: true, 254 // speed: 1000, 255 // slidesToShow: 1, 256 // slidesToScroll: 1, 257 // prevArrow: "<button type='button' aria-label='Previous slide' class='slick-prev slick-arrow'><i class='bi bi-arrow-left'></i></button>", 258 // nextArrow: "<button type='button' aria-label='Next slide' class='slick-next slick-arrow'><i class='bi bi-arrow-right'></i></button>", 259 // fade: true, 260 // asNavFor: '.carousel-slider-nav' 261 // }); 262 263 // $('.carousel-slider-nav').slick({ 264 // slidesToShow: 4, 265 // slidesToScroll: 1, 266 // asNavFor: '.carousel-slider-single', 267 // infinite: true, 268 // speed: 1000, 269 // prevArrow: "<button type='button' aria-label='Previous slide' class='slick-prev slick-arrow'><i class='bi bi-arrow-left'></i></button>", 270 // nextArrow: "<button type='button' aria-label='Next slide' class='slick-next slick-arrow'><i class='bi bi-arrow-right'></i></button>", 271 // dots: true, 272 // centerMode: true, 273 // focusOnSelect: true 274 // }); 275 276 /*================================= 277 [02. Home Slider & Animations] 278 ===================================*/ 279 $('#home-slider-01').slick({ 280 autoplay: true, 281 autoplaySpeed: 10000, 282 dots: false, 283 fade: true, 284 prevArrow: "<button type='button' aria-label='Previous slide' class='slick-prev slick-arrow'><i class='bi bi-chevron-left'></i></button>", 285 nextArrow: "<button type='button' aria-label='Next slide' class='slick-next slick-arrow'><i class='bi bi-chevron-right'></i></button>", 286 }); 287 288 $('#home-slider-01').on('init', function(e, slick) { 289 var $firstAnimatingElements = $('div.slide:first-child').find('[data-animation]'); 290 doAnimations($firstAnimatingElements); 291 }); 292 293 $('#home-slider-01').on('beforeChange', function(e, slick, currentSlide, nextSlide) { 294 var $animatingElements = $('div.slide[data-slick-index="' + nextSlide + '"]').find('[data-animation]'); 295 doAnimations($animatingElements); 296 }); 297 298 function doAnimations(elements) { 299 var animationEndEvents = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; 300 elements.each(function() { 301 var $this = $(this); 302 var $animationDelay = $this.data('delay'); 303 var $animationType = 'animated ' + $this.data('animation'); 304 $this.css({ 305 'animation-delay': $animationDelay,
306 '-webkit-animation-delay': $animationDelay 307 }); 308 $this.addClass($animationType).one(animationEndEvents, function() { 309 $this.removeClass($animationType); 310 }); 311 }); 312 } 313 314 $('.single-product-carousel-vertical').slick({ 315 slidesToShow: 1, 316 arrows: false, 317 asNavFor: '.silder-vertical-nav', 318 // vertical: true, 319 autoplay: false, 320 // verticalSwiping: true, 321 // centerMode: false 322 }); 323 324 $('.silder-vertical-nav').slick({ 325 slidesToShow: 4, 326 asNavFor: '.single-product-carousel-vertical', 327 vertical: true, 328 focusOnSelect: true, 329 autoplay: false, 330 arrows: false, 331 verticalSwiping: true, 332 centerMode: true, 333 responsive: [{ 334 breakpoint: 1024, 335 settings: { 336 slidesToShow: 4, 337 slidesToScroll: 3, 338 infinite: true, 339 // dots: true 340 } 341 }, 342 { 343 breakpoint: 600, 344 settings: { 345 slidesToShow: 4, 346 slidesToScroll: 1 347 } 348 }, 349 { 350 breakpoint: 480, 351 settings: { 352 slidesToShow: 2, 353 slidesToScroll: 1 354 } 355 } 356 ] 357 }); 358 359 $('.single-product-carousel-horizontal').slick({ 360 slidesToShow: 1, 361 arrows: false, 362 asNavFor: '.silder-horizontal-nav', 363 autoplay: false 364 }); 365 366 $('.silder-horizontal-nav').slick({ 367 slidesToShow: 4, 368 asNavFor: '.single-product-carousel-horizontal', 369 focusOnSelect: true, 370 autoplay: false, 371 arrows: false, 372 centerMode: true 373 }); 374 375 /*============================= 376 [03. Header] 377 ===============================*/ 378 $(document).on('click', '.toggle-menu, .close-menu', function() { 379 $('.main-nav-d, .navbar-mobile').toggle(); 380 }); 381 382 $(document).on('click', '.btn-categories-toggle', function() { 383 $('.categories-dropdown').slideToggle(); 384 }); 385 386 /*============================= 387 [04. Cart] 388 ===============================*/ 389 $(document).on('click', '.btn-cart-offcanvas', function(e) { 390 e.preventDefault(); 391 392 $('.cart-offcanvas').addClass('show'); 393 $('.cart-ovelay').fadeIn(); 394 }); 395 396 $(document).on('click', '.close-cart-offcanvas, .cart-ovelay', function(e) { 397 e.preventDefault(); 398 399 $('.cart-offcanvas').removeClass('show'); 400 $('.cart-ovelay').fadeOut(); 401 }); 402 403 $(document).on('click', '.btn-mins', function() { 404 var input = $(this).parent().find('.form-control'), 405 oldVal = Number(input.val()); 406 407 if (input.val() > 1) { 408 input.val(oldVal - 1) 409 } 410 console.log(input.val()) 411 }); 412 413 $(document).on('click', '.btn-plus', function() { 414 var input = $(this).parent().find('.form-control'), 415 oldVal = Number(input.val()); 416 417 input.val(oldVal + 1) 418 419 console.log(input.val()) 420 }); 421 422 $(document).on('click', '.calc-shipping-btn', function(e) { 423 $('.calculate-shipping').toggle(); 424 e.preventDefault(); 425 }); 426 427 /*============================= 428 [05. Helper] 429 ===============================*/ 430 431 $(document).on('click', '.lc-btn-toggle', function(e) { 432 // e.preventDefault(); 433 var toggleDiv = $(this).data('lc-toggle'); 434 435 $(toggleDiv).slideToggle(); 436 }); 437 438 $(document).on('click', '.lc-btn-accordion', function(e) { 439 // e.preventDefault(); 440 var toggleDiv = $(this).data('accordion-content') 441 parent = $(this).data('lc-accordion-parent'); 442 443 $(parent).find('.lc-accordion-content').slideUp(); 444 $(toggleDiv).slideDown(); 445 }); 446 447 // setInterval(function() { 448 // $(".recent-purchase").toggleClass('show'); 449 // }, 450 // 10000 451 // ); 452 453 $(document).on('click', '.purchase-close', function() { 454 $(".recent-purchase").removeClass('show'); 455 }); 456 457 $(document).on('click', '.custom-order', function() { 458 var tabID = $(this).data('bs-target'); 459 460 $('[data-bs-target]').removeClass('active'); 461 $("[data-bs-target='" + tabID + "']").addClass('active'); 462 463 $('.tab-pane').removeClass('show active'); 464 $(tabID).addClass('active show'); 465 }); 466 467 $(document).on('change', '.password-checkbox', function() { 468 $('.change-password').toggleClass('hidden'); 469 }); 470 471 $(document).on('click', '.mobile-menu .nav-link', function(e) { 472 e.preventDefault(); 473 var btn = $(this); 474 475 btn.find('.arrow').toggleClass('rotate-90'); 476 btn.next('ul').slideToggle(); 477 }); 478 479 /*============================= 480 [06. Plugins] 481 ===============================*/ 482 483 var nonLinearStepSlider = document.getElementById('price-slider'); 484 485 if (nonLinearStepSlider) { 486 487 noUiSlider.create(nonLinearStepSlider, { 488 start: [0, 4000], 489 step: 1, 490 range: { 491 'min': [0], 492 // '10%': [500, 500], 493 // '50%': [4000, 1000], 494 'max': [10000] 495 } 496 }); 497 498 var nonLinearStepSliderValueElement = document.getElementById('slider-non-linear-step-value'); 499 500 nonLinearStepSlider.noUiSlider.on('update', function(values) { 501 nonLinearStepSliderValueElement.innerHTML = values.join(' - '); 502 }); 503 } 504 505 // $('.slider-zoom').zoom(); 506 507}); 508 509window.onload = function() { 510 //hide the preloader 511 var $j = jQuery.noConflict(); 512 var perloader = $j(".perloader-wrapper"); 513 if (perloader.length > 0) { 514 515 document.querySelector(".perloader-wrapper").style.display = "none"; 516 } 517}
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.