| Server IP : 104.21.84.107 / Your IP : 104.23.243.196 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/biblioteca/ |
Upload File : |
/*Bootstrap Carousel Touch Slider.
http://bootstrapthemes.co
Credits: Bootstrap, jQuery, TouchSwipe, Animate.css, FontAwesome
*/
( function ( $ ) {
"use strict";
$.fn.Images = function ( options ) {
var carousel = $( ".carousel" );
return this.each( function ( ) {
function doAnimations( elems ) {
//Cache the animationend event in a variable
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 );
} );
} );
}
//Variables on page load
var $firstAnimatingElems = carousel.find( '.item:first' ).find( "[data-animation ^= 'animacion']" );
//Initialize carousel
carousel.carousel( );
//Animate captions in first slide on page load
doAnimations( $firstAnimatingElems );
//Other slides to be animated on carousel slide event
carousel.on( 'slide.bs.carousel', function ( e ) {
var $animatingElems = $( e.relatedTarget ).find( "[data-animation ^= 'animacion']" );
doAnimations( $animatingElems );
} );
//swipe initial
$( ".carousel .carousel-inner" ).swipe( {
swipeLeft: function ( event, direction, distance, duration, fingerCount ) {
this.parent( ).carousel( 'next' );
},
swipeRight: function ( ) {
this.parent( ).carousel( 'prev' );
},
threshold: 0
} );
} );
};
} )( jQuery );