1( function( $ ) { 2 function adventureSliderInit (){ 3 $(".adventures-slider").slick({ 4 slidesToShow: 5, 5 dots: false, 6 arrows: true, 7 prevArrow: "<button type='button' class='slick-prev slick-arrow'><i class='fa fa-angle-left' aria-hidden='true'></i></button>", 8 nextArrow:"<button type='button' class='slick-next slick-arrow'><i class='fa fa-angle-right' aria-hidden='true'></i></button>", 9 responsive: [ 10 { 11 breakpoint: 1050, 12 settings: { 13 dots: false, 14 arrows: true, 15 slidesToShow: 4, 16 slidesToScroll: 1 17 } 18 }, 19 { 20 breakpoint: 767, 21 settings: { 22 dots: false, 23 arrows: true, 24 slidesToShow: 3, 25 slidesToScroll: 1 26 } 27 } 28 ] 29 }); 30 31 $('.season-filters a').click(function(e){ 32 e.preventDefault(); 33 $('.season-filters a').removeClass('active'); 34 $(this).addClass('active'); 35 var season = $(this).data('season'); 36 $('.adventures-slider').slick('slickUnfilter'); 37 $('.adventures-slider').slick('slickFilter', function(){ 38 if ($(this).data('season') == season) { 39 return true; 40 } else { 41 return false; 42 } 43 }); 44 }); 45 } 46 47 48 document.addEventListener("DOMContentLoaded", function() { 49 adventureSliderInit(); 50 $('.season-filters a:first').trigger('click'); 51 }); 52 53 /*var AdventuresWidgetInit = function( $scope, $ ) { 54 adventureSliderInit(); 55 $('.season-filters a:first').trigger('click'); 56 }; 57 58 $( window ).on( 'elementor/frontend/init', function() { 59 elementorFrontend.hooks.addAction( 'frontend/element_ready/adventures-widget.default', AdventuresWidgetInit ); 60 } );*/ 61 62} )( 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.