1 2 3(function ($) { 4 'use strict'; 5 6 7 8 // =============================================== 9 // OWL Carousel 10 // Source: http://www.owlcarousel.owlgraphic.com 11 // =============================================== 12 13 $(window).on('load', function() { // fixes Owl Carousel "autoWidth: true" issue (https://github.com/OwlCarousel2/OwlCarousel2/issues/1139). 14 15 $('.owl-carousel').each(function(){ 16 var $carousel = $(this); 17 $carousel.owlCarousel({ 18 19 items: $carousel.data("items"), 20 loop: $carousel.data("loop"), 21 margin: $carousel.data("margin"), 22 center: $carousel.data("center"), 23 startPosition: $carousel.data("start-position"), 24 animateIn: $carousel.data("animate-in"), 25 animateOut: $carousel.data("animate-out"), 26 autoWidth: $carousel.data("autowidth"), 27 autoHeight: $carousel.data("autoheight"), 28 autoplay: $carousel.data("autoplay"), 29 autoplayTimeout: $carousel.data("autoplay-timeout"), 30 autoplayHoverPause: $carousel.data("autoplay-hover-pause"), 31 autoplaySpeed: $carousel.data("autoplay-speed"), 32 nav: $carousel.data("nav"), 33 navText: ['', ''], 34 navSpeed: $carousel.data("nav-speed"), 35 dots: $carousel.data("dots"), 36 dotsSpeed: $carousel.data("dots-speed"), 37 mouseDrag: $carousel.data("mouse-drag"), 38 touchDrag: $carousel.data("touch-drag"), 39 dragEndSpeed: $carousel.data("drag-end-speed"), 40 lazyLoad: true, 41 video: false, 42 responsive: { 43 0: { 44 items: $carousel.data("mobile-portrait"), 45 center: false, 46 }, 47 480: { 48 items: $carousel.data("mobile-landscape"), 49 center: false, 50 }, 51 768: { 52 items: $carousel.data("tablet-portrait"), 53 center: false, 54 }, 55 992: { 56 items: $carousel.data("tablet-landscape"), 57 }, 58 1200: { 59 items: $carousel.data("items"), 60 } 61 } 62 63 }); 64 65 // Mousewheel plugin 66 var owl = $('.owl-mousewheel'); 67 owl.on('mousewheel', '.owl-stage', function (e) { 68 if (e.deltaY > 0) { 69 owl.trigger('prev.owl', [800]); 70 } else { 71 owl.trigger('next.owl', [800]); 72 } 73 e.preventDefault(); 74 }); 75 76 }); 77 78 }); 79 80 81 // CC item hover 82 $('.cc-item').on('mouseenter',function() { 83 $('.owl-carousel').addClass('cc-item-hovered'); 84 }); 85 $('.cc-item').on('mouseleave',function() { 86 $('.owl-carousel').removeClass('cc-item-hovered'); 87 }); 88 89 // If ".cc-caption" exist add class "cc-caption-on" to ".cc-item". 90 $('.cc-item').each(function() { 91 if ($(this).find('.cc-caption').length) { 92 $(this).addClass('cc-caption-on'); 93 } 94 }); 95 96})(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.