Add swipe events to Bootstrap carousel on touch devices (requires jQuery Mobile).
function swipeCarousel() {
$('.carousel').swiperight(function() {
$(this).carousel('prev');
});
$('.carousel').swipeleft(function() {
$(this).carousel('next');
});
}