PageSourceSearch

https://corsicafestivals.com/dependencies/swiperRunner/swiperRunner.min.js

js corsicafestivals.com collected 2026-10-04 20:24:29 UTC 2,945 bytes, 11 lines download raw bytes

1/*!
2 * Swiper Runner
3 * Easy way to use Swiper.js
4 *
5 * @version 1.0.0
6 * @link https://github.com/AminulBD/swiperRunner
7 * @license MIT
8 *
9 * Copyright 2017, Aminul Islam
10 */
11!function(a){"use strict";var t=function(t){var n=this,e=function(a,t){var n=a.activeIndex,e=t.navPreviewItems,i=a.slides.not(".swiper-slide-duplicate").length;if(i<e||!a.prevButton||!a.nextButton)return!1;n===i+1?n=1:0===n&&(n=i);for(var s="",r="",o=-e;o<e+1;o++)0!==o&&(o<0?s+=n+o-1<0?'<span class="swiper-nav-preview'+o+'"><img src="'+a.slides[i+o+1].getAttribute("data-thumb")+'"></span>':'<span class="swiper-nav-preview'+o+'"><img src="'+a.slides[n+o].getAttribute("data-thumb")+'"></span>':r+=n+o-1>i?'<span class="swiper-nav-preview-'+o+'"><img src="'+a.slides[o].getAttribute("data-thumb")+'"></span>':'<span class="swiper-nav-preview-'+o+'"><img src="'+a.slides[n+o].getAttribute("data-thumb")+'"></span>');a.prevButton.html(s),a.nextButton.html(r)},i=function(t){var n=a(t.slides[t.activeIndex]);a("[data-animate]",n).each(function(n){var e=a(this),i=e.data("animate"),s=e.data("delay"),r=e.data("duration"),o=(t.params.speed,2*Number("0."+n)),l=s||.2+o+"s";e.css({visibility:"visible","-webkit-animation-delay":l,"animation-delay":l,"-webkit-animation-duration":r,"animation-duration":r}).addClass(i+" animated").one("webkitAnimationEnd animationend",function(){e.removeClass(i+" animated")})})},s=function(t){t.container.find("[data-animate]").each(function(){var t=a(this),n=t.data("animate");t.removeClass(n+" animated"),t.css("visibility","hidden")})},r=function(t,r){var o=a(t),l=o.data("swiper-config"),p=a(".swiper-pagination",o),u=a(".swiper-button-prev",o),c=a(".swiper-button-next",o),d=a(".swiper-scrollbar",o),v=a(".swiper-play",o),m=a(".swiper-pause",o),g={nextButton:c.length?c:null,prevButton:u.length?u:null,scrollbar:d.length?d:null,navPreview:!1,navPreviewItems:3,animatedLayers:!0};if(a.extend(!0,g,l),p.length&&(g.pagination=p,"fraction"===g.paginationType)){var w=p.data("text")?p.data("text"):"/";g.paginationFractionRender=function(a,t,n){return'<span class="'+t+'"></span><span>'+w+'</span><span class="'+n+'"></span>'}}g.onInit=function(a){g.navPreview&&e(a,g),a.autoplaying&&(v.removeClass("active"),m.addClass("active"))},g.onSlideChangeStart=function(a){!1===a.autoplaying&&(v.addClass("active"),m.removeClass("active")),g.navPreview&&e(a,g),g.animatedLayers&&s(a)},g.onSlideChangeEnd=function(a){g.animatedLayers&&i(a)};var f=new Swiper(o,g);g.autoplay?m.addClass("active"):v.addClass("active"),v.on("click",function(a){f.params.autoplay=g.autoplay?g.autoplay:5e3,f.startAutoplay(),v.toggleClass("active"),m.toggleClass("active"),a.preventDefault()}),m.on("click",function(a){f.stopAutoplay(),v.toggleClass("active"),m.toggleClass("active"),a.preventDefault()}),r?n.nav=f:n.main=f};n.setNav=function(a){r(a,!0),n.main.params.control=n.nav,n.nav.params.control=n.main};return function(){r(t)}(),n};window.SwiperRunner=t}(jQuery);

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.