1+function($){"use strict";function transitionEnd(){var el=document.createElement('bootstrap') 2var transEndEventNames={'WebkitTransition':'webkitTransitionEnd','MozTransition':'transitionend','OTransition':'oTransitionEnd otransitionend','transition':'transitionend'} 3for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}}} 4$.fn.emulateTransitionEnd=function(duration){var called=!1,$el=this 5$(this).one($.support.transition.end,function(){called=!0}) 6var callback=function(){if(!called)$($el).trigger($.support.transition.end)} 7setTimeout(callback,duration) 8return this} 9$(function(){$.support.transition=transitionEnd()})}(window.jQuery);+function($){"use strict";var Carousel=function(element,options){this.$element=$(element) 10this.$indicators=this.$element.find('.carousel-indicators') 11this.options=options 12this.paused=this.sliding=this.interval=this.$active=this.$items=null 13this.options.pause=='hover'&&this.$element.on('mouseenter',$.proxy(this.pause,this)).on('mouseleave',$.proxy(this.cycle,this))} 14Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:!0} 15Carousel.prototype.cycle=function(e){e||(this.paused=!1) 16this.interval&&clearInterval(this.interval) 17this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval)) 18return this} 19Carousel.prototype.getActiveIndex=function(){this.$active=this.$element.find('.item.active') 20this.$items=this.$active.parent().children() 21return this.$items.index(this.$active)} 22Carousel.prototype.to=function(pos){var that=this 23var activeIndex=this.getActiveIndex() 24if(pos>(this.$items.length-1)||pos<0)return 25if(this.sliding)return this.$element.one('slid',function(){that.to(pos)}) 26if(activeIndex==pos)return this.pause().cycle() 27return this.slide(pos>activeIndex?'next':'prev',$(this.$items[pos]))} 28Carousel.prototype.pause=function(e){e||(this.paused=!0) 29this.cycle(!0) 30this.interval=clearInterval(this.interval) 31return this} 32Carousel.prototype.next=function(){if(this.sliding)return 33return this.slide('next')} 34Carousel.prototype.prev=function(){if(this.sliding)return 35return this.slide('prev')} 36Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active') 37var $next=next||$active[type]() 38var isCycling=this.interval 39var direction=type=='next'?'left':'right' 40var fallback=type=='next'?'first':'last' 41var that=this 42if(!$next.length){if(!this.options.wrap)return 43$next=this.$element.find('.item')[fallback]()} 44this.sliding=!0 45isCycling&&this.pause() 46var e=$.Event('slide.bs.carousel',{relatedTarget:$next[0],direction:direction}) 47if($next.hasClass('active'))return 48if(this.$indicators.length){this.$indicators.find('.active').removeClass('active') 49this.$element.one('slid',function(){var $nextIndicator=$(that.$indicators.children()[that.getActiveIndex()]) 50$nextIndicator&&$nextIndicator.addClass('active')})} 51var $this=this.$element.hasClass('header_effect');if($.support.transition&&this.$element.hasClass('slide')){this.$element.trigger(e) 52if(e.isDefaultPrevented())return 53var timer;timer=setTimeout(function(){checkSliderForHeaderStyle($next,$this);$next.addClass(type) 54$next[0].offsetWidth 55$active.addClass(direction) 56$next.addClass(direction) 57$active.one($.support.transition.end,function(){$next.removeClass([type,direction].join(' ')).removeClass('inactive').addClass('active') 58$active.removeClass(['active',direction].join(' ')).addClass('inactive') 59that.sliding=!1 60setTimeout(function(){that.$element.trigger('slid')},0)}).emulateTransitionEnd(600) 61clearTimeout(timer)},1000)}else{this.$element.trigger(e) 62if(e.isDefaultPrevented())return 63$active.removeClass('active') 64$next.addClass('active') 65this.sliding=!1 66this.$element.trigger('slid')} 67isCycling&&this.cycle() 68return this} 69var old=$.fn.carousel 70$.fn.carousel=function(option){return this.each(function(){var $this=$(this) 71var data=$this.data('bs.carousel') 72var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option) 73var action=typeof option=='string'?option:options.slide 74if(!data)$this.data('bs.carousel',(data=new Carousel(this,options))) 75if(typeof option=='number')data.to(option) 76else if(action)data[action]() 77else if(options.interval)data.pause().cycle()})} 78$.fn.carousel.Constructor=Carousel 79$.fn.carousel.noConflict=function(){$.fn.carousel=old 80return this}
81$(document).on('click.bs.carousel.data-api','[data-slide], [data-slide-to]',function(e){var $this=$(this),href 82var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')) 83var options=$.extend({},$target.data(),$this.data()) 84var slideIndex=$this.attr('data-slide-to') 85if(slideIndex)options.interval=!1 86$target.carousel(options) 87if(slideIndex=$this.attr('data-slide-to')){$target.data('bs.carousel').to(slideIndex)} 88e.preventDefault()}) 89$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this) 90$carousel.carousel($carousel.data())})})}(window.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.