Файловый менеджер - Редактировать - /home/digitalm/www/zetaworks/wp-content/themes/uncode/library/js/lib/jquery.fullpage.min.js
Назад
(function(window,document,Math){function IScroll(el,options){this.wrapper=typeof el=="string"?document.querySelector(el):el,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!utils.hasPointer,disableTouch:utils.hasPointer||!utils.hasTouch,disableMouse:utils.hasPointer||utils.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|LABEL)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:typeof window.onmousedown=="undefined"};for(var i in options)this.options[i]=options[i];this.translateZ=this.options.HWCompositing&&utils.hasPerspective?" translateZ(0)":"",this.options.useTransition=utils.hasTransition&&this.options.useTransition,this.options.useTransform=utils.hasTransform&&this.options.useTransform,this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY=this.options.eventPassthrough=="vertical"?!1:this.options.scrollY,this.options.scrollX=this.options.eventPassthrough=="horizontal"?!1:this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing=typeof this.options.bounceEasing=="string"?utils.ease[this.options.bounceEasing]||utils.ease.circular:this.options.bounceEasing,this.options.resizePolling=this.options.resizePolling===undefined?60:this.options.resizePolling,this.options.tap===!0&&(this.options.tap="tap"),!this.options.useTransition&&!this.options.useTransform&&(/relative|absolute/i.test(this.scrollerStyle.position)||(this.scrollerStyle.position="relative")),this.options.shrinkScrollbars=="scale"&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function createDefaultScrollbar(direction,interactive,type){var scrollbar=document.createElement("div"),indicator=document.createElement("div");return type===!0&&(scrollbar.style.cssText="position:absolute;z-index:9999",indicator.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),indicator.className="iScrollIndicator",direction=="h"?(type===!0&&(scrollbar.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",indicator.style.height="100%"),scrollbar.className="iScrollHorizontalScrollbar"):(type===!0&&(scrollbar.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",indicator.style.width="100%"),scrollbar.className="iScrollVerticalScrollbar"),scrollbar.style.cssText+=";overflow:hidden",interactive||(scrollbar.style.pointerEvents="none"),scrollbar.appendChild(indicator),scrollbar}function Indicator(scroller,options){this.wrapper=typeof options.el=="string"?document.querySelector(options.el):options.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=scroller,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var i in options)this.options[i]=options[i];this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(utils.addEvent(this.indicator,"touchstart",this),utils.addEvent(window,"touchend",this)),this.options.disablePointer||(utils.addEvent(this.indicator,utils.prefixPointerEvent("pointerdown"),this),utils.addEvent(window,utils.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(utils.addEvent(this.indicator,"mousedown",this),utils.addEvent(window,"mouseup",this)));if(this.options.fade){this.wrapperStyle[utils.style.transform]=this.scroller.translateZ;var durationProp=utils.style.transitionDuration;if(!durationProp)return;this.wrapperStyle[durationProp]=utils.isBadAndroid?"0.0001ms":"0ms";var self=this;utils.isBadAndroid&&rAF(function(){self.wrapperStyle[durationProp]==="0.0001ms"&&(self.wrapperStyle[durationProp]="0s")}),this.wrapperStyle.opacity="0"}}var rAF=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1e3/60)},utils=function(){function _prefixStyle(style){return _vendor===!1?!1:_vendor===""?style:_vendor+style.charAt(0).toUpperCase()+style.substr(1)}var me={},_elementStyle=document.createElement("div").style,_vendor=function(){var vendors=["t","webkitT","MozT","msT","OT"],transform,i=0,l=vendors.length;for(;i<l;i++){transform=vendors[i]+"ransform";if(transform in _elementStyle)return vendors[i].substr(0,vendors[i].length-1)}return!1}();me.getTime=Date.now||function getTime(){return(new Date).getTime()},me.extend=function(target,obj){for(var i in obj)target[i]=obj[i]},me.addEvent=function(el,type,fn,capture){el.addEventListener(type,fn,!!capture)},me.removeEvent=function(el,type,fn,capture){el.removeEventListener(type,fn,!!capture)},me.prefixPointerEvent=function(pointerEvent){return window.MSPointerEvent?"MSPointer"+pointerEvent.charAt(7).toUpperCase()+pointerEvent.substr(8):pointerEvent},me.momentum=function(current,start,time,lowerMargin,wrapperSize,deceleration){var distance=current-start,speed=Math.abs(distance)/time,destination,duration;return deceleration=deceleration===undefined?6e-4:deceleration,destination=current+speed*speed/(2*deceleration)*(distance<0?-1:1),duration=speed/deceleration,destination<lowerMargin?(destination=wrapperSize?lowerMargin-wrapperSize/2.5*(speed/8):lowerMargin,distance=Math.abs(destination-current),duration=distance/speed):destination>0&&(destination=wrapperSize?wrapperSize/2.5*(speed/8):0,distance=Math.abs(current)+destination,duration=distance/speed),{destination:Math.round(destination),duration:duration}};var _transform=_prefixStyle("transform");return me.extend(me,{hasTransform:_transform!==!1,hasPerspective:_prefixStyle("perspective")in _elementStyle,hasTouch:"ontouchstart"in window,hasPointer:!!window.PointerEvent||!!window.MSPointerEvent,hasTransition:_prefixStyle("transition")in _elementStyle}),me.isBadAndroid=function(){var appVersion=window.navigator.appVersion;if(/Android/.test(appVersion)&&!/Chrome\/\d/.test(appVersion)){var safariVersion=appVersion.match(/Safari\/(\d+.\d)/);return safariVersion&&typeof safariVersion=="object"&&safariVersion.length>=2?parseFloat(safariVersion[1])<535.19:!0}return!1}(),me.extend(me.style={},{transform:_transform,transitionTimingFunction:_prefixStyle("transitionTimingFunction"),transitionDuration:_prefixStyle("transitionDuration"),transitionDelay:_prefixStyle("transitionDelay"),transformOrigin:_prefixStyle("transformOrigin")}),me.hasClass=function(e,c){var re=new RegExp("(^|\\s)"+c+"(\\s|$)");return re.test(e.className)},me.addClass=function(e,c){if(me.hasClass(e,c))return;var newclass=e.className.split(" ");newclass.push(c),e.className=newclass.join(" ")},me.removeClass=function(e,c){if(!me.hasClass(e,c))return;var re=new RegExp("(^|\\s)"+c+"(\\s|$)","g");e.className=e.className.replace(re," ")},me.offset=function(el){var left=-el.offsetLeft,top=-el.offsetTop;while(el=el.offsetParent)left-=el.offsetLeft,top-=el.offsetTop;return{left:left,top:top}},me.preventDefaultException=function(el,exceptions){for(var i in exceptions)if(exceptions[i].test(el[i]))return!0;return!1},me.extend(me.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),me.extend(me.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(k){return k*(2-k)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(k){return Math.sqrt(1- --k*k)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(k){var b=4;return(k-=1)*k*((b+1)*k+b)+1}},bounce:{style:"",fn:function(k){return(k/=1)<1/2.75?7.5625*k*k:k<2/2.75?7.5625*(k-=1.5/2.75)*k+.75:k<2.5/2.75?7.5625*(k-=2.25/2.75)*k+.9375:7.5625*(k-=2.625/2.75)*k+.984375}},elastic:{style:"",fn:function(k){var f=.22,e=.4;return k===0?0:k==1?1:e*Math.pow(2,-10*k)*Math.sin((k-f/4)*2*Math.PI/f)+1}}}),me.tap=function(e,eventName){var ev=document.createEvent("Event");ev.initEvent(eventName,!0,!0),ev.pageX=e.pageX,ev.pageY=e.pageY,e.target.dispatchEvent(ev)},me.click=function(e){var target=e.target,ev;/(SELECT|INPUT|TEXTAREA)/i.test(target.tagName)||(ev=document.createEvent(window.MouseEvent?"MouseEvents":"Event"),ev.initEvent("click",!0,!0),ev.view=e.view||window,ev.detail=1,ev.screenX=target.screenX||0,ev.screenY=target.screenY||0,ev.clientX=target.clientX||0,ev.clientY=target.clientY||0,ev.ctrlKey=!!e.ctrlKey,ev.altKey=!!e.altKey,ev.shiftKey=!!e.shiftKey,ev.metaKey=!!e.metaKey,ev.button=0,ev.relatedTarget=null,ev._constructed=!0,target.dispatchEvent(ev))},me}();IScroll.prototype={version:"5.2.0",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy")},_transitionEnd:function(e){if(e.target!=this.scroller||!this.isInTransition)return;this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd"))},_start:function(e){if(utils.eventType[e.type]!=1){var button;e.which?button=e.button:button=e.button<2?0:e.button==4?1:2;if(button!==0)return}if(!this.enabled||this.initiated&&utils.eventType[e.type]!==this.initiated)return;this.options.preventDefault&&!utils.isBadAndroid&&!utils.preventDefaultException(e.target,this.options.preventDefaultException)&&e.preventDefault();var point=e.touches?e.touches[0]:e,pos;this.initiated=utils.eventType[e.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=utils.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,pos=this.getComputedPosition(),this._translate(Math.round(pos.x),Math.round(pos.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=point.pageX,this.pointY=point.pageY,this._execEvent("beforeScrollStart")},_move:function(e){if(!this.enabled||utils.eventType[e.type]!==this.initiated)return;this.options.preventDefault&&e.preventDefault();var point=e.touches?e.touches[0]:e,deltaX=point.pageX-this.pointX,deltaY=point.pageY-this.pointY,timestamp=utils.getTime(),newX,newY,absDistX,absDistY;this.pointX=point.pageX,this.pointY=point.pageY,this.distX+=deltaX,this.distY+=deltaY,absDistX=Math.abs(this.distX),absDistY=Math.abs(this.distY);if(timestamp-this.endTime>300&&absDistX<10&&absDistY<10)return;!this.directionLocked&&!this.options.freeScroll&&(absDistX>absDistY+this.options.directionLockThreshold?this.directionLocked="h":absDistY>=absDistX+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n");if(this.directionLocked=="h"){if(this.options.eventPassthrough=="vertical")e.preventDefault();else if(this.options.eventPassthrough=="horizontal"){this.initiated=!1;return}deltaY=0}else if(this.directionLocked=="v"){if(this.options.eventPassthrough=="horizontal")e.preventDefault();else if(this.options.eventPassthrough=="vertical"){this.initiated=!1;return}deltaX=0}deltaX=this.hasHorizontalScroll?deltaX:0,deltaY=this.hasVerticalScroll?deltaY:0,newX=this.x+deltaX,newY=this.y+deltaY;if(newX>0||newX<this.maxScrollX)newX=this.options.bounce?this.x+deltaX/3:newX>0?0:this.maxScrollX;if(newY>0||newY<this.maxScrollY)newY=this.options.bounce?this.y+deltaY/3:newY>0?0:this.maxScrollY;this.directionX=deltaX>0?-1:deltaX<0?1:0,this.directionY=deltaY>0?-1:deltaY<0?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(newX,newY),timestamp-this.startTime>300&&(this.startTime=timestamp,this.startX=this.x,this.startY=this.y)},_end:function(e){if(!this.enabled||utils.eventType[e.type]!==this.initiated)return;this.options.preventDefault&&!utils.preventDefaultException(e.target,this.options.preventDefaultException)&&e.preventDefault();var point=e.changedTouches?e.changedTouches[0]:e,momentumX,momentumY,duration=utils.getTime()-this.startTime,newX=Math.round(this.x),newY=Math.round(this.y),distanceX=Math.abs(newX-this.startX),distanceY=Math.abs(newY-this.startY),time=0,easing="";this.isInTransition=0,this.initiated=0,this.endTime=utils.getTime();if(this.resetPosition(this.options.bounceTime))return;this.scrollTo(newX,newY);if(!this.moved){this.options.tap&&utils.tap(e,this.options.tap),this.options.click&&utils.click(e),this._execEvent("scrollCancel");return}if(this._events.flick&&duration<200&&distanceX<100&&distanceY<100){this._execEvent("flick");return}this.options.momentum&&duration<300&&(momentumX=this.hasHorizontalScroll?utils.momentum(this.x,this.startX,duration,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:newX,duration:0},momentumY=this.hasVerticalScroll?utils.momentum(this.y,this.startY,duration,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:newY,duration:0},newX=momentumX.destination,newY=momentumY.destination,time=Math.max(momentumX.duration,momentumY.duration),this.isInTransition=1);if(this.options.snap){var snap=this._nearestSnap(newX,newY);this.currentPage=snap,time=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(newX-snap.x),1e3),Math.min(Math.abs(newY-snap.y),1e3)),300),newX=snap.x,newY=snap.y,this.directionX=0,this.directionY=0,easing=this.options.bounceEasing}if(newX!=this.x||newY!=this.y){if(newX>0||newX<this.maxScrollX||newY>0||newY<this.maxScrollY)easing=utils.ease.quadratic;this.scrollTo(newX,newY,time,easing);return}this._execEvent("scrollEnd")},_resize:function(){var that=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){that.refresh()},this.options.resizePolling)},resetPosition:function(time){var x=this.x,y=this.y;return time=time||0,!this.hasHorizontalScroll||this.x>0?x=0:this.x<this.maxScrollX&&(x=this.maxScrollX),!this.hasVerticalScroll||this.y>0?y=0:this.y<this.maxScrollY&&(y=this.maxScrollY),x==this.x&&y==this.y?!1:(this.scrollTo(x,y,time,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){var rf=this.wrapper.offsetHeight;this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight,this.scrollerWidth=this.scroller.offsetWidth,this.scrollerHeight=this.scroller.offsetHeight,this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=utils.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(type,fn){this._events[type]||(this._events[type]=[]),this._events[type].push(fn)},off:function(type,fn){if(!this._events[type])return;var index=this._events[type].indexOf(fn);index>-1&&this._events[type].splice(index,1)},_execEvent:function(type){if(!this._events[type])return;var i=0,l=this._events[type].length;if(!l)return;for(;i<l;i++)this._events[type][i].apply(this,[].slice.call(arguments,1))},scrollBy:function(x,y,time,easing){x=this.x+x,y=this.y+y,time=time||0,this.scrollTo(x,y,time,easing)},scrollTo:function(x,y,time,easing){easing=easing||utils.ease.circular,this.isInTransition=this.options.useTransition&&time>0;var transitionType=this.options.useTransition&&easing.style;!time||transitionType?(transitionType&&(this._transitionTimingFunction(easing.style),this._transitionTime(time)),this._translate(x,y)):this._animate(x,y,time,easing.fn)},scrollToElement:function(el,time,offsetX,offsetY,easing){el=el.nodeType?el:this.scroller.querySelector(el);if(!el)return;var pos=utils.offset(el);pos.left-=this.wrapperOffset.left,pos.top-=this.wrapperOffset.top,offsetX===!0&&(offsetX=Math.round(el.offsetWidth/2-this.wrapper.offsetWidth/2)),offsetY===!0&&(offsetY=Math.round(el.offsetHeight/2-this.wrapper.offsetHeight/2)),pos.left-=offsetX||0,pos.top-=offsetY||0,pos.left=pos.left>0?0:pos.left<this.maxScrollX?this.maxScrollX:pos.left,pos.top=pos.top>0?0:pos.top<this.maxScrollY?this.maxScrollY:pos.top,time=time===undefined||time===null||time==="auto"?Math.max(Math.abs(this.x-pos.left),Math.abs(this.y-pos.top)):time,this.scrollTo(pos.left,pos.top,time,easing)},_transitionTime:function(time){if(!this.options.useTransition)return;time=time||0;var durationProp=utils.style.transitionDuration;if(!durationProp)return;this.scrollerStyle[durationProp]=time+"ms";if(!time&&utils.isBadAndroid){this.scrollerStyle[durationProp]="0.0001ms";var self=this;rAF(function(){self.scrollerStyle[durationProp]==="0.0001ms"&&(self.scrollerStyle[durationProp]="0s")})}if(this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].transitionTime(time)},_transitionTimingFunction:function(easing){this.scrollerStyle[utils.style.transitionTimingFunction]=easing;if(this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].transitionTimingFunction(easing)},_translate:function(x,y){if((" "+this.wrapper.className+" ").replace(/[\n\t]/g," ").indexOf(" no-scrolloverflow ")>-1)return!1;this.options.useTransform?this.scrollerStyle[utils.style.transform]="translate("+x+"px,"+y+"px)"+this.translateZ:(x=Math.round(x),y=Math.round(y),this.scrollerStyle.left=x+"px",this.scrollerStyle.top=y+"px"),this.x=x,this.y=y;if(this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].updatePosition();var uncodevent=new CustomEvent("fp-slide-scroll");window.dispatchEvent(uncodevent)},_initEvents:function(remove){var eventType=remove?utils.removeEvent:utils.addEvent,target=this.options.bindToWrapper?this.wrapper:window;eventType(window,"orientationchange",this),eventType(window,"resize",this),this.options.click&&eventType(this.wrapper,"click",this,!0),this.options.disableMouse||(eventType(this.wrapper,"mousedown",this),eventType(target,"mousemove",this),eventType(target,"mousecancel",this),eventType(target,"mouseup",this)),utils.hasPointer&&!this.options.disablePointer&&(eventType(this.wrapper,utils.prefixPointerEvent("pointerdown"),this),eventType(target,utils.prefixPointerEvent("pointermove"),this),eventType(target,utils.prefixPointerEvent("pointercancel"),this),eventType(target,utils.prefixPointerEvent("pointerup"),this)),utils.hasTouch&&!this.options.disableTouch&&(eventType(this.wrapper,"touchstart",this),eventType(target,"touchmove",this),eventType(target,"touchcancel",this),eventType(target,"touchend",this)),eventType(this.scroller,"transitionend",this),eventType(this.scroller,"webkitTransitionEnd",this),eventType(this.scroller,"oTransitionEnd",this),eventType(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var matrix=window.getComputedStyle(this.scroller,null),x,y;return this.options.useTransform?(matrix=matrix[utils.style.transform].split(")")[0].split(", "),x=+(matrix[12]||matrix[4]),y=+(matrix[13]||matrix[5])):(x=+matrix.left.replace(/[^-\d.]/g,""),y=+matrix.top.replace(/[^-\d.]/g,"")),{x:x,y:y}},_initIndicators:function(){function _indicatorsMap(fn){if(that.indicators)for(var i=that.indicators.length;i--;)fn.call(that.indicators[i])}var interactive=this.options.interactiveScrollbars,customStyle=typeof this.options.scrollbars!="string",indicators=[],indicator,that=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(indicator={el:createDefaultScrollbar("v",interactive,this.options.scrollbars),interactive:interactive,defaultScrollbars:!0,customStyle:customStyle,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(indicator.el),indicators.push(indicator)),this.options.scrollX&&(indicator={el:createDefaultScrollbar("h",interactive,this.options.scrollbars),interactive:interactive,defaultScrollbars:!0,customStyle:customStyle,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(indicator.el),indicators.push(indicator))),this.options.indicators&&(indicators=indicators.concat(this.options.indicators));for(var i=indicators.length;i--;)this.indicators.push(new Indicator(this,indicators[i]));this.options.fadeScrollbars&&(this.on("scrollEnd",function(){_indicatorsMap(function(){this.fade()})}),this.on("scrollCancel",function(){_indicatorsMap(function(){this.fade()})}),this.on("scrollStart",function(){_indicatorsMap(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){_indicatorsMap(function(){this.fade(1,!0)})})),this.on("refresh",function(){_indicatorsMap(function(){this.refresh()})}),this.on("destroy",function(){_indicatorsMap(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){utils.addEvent(this.wrapper,"wheel",this),utils.addEvent(this.wrapper,"mousewheel",this),utils.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,utils.removeEvent(this.wrapper,"wheel",this),utils.removeEvent(this.wrapper,"mousewheel",this),utils.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(e){if(!this.enabled)return;var wheelDeltaX,wheelDeltaY,newX,newY,that=this;this.wheelTimeout===undefined&&that._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){that.options.snap||that._execEvent("scrollEnd"),that.wheelTimeout=undefined},400);if("deltaX"in e)e.deltaMode===1?(wheelDeltaX=-e.deltaX*this.options.mouseWheelSpeed,wheelDeltaY=-e.deltaY*this.options.mouseWheelSpeed):(wheelDeltaX=-e.deltaX,wheelDeltaY=-e.deltaY);else if("wheelDeltaX"in e)wheelDeltaX=e.wheelDeltaX/120*this.options.mouseWheelSpeed,wheelDeltaY=e.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in e)wheelDeltaX=wheelDeltaY=e.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in e))return;wheelDeltaX=wheelDeltaY=-e.detail/3*this.options.mouseWheelSpeed}wheelDeltaX*=this.options.invertWheelDirection,wheelDeltaY*=this.options.invertWheelDirection,this.hasVerticalScroll||(wheelDeltaX=wheelDeltaY,wheelDeltaY=0);if(this.options.snap){newX=this.currentPage.pageX,newY=this.currentPage.pageY,wheelDeltaX>0?newX--:wheelDeltaX<0&&newX++,wheelDeltaY>0?newY--:wheelDeltaY<0&&newY++,this.goToPage(newX,newY);return}newX=this.x+Math.round(this.hasHorizontalScroll?wheelDeltaX:0),newY=this.y+Math.round(this.hasVerticalScroll?wheelDeltaY:0),this.directionX=wheelDeltaX>0?-1:wheelDeltaX<0?1:0,this.directionY=wheelDeltaY>0?-1:wheelDeltaY<0?1:0,newX>0?newX=0:newX<this.maxScrollX&&(newX=this.maxScrollX),newY>0?newY=0:newY<this.maxScrollY&&(newY=this.maxScrollY),this.scrollTo(newX,newY,0)},_initSnap:function(){this.currentPage={},typeof this.options.snap=="string"&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var i=0,l,m=0,n,cx,cy,x=0,y,stepX=this.options.snapStepX||this.wrapperWidth,stepY=this.options.snapStepY||this.wrapperHeight,el;this.pages=[];if(!this.wrapperWidth||!this.wrapperHeight||!this.scrollerWidth||!this.scrollerHeight)return;if(this.options.snap===!0){cx=Math.round(stepX/2),cy=Math.round(stepY/2);while(x>-this.scrollerWidth){this.pages[i]=[],l=0,y=0;while(y>-this.scrollerHeight)this.pages[i][l]={x:Math.max(x,this.maxScrollX),y:Math.max(y,this.maxScrollY),width:stepX,height:stepY,cx:x-cx,cy:y-cy},y-=stepY,l++;x-=stepX,i++}}else{el=this.options.snap,l=el.length,n=-1;for(;i<l;i++){if(i===0||el[i].offsetLeft<=el[i-1].offsetLeft)m=0,n++;this.pages[m]||(this.pages[m]=[]),x=Math.max(-el[i].offsetLeft,this.maxScrollX),y=Math.max(-el[i].offsetTop,this.maxScrollY),cx=x-Math.round(el[i].offsetWidth/2),cy=y-Math.round(el[i].offsetHeight/2),this.pages[m][n]={x:x,y:y,width:el[i].offsetWidth,height:el[i].offsetHeight,cx:cx,cy:cy},x>this.maxScrollX&&m++}}this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1===0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}),this.on("flick",function(){var time=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(this.x-this.startX),1e3),Math.min(Math.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,time)})},_nearestSnap:function(x,y){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0,l=this.pages.length,m=0;if(Math.abs(x-this.absStartX)<this.snapThresholdX&&Math.abs(y-this.absStartY)<this.snapThresholdY)return this.currentPage;x>0?x=0:x<this.maxScrollX&&(x=this.maxScrollX),y>0?y=0:y<this.maxScrollY&&(y=this.maxScrollY);for(;i<l;i++)if(x>=this.pages[i][0].cx){x=this.pages[i][0].x;break}l=this.pages[i].length;for(;m<l;m++)if(y>=this.pages[0][m].cy){y=this.pages[0][m].y;break}return i==this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),x=this.pages[i][0].x),m==this.currentPage.pageY&&(m+=this.directionY,m<0?m=0:m>=this.pages[0].length&&(m=this.pages[0].length-1),y=this.pages[0][m].y),{x:x,y:y,pageX:i,pageY:m}},goToPage:function(x,y,time,easing){easing=easing||this.options.bounceEasing,x>=this.pages.length?x=this.pages.length-1:x<0&&(x=0),y>=this.pages[x].length?y=this.pages[x].length-1:y<0&&(y=0);var posX=this.pages[x][y].x,posY=this.pages[x][y].y;time=time===undefined?this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(posX-this.x),1e3),Math.min(Math.abs(posY-this.y),1e3)),300):time,this.currentPage={x:posX,y:posY,pageX:x,pageY:y},this.scrollTo(posX,posY,time,easing)},next:function(time,easing){var x=this.currentPage.pageX,y=this.currentPage.pageY;x++,x>=this.pages.length&&this.hasVerticalScroll&&(x=0,y++),this.goToPage(x,y,time,easing)},prev:function(time,easing){var x=this.currentPage.pageX,y=this.currentPage.pageY;x--,x<0&&this.hasVerticalScroll&&(x=0,y--),this.goToPage(x,y,time,easing)},_initKeys:function(e){var keys={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40},i;if(typeof this.options.keyBindings=="object")for(i in this.options.keyBindings)typeof this.options.keyBindings[i]=="string"&&(this.options.keyBindings[i]=this.options.keyBindings[i].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(i in keys)this.options.keyBindings[i]=this.options.keyBindings[i]||keys[i];utils.addEvent(window,"keydown",this),this.on("destroy",function(){utils.removeEvent(window,"keydown",this)})},_key:function(e){if(!this.enabled)return;var snap=this.options.snap,newX=snap?this.currentPage.pageX:this.x,newY=snap?this.currentPage.pageY:this.y,now=utils.getTime(),prevTime=this.keyTime||0,acceleration=.25,pos;this.options.useTransition&&this.isInTransition&&(pos=this.getComputedPosition(),this._translate(Math.round(pos.x),Math.round(pos.y)),this.isInTransition=!1),this.keyAcceleration=now-prevTime<200?Math.min(this.keyAcceleration+acceleration,50):0;switch(e.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?newX+=snap?1:this.wrapperWidth:newY+=snap?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?newX-=snap?1:this.wrapperWidth:newY-=snap?1:this.wrapperHeight;break;case this.options.keyBindings.end:newX=snap?this.pages.length-1:this.maxScrollX,newY=snap?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:newX=0,newY=0;break;case this.options.keyBindings.left:newX+=snap?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:newY+=snap?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:newX-=snap?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:newY-=snap?1:5+this.keyAcceleration>>0;break;default:return}if(snap){this.goToPage(newX,newY);return}newX>0?(newX=0,this.keyAcceleration=0):newX<this.maxScrollX&&(newX=this.maxScrollX,this.keyAcceleration=0),newY>0?(newY=0,this.keyAcceleration=0):newY<this.maxScrollY&&(newY=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(newX,newY,0),this.keyTime=now},_animate:function(destX,destY,duration,easingFn){function step(){var now=utils.getTime(),newX,newY,easing;if(now>=destTime){that.isAnimating=!1,that._translate(destX,destY),that.resetPosition(that.options.bounceTime)||that._execEvent("scrollEnd");return}now=(now-startTime)/duration,easing=easingFn(now),newX=(destX-startX)*easing+startX,newY=(destY-startY)*easing+startY,that._translate(newX,newY),that.isAnimating&&rAF(step)}var that=this,startX=this.x,startY=this.y,startTime=utils.getTime(),destTime=startTime+duration;this.isAnimating=!0,step()},handleEvent:function(e){switch(e.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(e);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(e);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(e);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(e);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(e);break;case"keydown":this._key(e);break;case"click":this.enabled&&!e._constructed&&(e.preventDefault(),e.stopPropagation())}}},Indicator.prototype={handleEvent:function(e){switch(e.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(e);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(e);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(e)}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(utils.removeEvent(this.indicator,"touchstart",this),utils.removeEvent(this.indicator,utils.prefixPointerEvent("pointerdown"),this),utils.removeEvent(this.indicator,"mousedown",this),utils.removeEvent(window,"touchmove",this),utils.removeEvent(window,utils.prefixPointerEvent("pointermove"),this),utils.removeEvent(window,"mousemove",this),utils.removeEvent(window,"touchend",this),utils.removeEvent(window,utils.prefixPointerEvent("pointerup"),this),utils.removeEvent(window,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(e){var point=e.touches?e.touches[0]:e;e.preventDefault(),e.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=point.pageX,this.lastPointY=point.pageY,this.startTime=utils.getTime(),this.options.disableTouch||utils.addEvent(window,"touchmove",this),this.options.disablePointer||utils.addEvent(window,utils.prefixPointerEvent("pointermove"),this),this.options.disableMouse||utils.addEvent(window,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(e){var point=e.touches?e.touches[0]:e,deltaX,deltaY,newX,newY,timestamp=utils.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,deltaX=point.pageX-this.lastPointX,this.lastPointX=point.pageX,deltaY=point.pageY-this.lastPointY,this.lastPointY=point.pageY,newX=this.x+deltaX,newY=this.y+deltaY,this._pos(newX,newY),e.preventDefault(),e.stopPropagation()},_end:function(e){if(!this.initiated)return;this.initiated=!1,e.preventDefault(),e.stopPropagation(),utils.removeEvent(window,"touchmove",this),utils.removeEvent(window,utils.prefixPointerEvent("pointermove"),this),utils.removeEvent(window,"mousemove",this);if(this.scroller.options.snap){var snap=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),time=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-snap.x),1e3),Math.min(Math.abs(this.scroller.y-snap.y),1e3)),300);if(this.scroller.x!=snap.x||this.scroller.y!=snap.y)this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=snap,this.scroller.scrollTo(snap.x,snap.y,time,this.scroller.options.bounceEasing)}this.moved&&this.scroller._execEvent("scrollEnd")},transitionTime:function(time){time=time||0;var durationProp=utils.style.transitionDuration;if(!durationProp)return;this.indicatorStyle[durationProp]=time+"ms";if(!time&&utils.isBadAndroid){this.indicatorStyle[durationProp]="0.0001ms";var self=this;rAF(function(){self.indicatorStyle[durationProp]==="0.0001ms"&&(self.indicatorStyle[durationProp]="0s")})}},transitionTimingFunction:function(easing){this.indicatorStyle[utils.style.transitionTimingFunction]=easing},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(utils.addClass(this.wrapper,"iScrollBothScrollbars"),utils.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(utils.removeClass(this.wrapper,"iScrollBothScrollbars"),utils.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));var r=this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=Math.max(Math.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,this.options.shrink=="clip"?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=Math.max(Math.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.options.shrink=="clip"?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var x=this.options.listenX&&Math.round(this.sizeRatioX*this.scroller.x)||0,y=this.options.listenY&&Math.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(x<this.minBoundaryX?(this.options.shrink=="scale"&&(this.width=Math.max(this.indicatorWidth+x,8),this.indicatorStyle.width=this.width+"px"),x=this.minBoundaryX):x>this.maxBoundaryX?this.options.shrink=="scale"?(this.width=Math.max(this.indicatorWidth-(x-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",x=this.maxPosX+this.indicatorWidth-this.width):x=this.maxBoundaryX:this.options.shrink=="scale"&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),y<this.minBoundaryY?(this.options.shrink=="scale"&&(this.height=Math.max(this.indicatorHeight+y*3,8),this.indicatorStyle.height=this.height+"px"),y=this.minBoundaryY):y>this.maxBoundaryY?this.options.shrink=="scale"?(this.height=Math.max(this.indicatorHeight-(y-this.maxPosY)*3,8),this.indicatorStyle.height=this.height+"px",y=this.maxPosY+this.indicatorHeight-this.height):y=this.maxBoundaryY:this.options.shrink=="scale"&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=x,this.y=y,this.scroller.options.useTransform?this.indicatorStyle[utils.style.transform]="translate("+x+"px,"+y+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=x+"px",this.indicatorStyle.top=y+"px")},_pos:function(x,y){x<0?x=0:x>this.maxPosX&&(x=this.maxPosX),y<0?y=0:y>this.maxPosY&&(y=this.maxPosY),x=this.options.listenX?Math.round(x/this.sizeRatioX):this.scroller.x,y=this.options.listenY?Math.round(y/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(x,y)},fade:function(val,hold){if(hold&&!this.visible)return;clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var time=val?250:500,delay=val?0:300;val=val?"1":"0",this.wrapperStyle[utils.style.transitionDuration]=time+"ms",this.fadeTimeout=setTimeout(function(val){this.wrapperStyle.opacity=val,this.visible=+val}.bind(this,val),delay)}},IScroll.utils=utils,typeof module!="undefined"&&module.exports?module.exports=IScroll:typeof define=="function"&&define.amd?define(function(){return IScroll}):window.IScroll=IScroll})(window,document,Math),function(global,factory){"use strict";typeof define=="function"&&define.amd?define(["jquery"],function($){return factory($,global,global.document,global.Math)}):typeof exports=="object"&&exports?module.exports=factory(require("jquery"),global,global.document,global.Math):factory(jQuery,global,global.document,global.Math)}(typeof window!="undefined"?window:this,function($,window,document,Math,undefined){"use strict";var WRAPPER="fullpage-wrapper",WRAPPER_SEL="."+WRAPPER,SCROLLABLE="fp-scrollable",SCROLLABLE_SEL="."+SCROLLABLE,RESPONSIVE="fp-responsive",NO_TRANSITION="fp-notransition",DESTROYED="fp-destroyed",ENABLED="fp-enabled",VIEWING_PREFIX="fp-viewing",ACTIVE="active",ACTIVE_SEL="."+ACTIVE,COMPLETELY="fp-completely",COMPLETELY_SEL="."+COMPLETELY,SECTION_DEFAULT_SEL=".section",SECTION="fp-section",SECTION_SEL="."+SECTION,SECTION_ACTIVE_SEL=SECTION_SEL+ACTIVE_SEL,SECTION_FIRST_SEL=SECTION_SEL+":first",SECTION_LAST_SEL=SECTION_SEL+":last",TABLE_CELL="fp-tableCell",TABLE_CELL_SEL="."+TABLE_CELL,AUTO_HEIGHT="fp-auto-height",AUTO_HEIGHT_SEL=".fp-auto-height",NORMAL_SCROLL="fp-normal-scroll",NORMAL_SCROLL_SEL=".fp-normal-scroll",SECTION_NAV="fp-nav",SECTION_NAV_SEL="#"+SECTION_NAV,SECTION_NAV_TOOLTIP="fp-tooltip",SECTION_NAV_TOOLTIP_SEL="."+SECTION_NAV_TOOLTIP,SHOW_ACTIVE_TOOLTIP="fp-show-active",SLIDE_DEFAULT_SEL=".slide",SLIDE="fp-slide",SLIDE_SEL="."+SLIDE,SLIDE_ACTIVE_SEL=SLIDE_SEL+ACTIVE_SEL,SLIDES_WRAPPER="fp-slides",SLIDES_WRAPPER_SEL="."+SLIDES_WRAPPER,SLIDES_CONTAINER="fp-slidesContainer",SLIDES_CONTAINER_SEL="."+SLIDES_CONTAINER,TABLE="fp-table",SLIDES_NAV="fp-slidesNav",SLIDES_NAV_SEL="."+SLIDES_NAV,SLIDES_NAV_LINK_SEL=SLIDES_NAV_SEL+" a",SLIDES_ARROW="fp-controlArrow",SLIDES_ARROW_SEL="."+SLIDES_ARROW,SLIDES_PREV="fp-prev",SLIDES_PREV_SEL="."+SLIDES_PREV,SLIDES_ARROW_PREV=SLIDES_ARROW+" "+SLIDES_PREV,SLIDES_ARROW_PREV_SEL=SLIDES_ARROW_SEL+SLIDES_PREV_SEL,SLIDES_NEXT="fp-next",SLIDES_NEXT_SEL="."+SLIDES_NEXT,SLIDES_ARROW_NEXT=SLIDES_ARROW+" "+SLIDES_NEXT,SLIDES_ARROW_NEXT_SEL=SLIDES_ARROW_SEL+SLIDES_NEXT_SEL,$window=$(window),$document=$(document),iscrollOptions={scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0,bounce:!1};$.fn.fullpage=function(options){function setAutoScrolling(value,type){value||silentScroll(0),setVariableState("autoScrolling",value,type);var element=$(SECTION_ACTIVE_SEL);options.autoScrolling&&!options.scrollBar?($htmlBody.css({overflow:"hidden !important",height:"100%"}),container.css({"-ms-touch-action":"none","touch-action":"none"}),element.length&&silentScroll(element.position().top)):($htmlBody.css({overflow:"visible !important",height:"initial"}),container.css({"-ms-touch-action":"","touch-action":""}),element.length&&$htmlBody.scrollTop(element.position().top))}function setRecordHistory(value,type){setVariableState("recordHistory",value,type)}function setScrollingSpeed(value,type){setVariableState("scrollingSpeed",value,type)}function setFitToSection(value,type){setVariableState("fitToSection",value,type)}function setLockAnchors(value){options.lockAnchors=value}function setMouseWheelScrolling(value){value?(addMouseWheelHandler(),addMiddleWheelHandler()):(removeMouseWheelHandler(),removeMiddleWheelHandler())}function setAllowScrolling(value,directions){typeof directions!="undefined"?(directions=directions.replace(/ /g,"").split(","),$.each(directions,function(index,direction){setIsScrollAllowed(value,direction,"m")})):value?(setMouseWheelScrolling(!0),addTouchHandler()):(setMouseWheelScrolling(!1),removeTouchHandler())}function setKeyboardScrolling(value,directions){typeof directions!="undefined"?(directions=directions.replace(/ /g,"").split(","),$.each(directions,function(index,direction){setIsScrollAllowed(value,direction,"k")})):options.keyboardScrolling=value}function moveSectionUp(){var prev=$(SECTION_ACTIVE_SEL).prev(SECTION_SEL);!prev.length&&(options.loopTop||options.continuousVertical)&&(prev=$(SECTION_SEL).last()),prev.length&&scrollPage(prev,null,!0)}function moveSectionDown(){var next=$(SECTION_ACTIVE_SEL).next(SECTION_SEL);!next.length&&(options.loopBottom||options.continuousVertical)&&(next=$(SECTION_SEL).first()),next.length&&scrollPage(next,null,!1)}function silentMoveTo(sectionAnchor,slideAnchor){setScrollingSpeed(0,"internal"),moveTo(sectionAnchor,slideAnchor),setScrollingSpeed(originals.scrollingSpeed,"internal")}function moveTo(sectionAnchor,slideAnchor){var destiny=getSectionByAnchor(sectionAnchor);typeof slideAnchor!="undefined"?scrollPageAndSlide(sectionAnchor,slideAnchor):destiny.length>0&&scrollPage(destiny)}function moveSlideRight(section){moveSlide("right",section)}function moveSlideLeft(section){moveSlide("left",section)}function reBuild(resizing){if(container.hasClass(DESTROYED))return;isResizing=!0,windowsHeight=$window.height(),$(SECTION_SEL).each(function(){var slidesWrap=$(this).find(SLIDES_WRAPPER_SEL),slides=$(this).find(SLIDE_SEL);options.verticalCentered&&$(this).find(TABLE_CELL_SEL).css("height",getTableHeight($(this))+"px"),$(this).css("height",windowsHeight+"px"),options.scrollOverflow&&(slides.length?slides.each(function(){createScrollBar($(this))}):createScrollBar($(this))),slides.length>1&&landscapeScroll(slidesWrap,slidesWrap.find(SLIDE_ACTIVE_SEL))});var activeSection=$(SECTION_ACTIVE_SEL),sectionIndex=activeSection.index(SECTION_SEL);sectionIndex&&silentMoveTo(sectionIndex+1),isResizing=!1,$.isFunction(options.afterResize)&&resizing&&options.afterResize.call(container,getTableHeight()),$.isFunction(options.afterReBuild)&&!resizing&&options.afterReBuild.call(container)}function setResponsive(active){var isResponsive=$body.hasClass(RESPONSIVE);active?isResponsive||(setAutoScrolling(!1,"internal"),setFitToSection(!1,"internal"),$(SECTION_NAV_SEL).hide(),$body.addClass(RESPONSIVE),$.isFunction(options.afterResponsive)&&options.afterResponsive.call(container,active)):isResponsive&&(setAutoScrolling(originals.autoScrolling,"internal"),setFitToSection(originals.autoScrolling,"internal"),$(SECTION_NAV_SEL).show(),$body.removeClass(RESPONSIVE),$.isFunction(options.afterResponsive)&&options.afterResponsive.call(container,active))}function init(){options.css3&&(options.css3=support3d()),options.scrollBar=options.scrollBar||options.hybrid,setOptionsFromDOM(),prepareDom(),setAllowScrolling(!0),setAutoScrolling(options.autoScrolling,"internal"),responsive(),setBodyClass()}function bindEvents(){$window.on("hashchange",hashChangeHandler).blur(blurHandler).resize(resizeHandler),$document.keydown(keydownHandler).keyup(keyUpHandler).on("click touchstart",SECTION_NAV_SEL+" a",sectionBulletHandler).on("click touchstart",SLIDES_NAV_LINK_SEL,slideBulletHandler).on("click",SECTION_NAV_TOOLTIP_SEL,tooltipTextHandler),$(SECTION_SEL).on("click touchstart",SLIDES_ARROW_SEL,slideArrowHandler),options.normalScrollElements&&($document.on("mouseenter",options.normalScrollElements,function(){setMouseWheelScrolling(!1)}),$document.on("mouseleave",options.normalScrollElements,function(){setMouseWheelScrolling(!0)}))}function setOptionsFromDOM(){var sections=container.find(options.sectionSelector);options.anchors.length||(options.anchors=sections.filter("[data-anchor]").map(function(){return $(this).data("anchor").toString()}).get()),options.navigationTooltips.length||(options.navigationTooltips=sections.filter("[data-tooltip]").map(function(){return $(this).data("tooltip").toString()}).get())}function prepareDom(){container.css({height:"100%",position:"relative"}),container.addClass(WRAPPER),$("html").addClass(ENABLED),windowsHeight=$window.height(),container.removeClass(DESTROYED),addInternalSelectors(),$(SECTION_SEL).each(function(index){var section=$(this),slides=section.find(SLIDE_SEL),numSlides=slides.length;styleSection(section,index),styleMenu(section,index),numSlides>0?styleSlides(section,slides,numSlides):options.verticalCentered&&addTableClass(section)}),options.fixedElements&&options.css3&&$(options.fixedElements).appendTo($body),options.navigation&&addVerticalNavigation(),enableYoutubeAPI(),options.scrollOverflow?(document.readyState==="complete"&&createScrollBarHandler(),$window.on("load",createScrollBarHandler)):afterRenderActions()}function styleSlides(section,slides,numSlides){var sliderWidth=numSlides*100,slideWidth=100/numSlides;slides.wrapAll('<div class="'+SLIDES_CONTAINER+'" />'),slides.parent().wrap('<div class="'+SLIDES_WRAPPER+'" />'),section.find(SLIDES_CONTAINER_SEL).css("width",sliderWidth+"%"),numSlides>1&&(options.controlArrows&&createSlideArrows(section),options.slidesNavigation&&addSlidesNavigation(section,numSlides)),slides.each(function(index){$(this).css("width",slideWidth+"%"),options.verticalCentered&&addTableClass($(this))});var startingSlide=section.find(SLIDE_ACTIVE_SEL);startingSlide.length&&($(SECTION_ACTIVE_SEL).index(SECTION_SEL)!==0||$(SECTION_ACTIVE_SEL).index(SECTION_SEL)===0&&startingSlide.index()!==0)?silentLandscapeScroll(startingSlide,"internal"):slides.eq(0).addClass(ACTIVE)}function styleSection(section,index){!index&&$(SECTION_ACTIVE_SEL).length===0&§ion.addClass(ACTIVE),startingSection=$(SECTION_ACTIVE_SEL),section.css("height",windowsHeight+"px"),options.paddingTop&§ion.css("padding-top",options.paddingTop),options.paddingBottom&§ion.css("padding-bottom",options.paddingBottom),typeof options.sectionsColor[index]!="undefined"&§ion.css("background-color",options.sectionsColor[index]),typeof options.anchors[index]!="undefined"&§ion.attr("data-anchor",options.anchors[index])}function styleMenu(section,index){typeof options.anchors[index]!="undefined"&§ion.hasClass(ACTIVE)&&activateMenuAndNav(options.anchors[index],index),options.menu&&options.css3&&$(options.menu).closest(WRAPPER_SEL).length&&$(options.menu).appendTo($body)}function addInternalSelectors(){container.find(options.sectionSelector).addClass(SECTION),container.find(options.slideSelector).addClass(SLIDE)}function createSlideArrows(section){section.find(SLIDES_WRAPPER_SEL).after('<div class="'+SLIDES_ARROW_PREV+'"></div><div class="'+SLIDES_ARROW_NEXT+'"></div>'),options.controlArrowColor!="#fff"&&(section.find(SLIDES_ARROW_NEXT_SEL).css("border-color","transparent transparent transparent "+options.controlArrowColor),section.find(SLIDES_ARROW_PREV_SEL).css("border-color","transparent "+options.controlArrowColor+" transparent transparent")),options.loopHorizontal||section.find(SLIDES_ARROW_PREV_SEL).hide()}function addVerticalNavigation(){$body.append('<div id="'+SECTION_NAV+'"><ul></ul></div>');var nav=$(SECTION_NAV_SEL);nav.addClass(function(){return options.showActiveTooltip?SHOW_ACTIVE_TOOLTIP+" "+options.navigationPosition:options.navigationPosition});for(var i=0;i<$(SECTION_SEL).length;i++){var link="";options.anchors.length&&(link=options.anchors[i]);var li='<li><a href="#'+link+'"><span></span></a>',tooltip=options.navigationTooltips[i];typeof tooltip!="undefined"&&tooltip!==""&&(li+='<div class="'+SECTION_NAV_TOOLTIP+" "+options.navigationPosition+'">'+tooltip+"</div>"),li+="</li>",nav.find("ul").append(li)}$(SECTION_NAV_SEL).css("margin-top","-"+$(SECTION_NAV_SEL).height()/2+"px"),$(SECTION_NAV_SEL).find("li").eq($(SECTION_ACTIVE_SEL).index(SECTION_SEL)).find("a").addClass(ACTIVE)}function createScrollBarHandler(){$(SECTION_SEL).each(function(){var slides=$(this).find(SLIDE_SEL);slides.length?slides.each(function(){createScrollBar($(this))}):createScrollBar($(this))}),afterRenderActions()}function enableYoutubeAPI(){container.find('iframe[src*="youtube.com/embed/"]').each(function(){addURLParam($(this),"enablejsapi=1")})}function addURLParam(element,newParam){var originalSrc=element.attr("src");element.attr("src",originalSrc+getUrlParamSign(originalSrc)+newParam)}function getUrlParamSign(url){return/\?/.test(url)?"&":"?"}function afterRenderActions(){var section=$(SECTION_ACTIVE_SEL);section.addClass(COMPLETELY),options.scrollOverflowHandler.afterRender&&options.scrollOverflowHandler.afterRender(section),lazyLoad(section),playMedia(section),options.scrollOverflowHandler.afterLoad(),isDestinyTheStartingSection()&&$.isFunction(options.afterLoad)&&options.afterLoad.call(section,section.data("anchor"),section.index(SECTION_SEL)+1),$.isFunction(options.afterRender)&&options.afterRender.call(container,getTableHeight())}function isDestinyTheStartingSection(){var anchors=window.location.hash.replace("#","").split("/"),destinationSection=getSectionByAnchor(decodeURIComponent(anchors[0]));return!destinationSection.length||destinationSection.length&&destinationSection.index()===startingSection.index()}function scrollHandler(){var currentSection;if(!options.autoScrolling||options.scrollBar){var currentScroll=$window.scrollTop(),scrollDirection=getScrollDirection(currentScroll),visibleSectionIndex=0,screen_mid=currentScroll+$window.height()/2,isAtBottom=$body.height()-$window.height()===currentScroll,sections=document.querySelectorAll(SECTION_SEL);if(isAtBottom)visibleSectionIndex=sections.length-1;else if(!currentScroll)visibleSectionIndex=0;else for(var i=0;i<sections.length;++i){var section=sections[i];section.offsetTop<=screen_mid&&(visibleSectionIndex=i)}isCompletelyInViewPort(scrollDirection)&&($(SECTION_ACTIVE_SEL).hasClass(COMPLETELY)||$(SECTION_ACTIVE_SEL).addClass(COMPLETELY).siblings().removeClass(COMPLETELY)),currentSection=$(sections).eq(visibleSectionIndex);if(!currentSection.hasClass(ACTIVE)){isScrolling=!0;var leavingSection=$(SECTION_ACTIVE_SEL),leavingSectionIndex=leavingSection.index(SECTION_SEL)+1,yMovement=getYmovement(currentSection),anchorLink=currentSection.data("anchor"),sectionIndex=currentSection.index(SECTION_SEL)+1,activeSlide=currentSection.find(SLIDE_ACTIVE_SEL),slideIndex,slideAnchorLink;activeSlide.length&&(slideAnchorLink=activeSlide.data("anchor"),slideIndex=activeSlide.index()),canScroll&&(currentSection.addClass(ACTIVE).siblings().removeClass(ACTIVE),$.isFunction(options.onLeave)&&options.onLeave.call(leavingSection,leavingSectionIndex,sectionIndex,yMovement),$.isFunction(options.afterLoad)&&options.afterLoad.call(currentSection,anchorLink,sectionIndex),stopMedia(leavingSection),lazyLoad(currentSection),playMedia(currentSection),activateMenuAndNav(anchorLink,sectionIndex-1),options.anchors.length&&(lastScrolledDestiny=anchorLink),setState(slideIndex,slideAnchorLink,anchorLink,sectionIndex)),clearTimeout(scrollId),scrollId=setTimeout(function(){isScrolling=!1},100)}options.fitToSection&&(clearTimeout(scrollId2),scrollId2=setTimeout(function(){options.fitToSection&&fitToSection()},options.fitToSectionDelay))}}function fitToSection(){canScroll&&(isResizing=!0,scrollPage($(SECTION_ACTIVE_SEL)),isResizing=!1)}function isCompletelyInViewPort(movement){var top=$(SECTION_ACTIVE_SEL).position().top,bottom=top+$window.height();return movement=="up"?bottom>=$window.scrollTop()+$window.height():top<=$window.scrollTop()}function getScrollDirection(currentScroll){var direction=currentScroll>lastScroll?"down":"up";return lastScroll=currentScroll,previousDestTop=currentScroll,direction}function scrolling(type,scrollable){if(!isScrollAllowed.m[type])return;var check=type==="down"?"bottom":"top",scrollSection=type==="down"?moveSectionDown:moveSectionUp;if(scrollable.length>0){if(!options.scrollOverflowHandler.isScrolled(check,scrollable))return!0;scrollSection()}else scrollSection()}function preventBouncing(event){var e=event.originalEvent;!checkParentForNormalScrollElement(event.target)&&options.autoScrolling&&isReallyTouch(e)&&isScrollAllowed.m.up&&event.preventDefault()}function touchMoveHandler(event){var e=event.originalEvent,activeSection=$(e.target).closest(SECTION_SEL);if(!checkParentForNormalScrollElement(event.target)&&isReallyTouch(e)){options.autoScrolling&&event.preventDefault();var scrollable=options.scrollOverflowHandler.scrollable(activeSection),touchEvents=getEventsPage(e);touchEndY=touchEvents.y,touchEndX=touchEvents.x,activeSection.find(SLIDES_WRAPPER_SEL).length&&Math.abs(touchStartX-touchEndX)>Math.abs(touchStartY-touchEndY)?!slideMoving&&Math.abs(touchStartX-touchEndX)>$window.outerWidth()/100*options.touchSensitivity&&(touchStartX>touchEndX?isScrollAllowed.m.right&&moveSlideRight(activeSection):isScrollAllowed.m.left&&moveSlideLeft(activeSection)):options.autoScrolling&&canScroll&&Math.abs(touchStartY-touchEndY)>$window.height()/100*options.touchSensitivity&&(touchStartY>touchEndY?scrolling("down",scrollable):touchEndY>touchStartY&&scrolling("up",scrollable))}}function checkParentForNormalScrollElement(el,hop){hop=hop||0;var parent=$(el).parent();return hop<options.normalScrollElementTouchThreshold&&parent.is(options.normalScrollElements)?!0:hop==options.normalScrollElementTouchThreshold?!1:checkParentForNormalScrollElement(parent,++hop)}function isReallyTouch(e){return typeof e.pointerType=="undefined"||e.pointerType!="mouse"}function touchStartHandler(event){var e=event.originalEvent;options.fitToSection&&$htmlBody.stop();if(isReallyTouch(e)){var touchEvents=getEventsPage(e);touchStartY=touchEvents.y,touchStartX=touchEvents.x}}function getAverage(elements,number){var sum=0,lastElements=elements.slice(Math.max(elements.length-number,1));for(var i=0;i<lastElements.length;i++)sum+=lastElements[i];return Math.ceil(sum/number)}function MouseWheelHandler(e){var curTime=(new Date).getTime(),isNormalScroll=$(COMPLETELY_SEL).hasClass(NORMAL_SCROLL);if(options.autoScrolling&&!controlPressed&&!isNormalScroll){e=e||window.event;var value=e.wheelDelta||-e.deltaY||-e.detail,delta=Math.max(-1,Math.min(1,value)),horizontalDetection=typeof e.wheelDeltaX!="undefined"||typeof e.deltaX!="undefined",isScrollingVertically=Math.abs(e.wheelDeltaX)<Math.abs(e.wheelDelta)||Math.abs(e.deltaX)<Math.abs(e.deltaY)||!horizontalDetection;scrollings.length>149&&scrollings.shift(),scrollings.push(Math.abs(value)),options.scrollBar&&(e.preventDefault?e.preventDefault():e.returnValue=!1);var activeSection=$(SECTION_ACTIVE_SEL),scrollable=options.scrollOverflowHandler.scrollable(activeSection),timeDiff=curTime-prevTime;prevTime=curTime,timeDiff>200&&(scrollings=[]);if(canScroll){var averageEnd=getAverage(scrollings,10),averageMiddle=getAverage(scrollings,70),isAccelerating=averageEnd>=averageMiddle;isAccelerating&&isScrollingVertically&&(delta<0?scrolling("down",scrollable):scrolling("up",scrollable))}return!1}options.fitToSection&&$htmlBody.stop()}function moveSlide(direction,section){var activeSection=typeof section=="undefined"?$(SECTION_ACTIVE_SEL):section,slides=activeSection.find(SLIDES_WRAPPER_SEL),numSlides=slides.find(SLIDE_SEL).length;if(!slides.length||slideMoving||numSlides<2)return;var currentSlide=slides.find(SLIDE_ACTIVE_SEL),destiny=null;direction==="left"?destiny=currentSlide.prev(SLIDE_SEL):destiny=currentSlide.next(SLIDE_SEL);if(!destiny.length){if(!options.loopHorizontal)return;direction==="left"?destiny=currentSlide.siblings(":last"):destiny=currentSlide.siblings(":first")}slideMoving=!0,landscapeScroll(slides,destiny,direction)}function keepSlidesPosition(){$(SLIDE_ACTIVE_SEL).each(function(){silentLandscapeScroll($(this),"internal")})}function getDestinationPosition(element){var elemPosition=element.position(),position=elemPosition.top,isScrollingDown=elemPosition.top>previousDestTop,sectionBottom=position-windowsHeight+element.outerHeight(),bigSectionsDestination=options.bigSectionsDestination,containerH=container.outerHeight(),containerPosition=container.offset();!$masthead.hasClass("menu-transparent")&&$("body").hasClass("uncode-fp-menu-shrink")&&!element.is(":first-child")&&(position+=18);if(containerH+menuHeight+bodyBorder+adminBarHeight-windowsHeight<position||isResizing&&element.is(":last-child"))position=sectionBottom+menuHeight+bodyBorder*2+adminBarHeight;return previousDestTop=position,position}function scrollPage(element,callback,isMovementUp){if(typeof element=="undefined")return;var dtop=getDestinationPosition(element),slideAnchorLink,slideIndex,v={element:element,callback:callback,isMovementUp:isMovementUp,dtop:dtop,yMovement:getYmovement(element),anchorLink:element.data("anchor"),sectionIndex:element.index(SECTION_SEL),activeSlide:element.find(SLIDE_ACTIVE_SEL),activeSection:$(SECTION_ACTIVE_SEL),leavingSection:$(SECTION_ACTIVE_SEL).index(SECTION_SEL)+1,localIsResizing:isResizing};if(v.activeSection.is(element)&&!isResizing||options.scrollBar&&$window.scrollTop()===v.dtop&&!element.hasClass(AUTO_HEIGHT))return;v.activeSlide.length&&(slideAnchorLink=v.activeSlide.data("anchor"),slideIndex=v.activeSlide.index()),options.autoScrolling&&options.continuousVertical&&typeof v.isMovementUp!="undefined"&&(!v.isMovementUp&&v.yMovement=="up"||v.isMovementUp&&v.yMovement=="down")&&(v=createInfiniteSections(v));if($.isFunction(options.onLeave)&&!v.localIsResizing&&options.onLeave.call(v.activeSection,v.leavingSection,v.sectionIndex+1,v.yMovement)===!1)return;v.localIsResizing||stopMedia(v.activeSection),options.scrollOverflowHandler.beforeLeave(),element.addClass(ACTIVE).siblings().removeClass(ACTIVE),lazyLoad(element),options.scrollOverflowHandler.onLeave(),canScroll=!1,setState(slideIndex,slideAnchorLink,v.anchorLink,v.sectionIndex),performMovement(v),lastScrolledDestiny=v.anchorLink,activateMenuAndNav(v.anchorLink,v.sectionIndex)}function performMovement(v){if(options.css3&&options.autoScrolling&&!options.scrollBar){var translate3d="translate3d(0px, -"+Math.round(v.dtop)+"px, 0px)";transformContainer(translate3d,!0),options.scrollingSpeed?(clearTimeout(afterSectionLoadsId),afterSectionLoadsId=setTimeout(function(){afterSectionLoads(v)},options.scrollingSpeed)):afterSectionLoads(v)}else{var scrollSettings=getScrollSettings(v);$(scrollSettings.element).animate(scrollSettings.options,options.scrollingSpeed,options.easing).promise().done(function(){options.scrollBar?setTimeout(function(){afterSectionLoads(v)},30):afterSectionLoads(v)})}}function getScrollSettings(v){var scroll={};return options.autoScrolling&&!options.scrollBar?(scroll.options={top:-v.dtop},scroll.element=WRAPPER_SEL):(scroll.options={scrollTop:v.dtop},scroll.element="html, body"),scroll}function createInfiniteSections(v){return v.isMovementUp?$(SECTION_ACTIVE_SEL).before(v.activeSection.nextAll(SECTION_SEL)):$(SECTION_ACTIVE_SEL).after(v.activeSection.prevAll(SECTION_SEL).get().reverse()),silentScroll($(SECTION_ACTIVE_SEL).position().top),keepSlidesPosition(),v.wrapAroundElements=v.activeSection,v.dtop=v.element.position().top,v.yMovement=getYmovement(v.element),v}function continuousVerticalFixSectionOrder(v){if(!v.wrapAroundElements||!v.wrapAroundElements.length)return;v.isMovementUp?$(SECTION_FIRST_SEL).before(v.wrapAroundElements):$(SECTION_LAST_SEL).after(v.wrapAroundElements),silentScroll($(SECTION_ACTIVE_SEL).position().top),keepSlidesPosition()}function afterSectionLoads(v){continuousVerticalFixSectionOrder(v),$.isFunction(options.afterLoad)&&!v.localIsResizing&&options.afterLoad.call(v.element,v.anchorLink,v.sectionIndex+1),options.scrollOverflowHandler.afterLoad(),v.localIsResizing||playMedia(v.element),v.element.addClass(COMPLETELY).siblings().removeClass(COMPLETELY),canScroll=!0,$.isFunction(v.callback)&&v.callback.call(this)}function setSrc(element,attribute){element.attr(attribute,element.data(attribute)).removeAttr("data-"+attribute)}function lazyLoad(destiny){if(!options.lazyLoading)return;var panel=getSlideOrSection(destiny),element;panel.find("img[data-src], img[data-srcset], source[data-src], audio[data-src], iframe[data-src]").each(function(){element=$(this),$.each(["src","srcset"],function(index,type){var attribute=element.attr("data-"+type);typeof attribute!="undefined"&&attribute&&setSrc(element,type)}),element.is("source")&&element.closest("video").get(0).load()})}function playMedia(destiny){var panel=getSlideOrSection(destiny);panel.find("video, audio").each(function(){var element=$(this).get(0);element.hasAttribute("data-autoplay")&&typeof element.play=="function"&&element.play()}),panel.find('iframe[src*="youtube.com/embed/"]').each(function(){var element=$(this).get(0);element.hasAttribute("data-autoplay")&&playYoutube(element),element.onload=function(){element.hasAttribute("data-autoplay")&&playYoutube(element)}})}function playYoutube(element){element.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function stopMedia(destiny){var panel=getSlideOrSection(destiny);panel.find("video, audio").each(function(){var element=$(this).get(0);!element.hasAttribute("data-keepplaying")&&typeof element.pause=="function"&&element.pause()}),panel.find('iframe[src*="youtube.com/embed/"]').each(function(){var element=$(this).get(0);/youtube\.com\/embed\//.test($(this).attr("src"))&&!element.hasAttribute("data-keepplaying")&&$(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}function getSlideOrSection(destiny){var slide=destiny.find(SLIDE_ACTIVE_SEL);return slide.length&&(destiny=$(slide)),destiny}function scrollToAnchor(){var value=window.location.hash.replace("#","").split("/"),sectionAnchor=decodeURIComponent(value[0]),slideAnchor=decodeURIComponent(value[1]);sectionAnchor&&(options.animateAnchor?scrollPageAndSlide(sectionAnchor,slideAnchor):silentMoveTo(sectionAnchor,slideAnchor))}function hashChangeHandler(){if(!isScrolling&&!options.lockAnchors){var value=window.location.hash.replace("#","").split("/"),sectionAnchor=decodeURIComponent(value[0]),slideAnchor=decodeURIComponent(value[1]),isFirstSlideMove=typeof lastScrolledDestiny=="undefined",isFirstScrollMove=typeof lastScrolledDestiny=="undefined"&&typeof slideAnchor=="undefined"&&!slideMoving;sectionAnchor.length&&(sectionAnchor&§ionAnchor!==lastScrolledDestiny&&!isFirstSlideMove||isFirstScrollMove||!slideMoving&&lastScrolledSlide!=slideAnchor)&&scrollPageAndSlide(sectionAnchor,slideAnchor)}}function keydownHandler(e){clearTimeout(keydownId);var activeElement=$(":focus");if(!activeElement.is("textarea")&&!activeElement.is("input")&&!activeElement.is("select")&&activeElement.attr("contentEditable")!=="true"&&activeElement.attr("contentEditable")!==""&&options.keyboardScrolling&&options.autoScrolling){var keyCode=e.which,keyControls=[40,38,32,33,34];$.inArray(keyCode,keyControls)>-1&&e.preventDefault(),controlPressed=e.ctrlKey,keydownId=setTimeout(function(){onkeydown(e)},150)}}function tooltipTextHandler(){$(this).prev().trigger("click")}function keyUpHandler(e){isWindowFocused&&(controlPressed=e.ctrlKey)}function mouseDownHandler(e){e.which==2&&(oldPageY=e.pageY,container.on("mousemove",mouseMoveHandler))}function mouseUpHandler(e){e.which==2&&container.off("mousemove")}function slideArrowHandler(){var section=$(this).closest(SECTION_SEL);$(this).hasClass(SLIDES_PREV)?isScrollAllowed.m.left&&moveSlideLeft(section):isScrollAllowed.m.right&&moveSlideRight(section)}function blurHandler(){isWindowFocused=!1,controlPressed=!1}function sectionBulletHandler(e){e.preventDefault();var index=$(this).parent().index();scrollPage($(SECTION_SEL).eq(index))}function slideBulletHandler(e){e.preventDefault();var slides=$(this).closest(SECTION_SEL).find(SLIDES_WRAPPER_SEL),destiny=slides.find(SLIDE_SEL).eq($(this).closest("li").index());landscapeScroll(slides,destiny)}function onkeydown(e){var shiftPressed=e.shiftKey;if(!canScroll&&[37,39].indexOf(e.which)<0)return;switch(e.which){case 38:case 33:isScrollAllowed.k.up&&moveSectionUp();break;case 32:if(shiftPressed&&isScrollAllowed.k.up){moveSectionUp();break};case 40:case 34:isScrollAllowed.k.down&&moveSectionDown();break;case 36:isScrollAllowed.k.up&&moveTo(1);break;case 35:isScrollAllowed.k.down&&moveTo($(SECTION_SEL).length);break;case 37:isScrollAllowed.k.left&&moveSlideLeft();break;case 39:isScrollAllowed.k.right&&moveSlideRight();break;default:return}}function mouseMoveHandler(e){canScroll&&(e.pageY<oldPageY&&isScrollAllowed.m.up?moveSectionUp():e.pageY>oldPageY&&isScrollAllowed.m.down&&moveSectionDown()),oldPageY=e.pageY}function landscapeScroll(slides,destiny,direction){var section=slides.closest(SECTION_SEL),v={slides:slides,destiny:destiny,direction:direction,destinyPos:destiny.position(),slideIndex:destiny.index(),section:section,sectionIndex:section.index(SECTION_SEL),anchorLink:section.data("anchor"),slidesNav:section.find(SLIDES_NAV_SEL),slideAnchor:getAnchor(destiny),prevSlide:section.find(SLIDE_ACTIVE_SEL),prevSlideIndex:section.find(SLIDE_ACTIVE_SEL).index(),localIsResizing:isResizing};v.xMovement=getXmovement(v.prevSlideIndex,v.slideIndex),v.direction=v.direction?v.direction:v.xMovement,v.localIsResizing||(canScroll=!1);if(options.onSlideLeave&&!v.localIsResizing&&v.xMovement!=="none"&&$.isFunction(options.onSlideLeave)&&options.onSlideLeave.call(v.prevSlide,v.anchorLink,v.sectionIndex+1,v.prevSlideIndex,v.xMovement,v.slideIndex)===!1){slideMoving=!1;return}destiny.addClass(ACTIVE).siblings().removeClass(ACTIVE),v.localIsResizing||(stopMedia(v.prevSlide),lazyLoad(destiny)),!options.loopHorizontal&&options.controlArrows&&(section.find(SLIDES_ARROW_PREV_SEL).toggle(v.slideIndex!==0),section.find(SLIDES_ARROW_NEXT_SEL).toggle(!destiny.is(":last-child"))),section.hasClass(ACTIVE)&&!v.localIsResizing&&setState(v.slideIndex,v.slideAnchor,v.anchorLink,v.sectionIndex),performHorizontalMove(slides,v,!0)}function afterSlideLoads(v){activeSlidesNavigation(v.slidesNav,v.slideIndex),v.localIsResizing||($.isFunction(options.afterSlideLoad)&&options.afterSlideLoad.call(v.destiny,v.anchorLink,v.sectionIndex+1,v.slideAnchor,v.slideIndex),canScroll=!0,playMedia(v.destiny)),slideMoving=!1}function performHorizontalMove(slides,v,fireCallback){var destinyPos=v.destinyPos;if(options.css3){var translate3d="translate3d(-"+Math.round(destinyPos.left)+"px, 0px, 0px)";addAnimation(slides.find(SLIDES_CONTAINER_SEL)).css(getTransforms(translate3d),v),afterSlideLoadsId=setTimeout(function(){fireCallback&&afterSlideLoads(v)},options.scrollingSpeed,options.easing)}else slides.animate({scrollLeft:Math.round(destinyPos.left)},options.scrollingSpeed,options.easing,function(){fireCallback&&afterSlideLoads(v)})}function activeSlidesNavigation(slidesNav,slideIndex){slidesNav.find(ACTIVE_SEL).removeClass(ACTIVE),slidesNav.find("li").eq(slideIndex).find("a").addClass(ACTIVE)}function resizeHandler(){responsive();if(isTouchDevice){var activeElement=$(document.activeElement);if(!activeElement.is("textarea")&&!activeElement.is("input")&&!activeElement.is("select")){var currentHeight=$window.height();Math.abs(currentHeight-previousHeight)>20*Math.max(previousHeight,currentHeight)/100&&(reBuild(!0),previousHeight=currentHeight)}}else clearTimeout(resizeId),resizeId=setTimeout(function(){reBuild(!0)},350)}function responsive(){var widthLimit=options.responsive||options.responsiveWidth,heightLimit=options.responsiveHeight,isBreakingPointWidth=widthLimit&&$window.outerWidth()<widthLimit,isBreakingPointHeight=heightLimit&&$window.height()<heightLimit;widthLimit&&heightLimit?setResponsive(isBreakingPointWidth||isBreakingPointHeight):widthLimit?setResponsive(isBreakingPointWidth):heightLimit&&setResponsive(isBreakingPointHeight)}function addAnimation(container,element){var transition="all "+options.scrollingSpeed+"ms "+options.easingcss3;return container.removeClass(NO_TRANSITION),container.css({"-webkit-transition":transition,transition:transition})}function removeAnimation(element){return element.addClass(NO_TRANSITION)}function activateNavDots(name,sectionIndex){options.navigation&&($(SECTION_NAV_SEL).find(ACTIVE_SEL).removeClass(ACTIVE),name?$(SECTION_NAV_SEL).find('a[href="#'+name+'"]').addClass(ACTIVE):$(SECTION_NAV_SEL).find("li").eq(sectionIndex).find("a").addClass(ACTIVE))}function activateMenuElement(name){options.menu&&($(options.menu).find(ACTIVE_SEL).removeClass(ACTIVE),$(options.menu).find('[data-menuanchor="'+name+'"]').addClass(ACTIVE))}function activateMenuAndNav(anchor,index){activateMenuElement(anchor),activateNavDots(anchor,index)}function getYmovement(destiny){var fromIndex=$(SECTION_ACTIVE_SEL).index(SECTION_SEL),toIndex=destiny.index(SECTION_SEL);return fromIndex==toIndex?"none":fromIndex>toIndex?"up":"down"}function getXmovement(fromIndex,toIndex){return fromIndex==toIndex?"none":fromIndex>toIndex?"left":"right"}function createScrollBar(element){if(element.hasClass("fp-noscroll"))return;element.css("overflow","hidden");var scrollOverflowHandler=options.scrollOverflowHandler,wrap=scrollOverflowHandler.wrapContent(),section=element.closest(SECTION_SEL),scrollable=scrollOverflowHandler.scrollable(element),contentHeight;scrollable.length?contentHeight=scrollOverflowHandler.scrollHeight(element):(contentHeight=element.get(0).scrollHeight,options.verticalCentered&&(contentHeight=element.find(TABLE_CELL_SEL).get(0).scrollHeight));var scrollHeight=windowsHeight-parseInt(section.css("padding-bottom"))-parseInt(section.css("padding-top"));contentHeight>scrollHeight?scrollable.length?scrollOverflowHandler.update(element,scrollHeight):(options.verticalCentered?element.find(TABLE_CELL_SEL).wrapInner(wrap):element.wrapInner(wrap),scrollOverflowHandler.create(element,scrollHeight)):scrollOverflowHandler.remove(element),element.css("overflow","")}function addTableClass(element){element.hasClass(TABLE)||element.addClass(TABLE).wrapInner('<div class="'+TABLE_CELL+'" style="height:'+getTableHeight(element)+'px;" />')}function getTableHeight(element){var sectionHeight=windowsHeight;if(options.paddingTop||options.paddingBottom){var section=element;section.hasClass(SECTION)||(section=element.closest(SECTION_SEL));var paddings=parseInt(section.css("padding-top"))+parseInt(section.css("padding-bottom"));sectionHeight=windowsHeight-paddings}return sectionHeight}function transformContainer(translate3d,animated){animated?addAnimation(container):removeAnimation(container),container.css(getTransforms(translate3d)),setTimeout(function(){container.removeClass(NO_TRANSITION)},10)}function getSectionByAnchor(sectionAnchor){if(!sectionAnchor)return[];var section=container.find(SECTION_SEL+'[data-anchor="'+sectionAnchor+'"]');return section.length||(section=$(SECTION_SEL).eq(sectionAnchor-1)),section}function getSlideByAnchor(slideAnchor,section){var slides=section.find(SLIDES_WRAPPER_SEL),slide=slides.find(SLIDE_SEL+'[data-anchor="'+slideAnchor+'"]');return slide.length||(slide=slides.find(SLIDE_SEL).eq(slideAnchor)),slide}function scrollPageAndSlide(destiny,slide){var section=getSectionByAnchor(destiny);if(!section.length)return;typeof slide=="undefined"&&(slide=0),destiny!==lastScrolledDestiny&&!section.hasClass(ACTIVE)?scrollPage(section,function(){scrollSlider(section,slide)}):scrollSlider(section,slide)}function scrollSlider(section,slideAnchor){if(typeof slideAnchor!="undefined"){var slides=section.find(SLIDES_WRAPPER_SEL),destiny=getSlideByAnchor(slideAnchor,section);destiny.length&&landscapeScroll(slides,destiny)}}function addSlidesNavigation(section,numSlides){section.append('<div class="'+SLIDES_NAV+'"><ul></ul></div>');var nav=section.find(SLIDES_NAV_SEL);nav.addClass(options.slidesNavPosition);for(var i=0;i<numSlides;i++)nav.find("ul").append('<li><a href="#"><span></span></a></li>');nav.css("margin-left","-"+nav.width()/2+"px"),nav.find("li").first().find("a").addClass(ACTIVE)}function setState(slideIndex,slideAnchor,anchorLink,sectionIndex){var sectionHash="";options.anchors.length&&!options.lockAnchors&&(slideIndex?(typeof anchorLink!="undefined"&&(sectionHash=anchorLink),typeof slideAnchor=="undefined"&&(slideAnchor=slideIndex),lastScrolledSlide=slideAnchor,setUrlHash(sectionHash+"/"+slideAnchor)):typeof slideIndex!="undefined"?(lastScrolledSlide=slideAnchor,setUrlHash(anchorLink)):setUrlHash(anchorLink)),setBodyClass()}function setUrlHash(url){if(typeof SiteParameters.slide_footer!="undefined"&&url==SiteParameters.slide_footer)return!1;if(!options.recordHistory)return!1;location.hash=url}function getAnchor(element){var anchor=element.data("anchor"),index=element.index();return typeof anchor=="undefined"&&(anchor=index),anchor}function setBodyClass(){var section=$(SECTION_ACTIVE_SEL),slide=section.find(SLIDE_ACTIVE_SEL),sectionAnchor=getAnchor(section),slideAnchor=getAnchor(slide),text=String(sectionAnchor);slide.length&&(text=text+"-"+slideAnchor),text=text.replace("/","-").replace("#","");var classRe=new RegExp("\\b\\s?"+VIEWING_PREFIX+"-[^\\s]+\\b","g");$body[0].className=$body[0].className.replace(classRe,""),$body.addClass(VIEWING_PREFIX+"-"+text)}function support3d(){var el=document.createElement("p"),has3d,transforms={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(el,null);for(var t in transforms)el.style[t]!==undefined&&(el.style[t]="translate3d(1px,1px,1px)",has3d=window.getComputedStyle(el).getPropertyValue(transforms[t]));return document.body.removeChild(el),has3d!==undefined&&has3d.length>0&&has3d!=="none"}function removeMouseWheelHandler(){document.addEventListener?(document.removeEventListener("mousewheel",MouseWheelHandler,!1),document.removeEventListener("wheel",MouseWheelHandler,!1),document.removeEventListener("MozMousePixelScroll",MouseWheelHandler,!1)):document.detachEvent("onmousewheel",MouseWheelHandler)}function addMouseWheelHandler(){var prefix="",_addEventListener;window.addEventListener?_addEventListener="addEventListener":(_addEventListener="attachEvent",prefix="on");var support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",passiveEvent=g_supportsPassive?{passive:!1}:!1;support=="DOMMouseScroll"?document[_addEventListener](prefix+"MozMousePixelScroll",MouseWheelHandler,passiveEvent):document[_addEventListener](prefix+support,MouseWheelHandler,passiveEvent)}function addMiddleWheelHandler(){container.on("mousedown",mouseDownHandler).on("mouseup",mouseUpHandler)}function removeMiddleWheelHandler(){container.off("mousedown",mouseDownHandler).off("mouseup",mouseUpHandler)}function addTouchHandler(){if(isTouchDevice||isTouch)options.autoScrolling&&$body.off(events.touchmove).on(events.touchmove,preventBouncing),$(WRAPPER_SEL).off(events.touchstart).on(events.touchstart,touchStartHandler).off(events.touchmove).on(events.touchmove,touchMoveHandler)}function removeTouchHandler(){(isTouchDevice||isTouch)&&$(WRAPPER_SEL).off(events.touchstart).off(events.touchmove)}function getMSPointer(){var pointer;return window.PointerEvent?pointer={down:"pointerdown",move:"pointermove"}:pointer={down:"MSPointerDown",move:"MSPointerMove"},pointer}function getEventsPage(e){var events=[];return events.y=typeof e.pageY!="undefined"&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY,events.x=typeof e.pageX!="undefined"&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX,isTouch&&isReallyTouch(e)&&options.scrollBar&&(events.y=e.touches[0].pageY,events.x=e.touches[0].pageX),events}function silentLandscapeScroll(activeSlide,noCallbacks){setScrollingSpeed(0,"internal"),typeof noCallbacks!="undefined"&&(isResizing=!0),landscapeScroll(activeSlide.closest(SLIDES_WRAPPER_SEL),activeSlide),typeof noCallbacks!="undefined"&&(isResizing=!1),setScrollingSpeed(originals.scrollingSpeed,"internal")}function silentScroll(top){var roundedTop=Math.round(top);if(options.css3&&options.autoScrolling&&!options.scrollBar){var translate3d="translate3d(0px, -"+roundedTop+"px, 0px)";transformContainer(translate3d,!1)}else options.autoScrolling&&!options.scrollBar?container.css("top",-roundedTop):$htmlBody.scrollTop(roundedTop)}function getTransforms(translate3d){return{"-webkit-transform":translate3d,"-moz-transform":translate3d,"-ms-transform":translate3d,transform:translate3d}}function setIsScrollAllowed(value,direction,type){switch(direction){case"up":isScrollAllowed[type].up=value;break;case"down":isScrollAllowed[type].down=value;break;case"left":isScrollAllowed[type].left=value;break;case"right":isScrollAllowed[type].right=value;break;case"all":type=="m"?setAllowScrolling(value):setKeyboardScrolling(value)}}function destroy(all){setAutoScrolling(!1,"internal"),setAllowScrolling(!1),setKeyboardScrolling(!1),container.addClass(DESTROYED),clearTimeout(afterSlideLoadsId),clearTimeout(afterSectionLoadsId),clearTimeout(resizeId),clearTimeout(scrollId),clearTimeout(scrollId2),$window.off("scroll",scrollHandler).off("hashchange",hashChangeHandler).off("resize",resizeHandler),$document.off("click touchstart",SECTION_NAV_SEL+" a").off("mouseenter",SECTION_NAV_SEL+" li").off("mouseleave",SECTION_NAV_SEL+" li").off("click touchstart",SLIDES_NAV_LINK_SEL).off("mouseover",options.normalScrollElements).off("mouseout",options.normalScrollElements),$(SECTION_SEL).off("click touchstart",SLIDES_ARROW_SEL),clearTimeout(afterSlideLoadsId),clearTimeout(afterSectionLoadsId),all&&destroyStructure()}function destroyStructure(){silentScroll(0),container.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){setSrc($(this),"src")}),container.find("img[data-srcset]").each(function(){setSrc($(this),"srcset")}),$(SECTION_NAV_SEL+", "+SLIDES_NAV_SEL+", "+SLIDES_ARROW_SEL).remove(),$(SECTION_SEL).css({height:"","background-color":"",padding:""}),$(SLIDE_SEL).css({width:""}),container.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),$htmlBody.css({overflow:"",height:""}),$("html").removeClass(ENABLED),$body.removeClass(RESPONSIVE),$.each($body.get(0).className.split(/\s+/),function(index,className){className.indexOf(VIEWING_PREFIX)===0&&$body.removeClass(className)}),$(SECTION_SEL+", "+SLIDE_SEL).each(function(){options.scrollOverflowHandler.remove($(this)),$(this).removeClass(TABLE+" "+ACTIVE)}),removeAnimation(container),container.find(TABLE_CELL_SEL+", "+SLIDES_CONTAINER_SEL+", "+SLIDES_WRAPPER_SEL).each(function(){$(this).replaceWith(this.childNodes)}),container.css({"-webkit-transition":"none",transition:"none"}),$htmlBody.scrollTop(0);var usedSelectors=[SECTION,SLIDE,SLIDES_CONTAINER];$.each(usedSelectors,function(index,value){$("."+value).removeClass(value)})}function setVariableState(variable,value,type){options[variable]=value,type!=="internal"&&(originals[variable]=value)}function displayWarnings(){var extensions=["fadingEffect","continuousHorizontal","scrollHorizontally","interlockedSlides","resetSliders","responsiveSlides","offsetSections","dragAndMove","scrollOverflowReset","parallax"];$.each(extensions,function(index,extension){options[extension]&&showError("warn","fullpage.js extensions require jquery.fullpage.extensions.min.js file instead of the usual jquery.fullpage.js. Requested: "+extension)}),$.each(options.anchors,function(index,name){var nameAttr=$document.find("[name]").filter(function(){return $(this).attr("name")&&$(this).attr("name").toLowerCase()==name.toLowerCase()}),idAttr=$document.find("[id]").filter(function(){return $(this).attr("id")&&$(this).attr("id").toLowerCase()==name.toLowerCase()});if(idAttr.length||nameAttr.length)showError("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),idAttr.length&&showError("error",'"'+name+'" is is being used by another element `id` property'),nameAttr.length&&showError("error",'"'+name+'" is is being used by another element `name` property')})}function showError(type,text){console&&console[type]&&console[type]("fullPage: "+text)}if($("html").hasClass(ENABLED)){displayWarnings();return}var $htmlBody=$("html, body"),$body=$("body"),FP=$.fn.fullpage;options=$.extend({menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,dragAndMove:!1,offsetSections:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowReset:!1,scrollOverflowHandler:iscrollHandler,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,parallax:!1,parallaxOptions:{type:"reveal",percentage:62,property:"translate"},sectionSelector:SECTION_DEFAULT_SEL,slideSelector:SLIDE_DEFAULT_SEL,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:!0},options);var slideMoving=!1,isTouchDevice=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),isTouch="ontouchstart"in window||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,container=$(this),windowsHeight=$window.height(),isResizing=!1,isWindowFocused=!0,lastScrolledDestiny,lastScrolledSlide,canScroll=!0,scrollings=[],controlPressed,startingSection,isScrollAllowed={};isScrollAllowed.m={up:!0,down:!0,left:!0,right:!0},isScrollAllowed.k=$.extend(!0,{},isScrollAllowed.m);var MSPointer=getMSPointer(),events={touchmove:"ontouchmove"in window?"touchmove":MSPointer.move,touchstart:"ontouchstart"in window?"touchstart":MSPointer.down},g_supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){g_supportsPassive=!0}});window.addEventListener("testPassive",null,opts),window.removeEventListener("testPassive",null,opts)}catch(e){}var resizeId,afterSectionLoadsId,afterSlideLoadsId,scrollId,scrollId2,keydownId,originals=$.extend(!0,{},options),$masthead=$("#masthead"),hideMenu=!$("body").hasClass("vmenu")&&$("body").hasClass("uncode-fp-menu-hide")?!0:!1,menuHeight=$masthead.hasClass("menu-transparent")||hideMenu?0:UNCODE.menuHeight,bodyBorder=UNCODE.bodyBorder,adminBarHeight=UNCODE.adminBarHeight;displayWarnings(),iscrollOptions.click=isTouch,iscrollOptions=$.extend(iscrollOptions,options.scrollOverflowOptions),$.extend($.easing,{easeInOutCubic:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t*t+b:c/2*((t-=2)*t*t+2)+b}}),$(this).length&&(FP.setAutoScrolling=setAutoScrolling,FP.setRecordHistory=setRecordHistory,FP.setScrollingSpeed=setScrollingSpeed,FP.setFitToSection=setFitToSection,FP.setLockAnchors=setLockAnchors,FP.setMouseWheelScrolling=setMouseWheelScrolling,FP.setAllowScrolling=setAllowScrolling,FP.setKeyboardScrolling=setKeyboardScrolling,FP.moveSectionUp=moveSectionUp,FP.moveSectionDown=moveSectionDown,FP.silentMoveTo=silentMoveTo,FP.moveTo=moveTo,FP.moveSlideRight=moveSlideRight,FP.moveSlideLeft=moveSlideLeft,FP.fitToSection=fitToSection,FP.reBuild=reBuild,FP.setResponsive=setResponsive,FP.destroy=destroy,init(),bindEvents());var isScrolling=!1,lastScroll=0,touchStartY=0,touchStartX=0,touchEndY=0,touchEndX=0,prevTime=(new Date).getTime(),previousDestTop=0,oldPageY=0,previousHeight=windowsHeight},typeof IScroll!="undefined"&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)});var iscrollHandler={refreshId:null,iScrollInstances:[],toggleWheel:function(value){var scrollable=$(SECTION_ACTIVE_SEL).find(SCROLLABLE_SEL);scrollable.each(function(){var iScrollInstance=$(this).data("iscrollInstance");typeof iScrollInstance!="undefined"&&iScrollInstance&&(value?iScrollInstance.wheelOn():iScrollInstance.wheelOff())})},onLeave:function(){iscrollHandler.toggleWheel(!1)},beforeLeave:function(){iscrollHandler.onLeave()},afterLoad:function(){iscrollHandler.toggleWheel(!0)},create:function(element,scrollHeight){var scrollable=element.find(SCROLLABLE_SEL);scrollable.height(scrollHeight),scrollable.each(function(){var $this=$(this),iScrollInstance=$this.data("iscrollInstance");iScrollInstance&&$.each(iscrollHandler.iScrollInstances,function(){$(this).destroy()}),iScrollInstance=new IScroll($this.get(0),iscrollOptions),iscrollHandler.iScrollInstances.push(iScrollInstance),iScrollInstance.wheelOff(),$this.data("iscrollInstance",iScrollInstance)})},isScrolled:function(type,scrollable){var scroller=scrollable.data("iscrollInstance");if(!scroller)return!0;if(type==="top")return scroller.y>=0&&!scrollable.scrollTop();if(type==="bottom")return 0-scroller.y+scrollable.scrollTop()+1+scrollable.innerHeight()>=scrollable[0].scrollHeight},scrollable:function(activeSection){return activeSection.find(SLIDES_WRAPPER_SEL).length?activeSection.find(SLIDE_ACTIVE_SEL).find(SCROLLABLE_SEL):activeSection.find(SCROLLABLE_SEL)},scrollHeight:function(element){return element.find(SCROLLABLE_SEL).children().first().get(0).scrollHeight},remove:function(element){var scrollable=element.find(SCROLLABLE_SEL);if(scrollable.length){var iScrollInstance=scrollable.data("iscrollInstance");iScrollInstance.destroy(),scrollable.data("iscrollInstance",null)}element.find(SCROLLABLE_SEL).children().first().children().first().unwrap().unwrap()},update:function(element,scrollHeight){clearTimeout(iscrollHandler.refreshId),iscrollHandler.refreshId=setTimeout(function(){$.each(iscrollHandler.iScrollInstances,function(){$(this).get(0).refresh()})},150),element.find(SCROLLABLE_SEL).css("height",scrollHeight+"px").parent().css("height",scrollHeight+"px")},wrapContent:function(){return'<div class="'+SCROLLABLE+'"><div class="fp-scroller"></div></div>'}}})
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка