1(function($) 2{"use strict";$.AviaTextRotator=function(options,slider) 3{this.$win=$(window);this.$slider=$(slider);this.$inner=this.$slider.find('.av-rotator-text');this.$slides=this.$inner.find('.av-rotator-text-single');this.$current=this.$slides.eq(0);this.open=0;this.count=this.$slides.length;if($.avia_utilities.supported.transition===undefined) 4{$.avia_utilities.supported.transition=$.avia_utilities.supports('transition');} 5this.browserPrefix=$.avia_utilities.supported.transition;this.cssActive=this.browserPrefix!==false?true:false;this.property=this.browserPrefix+'transform',this._init(options);} 6$.AviaTextRotator.prototype={_init:function(options) 7{var _self=this;if(this.count<=1)return;_self.options=$.extend({},options,this.$slider.data());_self.$inner.addClass('av-rotation-active');_self._autoplay();if(_self.options.animation=="typewriter") 8{_self.$slider.addClass('av-caret av-blinking-caret');}},_autoplay:function() 9{var _self=this;_self.autoplay=setTimeout(function() 10{_self.open=_self.open===false?0:_self.open+1;if(_self.open>=_self.count)_self.open=0;if(_self.options.animation!="typewriter") 11{_self._move({},_self.open);_self._autoplay();} 12else 13{_self._typewriter();}},_self.options.interval*1000);},_typewriter:function(event) 14{var _self=this;_self.$current.css('background-color',_self.$current.css('color'));_self.$slider.removeClass('av-caret av-blinking-caret').addClass('av-marked-text');setTimeout(function() 15{_self.$slider.addClass('av-caret av-blinking-caret').removeClass('av-marked-text');_self.$current.data('av_typewriter_text',_self.$current.html());_self.$current.css('background-color','transparent');_self.$current.html("");},800);setTimeout(function() 16{_self.$slider.removeClass('av-blinking-caret');_self.$next=_self.$slides.eq(_self.open);var content=_self.$next.data('av_typewriter_text')||_self.$next.html();content=content.replace(/&/g,'&');_self.$current.css({display:'none'});_self.$next.css({display:'inline'});_self.$next.html("");var i=0;var speed=50;function typeWriter(){if(i<content.length){_self.$next[0].innerHTML+=content.charAt(i);i++;setTimeout(typeWriter,speed+Math.floor(Math.random()*100));} 17else 18{_self.$slider.addClass('av-caret av-blinking-caret');_self.$current=_self.$slides.eq(_self.open);_self._autoplay();}} 19typeWriter();},1500);},_move:function(event) 20{var _self=this,modifier=30*_self.options.animation,fade_out={opacity:0}
20,fade_start={display:'inline-block',opacity:0},fade_in={opacity:1};this.$next=_self.$slides.eq(this.open);if(this.cssActive) 21{fade_out[_self.property]="translate(0px,"+modifier+"px)";fade_start[_self.property]="translate(0px,"+(modifier*-1)+"px)";fade_in[_self.property]="translate(0px,0px)";} 22else 23{fade_out['top']=modifier;fade_start['top']=(modifier*-1);fade_in['top']=0;} 24_self.$current.avia_animate(fade_out,function() 25{_self.$current.css({display:'none'});_self.$next.css(fade_start).avia_animate(fade_in,function() 26{_self.$current=_self.$slides.eq(_self.open);});});}};$.fn.avia_textrotator=function(options) 27{return this.each(function() 28{var active=$.data(this,'AviaTextRotator');if(!active) 29{$.data(this,'AviaTextRotator',1);new $.AviaTextRotator(options,this);}});};}(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.