PageSourceSearch

https://www.aifs.de/hubfs/hub_generated/module_assets/1/6990399062…/module_Taras_Testimonial_Slider.min.js

js aifs.de collected 2026-09-26 01:39:34 UTC 2,222 bytes, 2 lines download raw bytes

1var module_69903990626=function(){var $,tarasTestimonial;$=jQuery,tarasTestimonial=function(){return{options:{quoteEl:".quote-box",autoplay:!0,speed:3e3},init:function(options,element){this.options=$.extend(this.options,options),this.elem=element,this.quoteBox=$(this.elem).find($(this.options.quoteEl)),this.no_of_quotes=this.quoteBox.length,this.current=0,this.max=this.no_of_quotes+1,this.autoChange=0,this.firstLoad()},firstLoad:function(){this.attachEvents(),this.addQuoteDots(),this.hideQuotes(),this.displayQuote(this.current),this.autoPlay()},autoPlay:function(){if("true"==this.options.autoplay){var t=this;t.autoChange=setInterval((function(){t.nextQuote()}),this.options.speed)}},stopAutoPlay:function(){clearInterval(this.autoChange)},nextQuote:function(){this.hideQuotes(),this.current+=1,this.current===this.no_of_quotes&&(this.current=0),this.displayQuote(this.current)},previousQuote:function(){this.hideQuotes(),this.current-=1,this.current<0&&(this.current=this.no_of_quotes-1),this.displayQuote(this.current)},hideQuotes:function(){this.quoteBox.hide()},displayQuote:function(n){this.quoteBox.eq(n).fadeIn("slow"),$(this.elem).find("ul.quote-dots li").removeClass("active"),$(this.elem).find("ul.quote-dots li[data-num="+n+"]").addClass("active")},addQuoteDots:function(){for(0===$(this.elem).find("ul.quote-dots").length&&$('<ul class="quote-dots"></ul>').appendTo($(this.elem)),i=0;i<this.no_of_quotes;i++)$(this.elem).find("ul.quote-dots").append("<li data-num="+i+"></li>")},attachEvents:function(){var self=this;$(self.elem).find("ul.quote-dots li").on("click",(function(){var current=$(this).data("num");self.hideQuotes(),self.stopAutoPlay(),self.displayQuote(current),self.autoPlay()})),$(self.elem).find(".previous").on("click",(function(){self.stopAutoPlay(),self.previousQuote(),self.autoPlay()})),$(self.elem).find(".next").on("click",(function(){self.stopAutoPlay(),self.nextQuote(),self.autoPlay()}))}}},$.fn.tarasTestimonial=function(options){return this.each((function(){(new tarasTestimonial).init(options,this)}))}}();
2//# sourceURL=https://19617859.fs1.hubspotusercontent-na1.net/hubfs/19617859/hub_generated/module_assets/1/69903990626/1746001781817/module_Taras_Testimonial_Slider.js

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.