Test
$('.ghozylab-gallery img').each(function(i) { $alt = $(this).attr('alt'); // Replace default title to more fancy 🙂 $(this).attr('alt', $alt.replace(/-|_/g, ' ')); $altnew = $(this).attr('alt').toLowerCase().replace(/\b[a-z]/g, function(letter) { return letter.toUpperCase(); }); $(this).attr('alt', $altnew); // Compatibility with Zoom Lite Theme Image LazyLoad $(this).removeAttr('data-lazy-src'); }); $('#icppreloader-gallery-672c450fcf154').fadeOut(300, function() { $('#gallery-672c450fcf154').fadeIn(300); var slider672c450fcf154 = $('#gallery-672c450fcf154').bxSlider({ auto: true, pause: 3000, autoHover: true, moveSlides: 5, minSlides: 5, maxSlides: 5, slideWidth: 500, slideMargin: 10, startSlide: 0, infiniteLoop: true, captions: true, captionsMode: 'alt', adaptiveHeight: true, useCSS: false, pager: true, easing: 'easeOutBounce', speed: 2500, preloadImages: 'all', onSlideBefore: function() { $('#gallery-672c450fcf154 .bx-caption').slideUp(); }, onSlideAfter: function($slideElement, oldIndex, newIndex) { slider672c450fcf154.stopAuto(); slider672c450fcf154.startAuto(); $('#gallery-672c450fcf154 .bx-caption').slideDown(); } }); }); }); /* END --- Image Carousel --- */ // ]]>12/10/2018 Les ptits gris vs Villecresnes