(function($){"use strict";$.fn.bsTouchSlider=function(options){var carousel=$(".carousel");return this.each(function(){function doAnimations(elems){var animEndEv='webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';elems.each(function(){var $this=$(this),$animationType=$this.data('animation');$this.addClass($animationType).one(animEndEv,function(){$this.removeClass($animationType);});});} var $firstAnimatingElems=carousel.find('.item:first').find("[data-animation ^= 'animated']");carousel.carousel();doAnimations($firstAnimatingElems);carousel.on('slide.bs.carousel',function(e){var $animatingElems=$(e.relatedTarget).find("[data-animation ^= 'animated']");doAnimations($animatingElems);});$(".carousel .carousel-inner").swipe({swipeLeft:function(event,direction,distance,duration,fingerCount){this.parent().carousel('next');},swipeRight:function(){this.parent().carousel('prev');},threshold:0});});};})(jQuery);