1jQuery(function($) { 2 3 // Header Slider 4 var owlMainSlider = $('.header-slider'); 5 owlMainSlider.owlCarousel({ 6 rtl:$("html").attr("dir") == 'rtl' ? true : false, 7 autoWidth:false, 8 items: 1, 9 loop: true, 10 dots: false, 11 nav: true, 12 navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'], 13 singleItem: true, 14 transitionStyle: "fade", 15 touchDrag: true, 16 mouseDrag: false, 17 autoplay: true, 18 autoplayTimeout: slider_settings.animationSpeed, 19 animateIn: slider_settings.animateIn, 20 animateOut: slider_settings.animateOut, 21 }); 22 // Header Slide items with animate.css 23 owlMainSlider.owlCarousel(); 24 owlMainSlider.on('translate.owl.carousel', function (event) { 25 var data_anim = $("[data-animation]"); 26 data_anim.each(function() { 27 var anim_name = $(this).data('animation'); 28 $(this).removeClass('animated ' + anim_name).css('opacity', '0'); 29 }); 30 }); 31 $("[data-delay]").each(function() { 32 var anim_del = $(this).data('delay'); 33 $(this).css('animation-delay', anim_del); 34 }); 35 $("[data-duration]").each(function() { 36 var anim_dur = $(this).data('duration'); 37 $(this).css('animation-duration', anim_dur); 38 }); 39 owlMainSlider.on('translated.owl.carousel', function() { 40 var data_anim = owlMainSlider.find('.owl-item.active').find("[data-animation]"); 41 data_anim.each(function() { 42 var anim_name = $(this).data('animation'); 43 $(this).addClass('animated ' + anim_name).css('opacity', '1'); 44 }); 45 }); 46 47});
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.