1//product image active 2$(document).on('click', ".product-images-vert li", function (e) { 3 $(this).addClass('active').siblings().removeClass('active'); 4}); 5//menu 6$(document).on('click', ".menu-overlay-toggle", function (e) { 7 e.preventDefault(); 8 $('.menu-overlay-toggle').toggleClass('toggled'); 9 $('body').toggleClass("open-nav"); 10 $('.menu-overlay').toggleClass("open"); 11}); 12if($('.slider-items').length){ 13 $(document).ready(function () { 14 var owl = $('.slider-items'); 15 $('.slider-nav-item').click(function () { 16 owl.trigger('to.owl.carousel', [$(this).index(), 300]); 17 }); 18 }); 19} 20$('.product-carousel').owlCarousel({ 21 nav: true, 22 dots: false, 23 margin: 20, 24 rtl: true, 25 lazyLoad: true, 26 responsiveClass: true, 27 responsive: { 28 0: { 29 items: 1, 30 }, 31 480: { 32 items: 2, 33 }, 34 768: { 35 items: 3, 36 }, 37 1200: { 38 items: 4, 39 } 40 } 41}); 42$(window).on('load', function(){ 43 if ($(window).width() > 768) { 44 var height = $('.base-height').height(); 45 $('.base-height-col').css('height', (height/2)-15) 46 } 47}); 48$('.mega-menu').on('show.bs.dropdown', function () { 49 var target = $(this); 50 var target_link = target.find('[data-toggle="dropdown"]'); 51 var position = target_link.position().left; 52 var width = Math.round(target_link.width() / 2) + 12; 53 var arrowPos = position + width; 54 $('.mega-menu-arrow').css('left', arrowPos); 55}) 56function showmenu(target) { 57 $('body').addClass('drop_toggled'); 58 if ($('.mega-menu-back').length){ 59 $('.mega-menu-back').addClass('show'); 60 }else { 61 $('body').append('<div class="mega-menu-back"></div>'); 62 $('.mega-menu-back').addClass('show'); 63 } 64 target.addClass("show"); 65 target.find(".dropdown-menu").addClass("show"); 66} 67function hidemenu(target) { 68 $('body').removeClass('drop_toggled'); 69 $('.mega-menu-back').removeClass('show'); 70 target.removeClass("show"); 71 target.find(".dropdown-menu").removeClass("show"); 72} 73function hidemenull() { 74 $('body').removeClass('drop_toggled'); 75 $('.mega-menu-back').removeClass('show'); 76 $('.mega-menu').removeClass("show"); 77 $(".dropdown-menu").removeClass("show"); 78}
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.