1$(function() { 2 $('.bigslider').each(function() { 3 if ($(this).children('.item').length > 1) { 4 $(this).owlCarousel({ 5 autoplay: true, 6 autoplayTimeout: 5000, 7 lazyLoad: true, 8 loop: true, 9 items: 1, 10 animateOut: 'fadeOut', 11 animateIn: 'fadeIn', 12 }); 13 var bigSlider = $(this).data('owlCarousel'); 14 15 $(this).closest('.oxSlider').find('.slideNext').on('click', function(e) { 16 e.preventDefault(); 17 bigSlider.next(); 18 }); 19 $(this).closest('.oxSlider').find('.slidePrev').on('click', function(e) { 20 e.preventDefault(); 21 bigSlider.prev(); 22 }); 23 } else { 24 $(this).siblings('.slideNav').remove(); 25 } 26 }); 27 28 $('.productSliderContent').each(function() { 29 $(this).owlCarousel({ 30 autoplay: false, 31 lazyLoad: true, 32 loop: true, 33 responsive: { 34 0: { items:1 }, 35 320: { items:2 }, 36 700: { items:3 }, 37 1024: { items:4 } 38 } 39 }); 40 var productSlider = $(this).data('owlCarousel'); 41 42 $(this).closest('.productSliderContainer').find('.productNext').on('click', function(e) { 43 e.preventDefault(); 44 productSlider.next(); 45 }); 46 $(this).closest('.productSliderContainer').find('.productBack').on('click', function(e) { 47 e.preventDefault(); 48 productSlider.prev(); 49 }); 50 }); 51});
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.