1jQuery.noConflict(); 2 3jQuery(document).ready(function($){ 4 $('.header .open-search').click(function(e){ 5 e.preventDefault(); 6 $('.header .search-box').slideToggle(); 7 $('.header .open-search').toggleClass('open'); 8 return false; 9 }); 10 11 $('.slider__carousel').each(function(key, item){ 12 $(item).slick({ 13 infinite: true, 14 arrows: true, 15 dots: false, 16 fade: true, 17 speed: 1000, 18 adaptiveHeight: true, 19 autoplay: ( $(this).attr('data-autoplay') == 'true' ), 20 autoplaySpeed: 5000, 21 pauseOnHover: false, 22 pauseOnFocus: false, 23 nextArrow: $(this).find('.image-slider__controls__arrows__next'), 24 prevArrow: $(this).find('.image-slider__controls__arrows__prev'), 25 }); 26 }); 27 28 var sub_count = $(".submenu--cont").children().length; 29 if( sub_count > 5 || $.isResponsive() ){ 30 $('.submenu--cont').each(function(key, item){ 31 $(item).slick({ 32 infinite: false, 33 arrows: true, 34 dots: false, 35 slidesToShow: 1, 36 variableWidth: false, 37 mobileFirst: true, 38 responsive: [ 39 { 40 breakpoint: 600, 41 settings: { 42 slidesToShow: 3 43 } 44 }, 45 { 46 breakpoint: 800, 47 settings: { 48 slidesToShow: 4 49 } 50 }, 51 { 52 breakpoint: 1050, 53 settings: { 54 slidesToShow: 5, 55 variableWidth: true 56 } 57 }, 58 59 ] 60 }); 61 }); 62 } 63 64 // cards sliders 65 $('.cards__carousel').each(function(key, item){ 66 $(item).on('init reInit afterChange', (event, slick, currentSlide, nextSlide) => { 67 let i = currentSlide / slick.slickGetOption('slidesToScroll'); 68 let elem = $(this).parents('section.cards').find('.cards__controls__number'); 69 elem.html(`${elem.data('label')} ${i ? ++i:1} of ${slick.$dots[0].children.length}`); 70 }).slick({ 71 infinite: false, 72 arrows: true, 73 dots: true, 74 nextArrow: $(this).parents('section.cards').find('.cards__controls__arrows__next'), 75 prevArrow: $(this).parents('section.cards').find('.cards__controls__arrows__prev'), 76 slidesToShow: 3, 77 slidesToScroll: 3, 78 responsive: [ 79 { 80 breakpoint: 800, 81 settings: { 82 slidesToShow: 2, 83 slidesToScroll: 2 84 } 85 }, 86 { 87 breakpoint: 600, 88 settings: { 89 slidesToShow: 1, 90 slidesToScroll: 1 91 } 92 } 93 ] 94 }); 95 }); 96 97 $('#member_map').length && $.initMap('#member_map'); 98 $('.gpnf-dialog').on('dialogopen', () => $.isResponsive() || $.initScrollBar('.gpnf-dialog')); 99 $('.woocommerce a.showcoupon').length && $('.woocommerce a.showcoupon').on('click', () => $('.checkout_coupon').slideToggle(400)); 100});
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.