PageSourceSearch

https://auroville.org.in/cache/1790235173/default/widgets/image_slideshow/content.mjs

js auroville.org.in collected 2026-09-24 10:04:24 UTC 1,447 bytes, 4 lines download raw bytes

1import 'jquery';function SlideShow(selector){var SlideShow=this;this.$container=$(selector);this.totalSlides=this.$container.find('> .slide-fade').length;this.currentSlide=1;this.slideTimeout=5000;this.$container.on('click','.slide-next',function(){SlideShow.moveNext()});this.$container.on('click','.slide-previous',function(){SlideShow.movePrevious()});this.$container.on('click','.slide-startstop',function(){SlideShow.startStop()});if(this.$container.hasClass('slideshow-autoplay')){this.timeoutId=setTimeout(function(){SlideShow.moveNext()},this.slideTimeout)}}
2SlideShow.prototype={showSlide:function(index){clearTimeout(this.timeoutId);this.$container.find('> .slide-fade:not(.hidden)').addClass('hidden');this.$container.find('> .slide-fade').eq(index-1).removeClass('hidden');if(this.$container.hasClass('slideshow-autoplay')){this.timeoutId=setTimeout(this.moveNext.bind(this),this.slideTimeout)}},moveNext:function(){if(this.currentSlide>=this.totalSlides){this.currentSlide=1}else{this.currentSlide++}
3this.showSlide(this.currentSlide)},movePrevious:function(){if(this.currentSlide<=1){this.currentSlide=this.totalSlides}else{this.currentSlide--}
4this.showSlide(this.currentSlide)},startStop:function(){this.$container.toggleClass('slideshow-autoplay');if(this.$container.hasClass('slideshow-autoplay')){this.timeoutId=setTimeout(this.moveNext.bind(this),this.slideTimeout)}else{clearTimeout(this.timeoutId)}}};export default SlideShow

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.