forked from alvarotrigo/fullPage.js
/
jquery.fullPage.min.js
9 lines (9 loc) · 29.4 KB
/
jquery.fullPage.min.js
1
2
3
4
5
6
7
8
9
/*!
* fullPage 2.8.4
* https://github.com/alvarotrigo/fullPage.js
* @license MIT licensed
*
* Copyright (C) 2015 alvarotrigo.com - A project by Alvaro Trigo
*/
!function(e,n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,e,e.document,e.Math)}):"undefined"!=typeof exports?module.exports=n(require("jquery"),e,e.document,e.Math):n(jQuery,e,e.document,e.Math)}("undefined"!=typeof window?window:this,function(e,n,t,o,i){"use strict";var l="fullpage-wrapper",r="."+l,a="fp-scrollable",s="."+a,c="fp-responsive",d="fp-notransition",f="fp-destroyed",u="fp-enabled",h="fp-viewing",p="active",v="."+p,m="fp-completely",g="."+m,S=".section",w="fp-section",y="."+w,b=y+v,x=y+":first",C=y+":last",T="fp-tableCell",k="."+T,I="fp-auto-height",L="fp-normal-scroll",A="fp-nav",E="#"+A,M="fp-tooltip",H="."+M,O="fp-show-active",B=".slide",z="fp-slide",R="."+z,D=R+v,P="fp-slides",F="."+P,V="fp-slidesContainer",U="."+V,W="fp-table",q="fp-slidesNav",Y="."+q,N=Y+" a",X="fp-controlArrow",j="."+X,K="fp-prev",_="."+K,Q=X+" "+K,G=j+_,J="fp-next",Z="."+J,$=X+" "+J,ee=j+Z,ne=e(n),te=e(t),oe={scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0};e.fn.fullpage=function(a){function s(){a.css3&&(a.css3=Ln()),a.scrollBar=a.scrollBar||a.hybrid,J(),Z(),jn.setAllowScrolling(!0),jn.setAutoScrolling(a.autoScrolling,"internal");var n=e(b).find(D);n.length&&(0!==e(b).index(y)||0===e(b).index(y)&&0!==n.index())&&Dn(n),rn(),In(),"complete"===t.readyState&&We(),ne.on("load",We)}function X(){ne.on("scroll",ge).on("hashchange",qe).blur(Qe).resize(ln),te.keydown(Ye).keyup(Xe).on("click touchstart",E+" a",Ge).on("click touchstart",N,Je).on("click",H,Ne),e(y).on("click touchstart",j,_e),a.normalScrollElements&&(te.on("mouseenter",a.normalScrollElements,function(){jn.setMouseWheelScrolling(!1)}),te.on("mouseleave",a.normalScrollElements,function(){jn.setMouseWheelScrolling(!0)}))}function _(e){var t=e.replace("fp_","").replace("Extension","");jn[t]="undefined"!=typeof n[e]?new n[e]:null}function J(){var n=$n.find(a.sectionSelector);a.anchors.length||(a.anchors=n.filter("[data-anchor]").map(function(){return e(this).data("anchor").toString()}).get()),a.navigationTooltips.length||(a.navigationTooltips=n.filter("[data-tooltip]").map(function(){return e(this).data("tooltip").toString()}).get())}function Z(){$n.css({height:"100%",position:"relative"}),$n.addClass(l),e("html").addClass(u),et=ne.height(),$n.removeClass(f),se(),e(y).each(function(n){var t=e(this),o=t.find(R),i=o.length;re(t,n),ae(t,n),i>0?le(t,o,i):a.verticalCentered&&vn(t)}),a.fixedElements&&a.css3&&e(a.fixedElements).appendTo(Xn),a.navigation&&de(),ue(),he(),a.scrollOverflow?("complete"===t.readyState&&fe(),ne.on("load",fe)):me()}function le(n,t,o){var i=100*o,l=100/o;t.wrapAll('<div class="'+V+'" />'),t.parent().wrap('<div class="'+P+'" />'),n.find(U).css("width",i+"%"),o>1&&(a.controlArrows&&ce(n),a.slidesNavigation&&xn(n,o)),t.each(function(n){e(this).css("width",l+"%"),a.verticalCentered&&vn(e(this))});var r=n.find(D);r.length&&(0!==e(b).index(y)||0===e(b).index(y)&&0!==r.index())?Dn(r):t.eq(0).addClass(p)}function re(n,t){t||0!==e(b).length||n.addClass(p),n.css("height",et+"px"),a.paddingTop&&n.css("padding-top",a.paddingTop),a.paddingBottom&&n.css("padding-bottom",a.paddingBottom),"undefined"!=typeof a.sectionsColor[t]&&n.css("background-color",a.sectionsColor[t]),"undefined"!=typeof a.anchors[t]&&n.attr("data-anchor",a.anchors[t])}function ae(n,t){"undefined"!=typeof a.anchors[t]&&n.hasClass(p)&&fn(a.anchors[t],t),a.menu&&a.css3&&e(a.menu).closest(r).length&&e(a.menu).appendTo(Xn)}function se(){$n.find(a.sectionSelector).addClass(w),$n.find(a.slideSelector).addClass(z)}function ce(e){e.find(F).after('<div class="'+Q+'"></div><div class="'+$+'"></div>'),"#fff"!=a.controlArrowColor&&(e.find(ee).css("border-color","transparent transparent transparent "+a.controlArrowColor),e.find(G).css("border-color","transparent "+a.controlArrowColor+" transparent transparent")),a.loopHorizontal||e.find(G).hide()}function de(){Xn.append('<div id="'+A+'"><ul></ul></div>');var n=e(E);n.addClass(function(){return a.showActiveTooltip?O+" "+a.navigationPosition:a.navigationPosition});for(var t=0;t<e(y).length;t++){var o="";a.anchors.length&&(o=a.anchors[t]);var i='<li><a href="#'+o+'"><span></span></a>',l=a.navigationTooltips[t];"undefined"!=typeof l&&""!==l&&(i+='<div class="'+M+" "+a.navigationPosition+'">'+l+"</div>"),i+="</li>",n.find("ul").append(i)}e(E).css("margin-top","-"+e(E).height()/2+"px"),e(E).find("li").eq(e(b).index(y)).find("a").addClass(p)}function fe(){e(y).each(function(){var n=e(this).find(R);n.length?n.each(function(){pn(e(this))}):pn(e(this))}),me()}function ue(){$n.find('iframe[src*="youtube.com/embed/"]').each(function(){pe(e(this),"enablejsapi=1")})}function he(){$n.find('iframe[src*="player.vimeo.com/"]').each(function(){pe(e(this),"api=1")})}function pe(e,n){var t=e.attr("src");e.attr("src",t+ve(t)+n)}function ve(e){return/\?/.test(e)?"&":"?"}function me(){var n=e(b);n.addClass(m),a.scrollOverflowHandler.afterRender&&a.scrollOverflowHandler.afterRender(n),De(n),Pe(n),e.isFunction(a.afterLoad)&&a.afterLoad.call(n,n.data("anchor"),n.index(y)+1),e.isFunction(a.afterRender)&&a.afterRender.call($n)}function ge(){var n;if(!a.autoScrolling||a.scrollBar){var o=ne.scrollTop(),i=we(o),l=0,r=o+ne.height()/2,s=Xn.height()-ne.height()===o,c=t.querySelectorAll(y);if(s)l=c.length-1;else for(var d=0;d<c.length;++d){var f=c[d];f.offsetTop<=r&&(l=d)}if(Se(i)&&(e(b).hasClass(m)||e(b).addClass(m).siblings().removeClass(m)),n=e(c).eq(l),!n.hasClass(p)){ht=!0;var u=e(b),h=u.index(y)+1,v=un(n),g=n.data("anchor"),S=n.index(y)+1,w=n.find(D);if(w.length)var x=w.data("anchor"),C=w.index();ot&&(n.addClass(p).siblings().removeClass(p),e.isFunction(a.onLeave)&&a.onLeave.call(u,h,S,v),e.isFunction(a.afterLoad)&&a.afterLoad.call(n,g,S),Ve(u),De(n),Pe(n),fn(g,S-1),a.anchors.length&&(Kn=g),Cn(C,x,g,S)),clearTimeout(ct),ct=setTimeout(function(){ht=!1},100)}a.fitToSection&&(clearTimeout(dt),dt=setTimeout(function(){ot&&a.fitToSection&&(e(b).is(n)&&(nt=!0),Me(e(b)),nt=!1)},a.fitToSectionDelay))}}function Se(n){var t=e(b).position().top,o=t+ne.height();return"up"==n?o>=ne.scrollTop()+ne.height():t<=ne.scrollTop()}function we(e){var n=e>pt?"down":"up";return pt=e,yt=e,n}function ye(e,n){if(lt.m[e]){var t="down"===e?"bottom":"top",o="down"===e?jn.moveSectionDown:jn.moveSectionUp;if(jn.scrollHorizontally&&(o=jn.scrollHorizontally.getScrollSection(e,o)),n.length>0){if(!a.scrollOverflowHandler.isScrolled(t,n))return!0;o()}else o()}}function be(n){var t=n.originalEvent,i=e(t.target).closest(y);if(!xe(n.target)&&Ce(t)){a.autoScrolling&&n.preventDefault();var l=a.scrollOverflowHandler.scrollable(i);if(ot&&!Gn){var r=Rn(t);gt=r.y,St=r.x,i.find(F).length&&o.abs(mt-St)>o.abs(vt-gt)?o.abs(mt-St)>ne.outerWidth()/100*a.touchSensitivity&&(mt>St?lt.m.right&&jn.moveSlideRight(i):lt.m.left&&jn.moveSlideLeft(i)):a.autoScrolling&&o.abs(vt-gt)>ne.height()/100*a.touchSensitivity&&(vt>gt?ye("down",l):gt>vt&&ye("up",l))}}}function xe(n,t){t=t||0;var o=e(n).parent();return t<a.normalScrollElementTouchThreshold&&o.is(a.normalScrollElements)?!0:t==a.normalScrollElementTouchThreshold?!1:xe(o,++t)}function Ce(e){return"undefined"==typeof e.pointerType||"mouse"!=e.pointerType}function Te(e){var n=e.originalEvent;if(a.fitToSection&&Nn.stop(),Ce(n)){var t=Rn(n);vt=t.y,mt=t.x}}function ke(e,n){for(var t=0,i=e.slice(o.max(e.length-n,1)),l=0;l<i.length;l++)t+=i[l];return o.ceil(t/n)}function Ie(t){var i=(new Date).getTime(),l=e(g).hasClass(L);if(a.autoScrolling&&!Qn&&!l){t=t||n.event;var r=t.wheelDelta||-t.deltaY||-t.detail,s=o.max(-1,o.min(1,r)),c="undefined"!=typeof t.wheelDeltaX||"undefined"!=typeof t.deltaX,d=o.abs(t.wheelDeltaX)<o.abs(t.wheelDelta)||o.abs(t.deltaX)<o.abs(t.deltaY)||!c;it.length>149&&it.shift(),it.push(o.abs(r)),a.scrollBar&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var f=e(b),u=a.scrollOverflowHandler.scrollable(f),h=i-wt;if(wt=i,h>200&&(it=[]),ot){var p=ke(it,10),v=ke(it,70),m=p>=v;m&&d&&(0>s?ye("down",u):ye("up",u))}return!1}a.fitToSection&&Nn.stop()}function Le(n,t){var o="undefined"==typeof t?e(b):t,i=o.find(F),l=i.find(R).length;if(!(!i.length||Gn||2>l)){var r=i.find(D),s=null;if(s="left"===n?r.prev(R):r.next(R),!s.length){if(!a.loopHorizontal)return;s="left"===n?r.siblings(":last"):r.siblings(":first")}Gn=!0,en(i,s,n)}}function Ae(){e(D).each(function(){Dn(e(this),"internal")})}function Ee(e){var n=e.position(),t=n.top,o=n.top>yt,i=t-et+e.outerHeight(),l=a.bigSectionsDestination;return e.outerHeight()>et?(!o&&!l||"bottom"===l)&&(t=i):(o||nt&&e.is(":last-child"))&&(t=i),yt=t,t}function Me(n,t,o){if("undefined"!=typeof n){var i=Ee(n),l={element:n,callback:t,isMovementUp:o,dtop:i,yMovement:un(n),anchorLink:n.data("anchor"),sectionIndex:n.index(y),activeSlide:n.find(D),activeSection:e(b),leavingSection:e(b).index(y)+1,localIsResizing:nt};if(!(l.activeSection.is(n)&&!nt||a.scrollBar&&ne.scrollTop()===l.dtop&&!n.hasClass(I))){if(l.activeSlide.length)var r=l.activeSlide.data("anchor"),s=l.activeSlide.index();a.autoScrolling&&a.continuousVertical&&"undefined"!=typeof l.isMovementUp&&(!l.isMovementUp&&"up"==l.yMovement||l.isMovementUp&&"down"==l.yMovement)&&(l=Be(l)),(!e.isFunction(a.onLeave)||l.localIsResizing||a.onLeave.call(l.activeSection,l.leavingSection,l.sectionIndex+1,l.yMovement)!==!1)&&(Ve(l.activeSection),n.addClass(p).siblings().removeClass(p),De(n),a.scrollOverflowHandler.onLeave(),ot=!1,Cn(s,r,l.anchorLink,l.sectionIndex),He(l),Kn=l.anchorLink,fn(l.anchorLink,l.sectionIndex))}}}function He(n){if(a.css3&&a.autoScrolling&&!a.scrollBar){var t="translate3d(0px, -"+n.dtop+"px, 0px)";gn(t,!0),a.scrollingSpeed?at=setTimeout(function(){Re(n)},a.scrollingSpeed):Re(n)}else{var o=Oe(n);e(o.element).animate(o.options,a.scrollingSpeed,a.easing).promise().done(function(){a.scrollBar?setTimeout(function(){Re(n)},30):Re(n)})}}function Oe(e){var n={};return a.autoScrolling&&!a.scrollBar?(n.options={top:-e.dtop},n.element=r):(n.options={scrollTop:e.dtop},n.element="html, body"),n}function Be(n){return n.isMovementUp?e(b).before(n.activeSection.nextAll(y)):e(b).after(n.activeSection.prevAll(y).get().reverse()),Pn(e(b).position().top),Ae(),n.wrapAroundElements=n.activeSection,n.dtop=n.element.position().top,n.yMovement=un(n.element),n}function ze(n){n.wrapAroundElements&&n.wrapAroundElements.length&&(n.isMovementUp?e(x).before(n.wrapAroundElements):e(C).after(n.wrapAroundElements),Pn(e(b).position().top),Ae())}function Re(n){ze(n),e.isFunction(a.afterLoad)&&!n.localIsResizing&&a.afterLoad.call(n.element,n.anchorLink,n.sectionIndex+1),a.scrollOverflowHandler.afterLoad(),a.resetSliders&&jn.resetSliders&&jn.resetSliders.apply(n),Pe(n.element),n.element.addClass(m).siblings().removeClass(m),ot=!0,e.isFunction(n.callback)&&n.callback.call(this)}function De(n){var n=Ue(n);n.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){e(this).attr("src",e(this).data("src")),e(this).removeAttr("data-src"),e(this).is("source")&&e(this).closest("video").get(0).load()})}function Pe(n){var n=Ue(n);n.find("video, audio").each(function(){var n=e(this).get(0);n.hasAttribute("data-autoplay")&&"function"==typeof n.play&&n.play()}),n.find('iframe[src*="youtube.com/embed/"]').each(function(){var n=e(this).get(0);Fe(n),n.onload=function(){Fe(n)}})}function Fe(e){e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function Ve(n){var n=Ue(n);n.find("video, audio").each(function(){var n=e(this).get(0);n.hasAttribute("data-keepplaying")||"function"!=typeof n.pause||n.pause()}),n.find('iframe[src*="youtube.com/embed/"]').each(function(){var n=e(this).get(0);/youtube\.com\/embed\//.test(e(this).attr("src"))&&!n.hasAttribute("data-keepplaying")&&e(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}function Ue(n){var t=n.find(D);return t.length&&(n=e(t)),n}function We(){var e=n.location.hash.replace("#","").split("/"),t=decodeURIComponent(e[0]),o=decodeURIComponent(e[1]);t&&(a.animateAnchor?yn(t,o):jn.silentMoveTo(t,o))}function qe(){if(!ht&&!a.lockAnchors){var e=n.location.hash.replace("#","").split("/"),t=decodeURIComponent(e[0]),o=decodeURIComponent(e[1]),i="undefined"==typeof Kn,l="undefined"==typeof Kn&&"undefined"==typeof o&&!Gn;t.length&&(t&&t!==Kn&&!i||l||!Gn&&_n!=o)&&yn(t,o)}}function Ye(n){clearTimeout(ft);var t=e(":focus");if(!t.is("textarea")&&!t.is("input")&&!t.is("select")&&"true"!==t.attr("contentEditable")&&""!==t.attr("contentEditable")&&a.keyboardScrolling&&a.autoScrolling){var o=n.which,i=[40,38,32,33,34];e.inArray(o,i)>-1&&n.preventDefault(),Qn=n.ctrlKey,ft=setTimeout(function(){Ze(n)},150)}}function Ne(){e(this).prev().trigger("click")}function Xe(e){tt&&(Qn=e.ctrlKey)}function je(e){2==e.which&&(bt=e.pageY,$n.on("mousemove",$e))}function Ke(e){2==e.which&&$n.off("mousemove")}function _e(){var n=e(this).closest(y);e(this).hasClass(K)?lt.m.left&&jn.moveSlideLeft(n):lt.m.right&&jn.moveSlideRight(n)}function Qe(){tt=!1,Qn=!1}function Ge(n){n.preventDefault();var t=e(this).parent().index();Me(e(y).eq(t))}function Je(n){n.preventDefault();var t=e(this).closest(y).find(F),o=t.find(R).eq(e(this).closest("li").index());en(t,o)}function Ze(n){var t=n.shiftKey;switch(n.which){case 38:case 33:lt.k.up&&jn.moveSectionUp();break;case 32:if(t&<.k.up){jn.moveSectionUp();break}case 40:case 34:lt.k.down&&jn.moveSectionDown();break;case 36:lt.k.up&&jn.moveTo(1);break;case 35:lt.k.down&&jn.moveTo(e(y).length);break;case 37:lt.k.left&&jn.moveSlideLeft();break;case 39:lt.k.right&&jn.moveSlideRight();break;default:return}}function $e(e){ot&&(e.pageY<bt&<.m.up?jn.moveSectionUp():e.pageY>bt&<.m.down&&jn.moveSectionDown()),bt=e.pageY}function en(n,t,o){var i=n.closest(y),l={slides:n,destiny:t,direction:o,destinyPos:t.position(),slideIndex:t.index(),section:i,sectionIndex:i.index(y),anchorLink:i.data("anchor"),slidesNav:i.find(Y),slideAnchor:kn(t),prevSlide:i.find(D),prevSlideIndex:i.find(D).index(),localIsResizing:nt};return l.xMovement=hn(l.prevSlideIndex,l.slideIndex),ot=!1,a.onSlideLeave&&!l.localIsResizing&&"none"!==l.xMovement&&e.isFunction(a.onSlideLeave)&&a.onSlideLeave.call(l.prevSlide,l.anchorLink,l.sectionIndex+1,l.prevSlideIndex,l.xMovement,l.slideIndex)===!1?void(Gn=!1):(Ve(l.prevSlide),t.addClass(p).siblings().removeClass(p),l.localIsResizing||De(t),!a.loopHorizontal&&a.controlArrows&&(i.find(G).toggle(0!==l.slideIndex),i.find(ee).toggle(!t.is(":last-child"))),i.hasClass(p)&&Cn(l.slideIndex,l.slideAnchor,l.anchorLink,l.sectionIndex),jn.continuousHorizontal&&jn.continuousHorizontal.apply(l),tn(n,l,!0),void(a.interlockedSlides&&jn.interlockedSlides&&jn.interlockedSlides.apply(l)))}function nn(n){jn.continuousHorizontal&&jn.continuousHorizontal.afterSlideLoads(n),on(n.slidesNav,n.slideIndex),n.localIsResizing||(e.isFunction(a.afterSlideLoad)&&a.afterSlideLoad.call(n.destiny,n.anchorLink,n.sectionIndex+1,n.slideAnchor,n.slideIndex),ot=!0),Pe(n.destiny),Gn=!1,jn.interlockedSlides&&jn.interlockedSlides.apply(n)}function tn(e,n,t){var i=n.destinyPos;if(a.css3){var l="translate3d(-"+o.round(i.left)+"px, 0px, 0px)";an(e.find(U)).css(Fn(l)),st=setTimeout(function(){t&&nn(n)},a.scrollingSpeed,a.easing)}else e.animate({scrollLeft:o.round(i.left)},a.scrollingSpeed,a.easing,function(){t&&nn(n)})}function on(e,n){e.find(v).removeClass(p),e.find("li").eq(n).find("a").addClass(p)}function ln(){if(rn(),Jn){var n=e(t.activeElement);if(!n.is("textarea")&&!n.is("input")&&!n.is("select")){var i=ne.height();o.abs(i-xt)>20*o.max(xt,i)/100&&(jn.reBuild(!0),xt=i)}}else clearTimeout(rt),rt=setTimeout(function(){jn.reBuild(!0)},350)}function rn(){var e=a.responsive||a.responsiveWidth,n=a.responsiveHeight,t=e&&ne.outerWidth()<e,o=n&&ne.height()<n;e&&n?jn.setResponsive(t||o):e?jn.setResponsive(t):n&&jn.setResponsive(o)}function an(e){var n="all "+a.scrollingSpeed+"ms "+a.easingcss3;return e.removeClass(d),e.css({"-webkit-transition":n,transition:n})}function sn(e){return e.addClass(d)}function cn(n,t){a.navigation&&(e(E).find(v).removeClass(p),n?e(E).find('a[href="#'+n+'"]').addClass(p):e(E).find("li").eq(t).find("a").addClass(p))}function dn(n){a.menu&&(e(a.menu).find(v).removeClass(p),e(a.menu).find('[data-menuanchor="'+n+'"]').addClass(p))}function fn(e,n){dn(e),cn(e,n)}function un(n){var t=e(b).index(y),o=n.index(y);return t==o?"none":t>o?"up":"down"}function hn(e,n){return e==n?"none":e>n?"left":"right"}function pn(e){if(!e.hasClass("fp-noscroll")){e.css("overflow","hidden");var n,t=a.scrollOverflowHandler,o=t.wrapContent(),i=e.closest(y),l=t.scrollable(e);l.length?n=t.scrollHeight(e):(n=e.get(0).scrollHeight,a.verticalCentered&&(n=e.find(k).get(0).scrollHeight));var r=et-parseInt(i.css("padding-bottom"))-parseInt(i.css("padding-top"));n>r?l.length?t.update(e,r):(a.verticalCentered?e.find(k).wrapInner(o):e.wrapInner(o),t.create(e,r)):t.remove(e),e.css("overflow","")}}function vn(e){e.addClass(W).wrapInner('<div class="'+T+'" style="height:'+mn(e)+'px;" />')}function mn(e){var n=et;if(a.paddingTop||a.paddingBottom){var t=e;t.hasClass(w)||(t=e.closest(y));var o=parseInt(t.css("padding-top"))+parseInt(t.css("padding-bottom"));n=et-o}return n}function gn(e,n){n?an($n):sn($n),$n.css(Fn(e)),setTimeout(function(){$n.removeClass(d)},10)}function Sn(n){var t=$n.find(y+'[data-anchor="'+n+'"]');return t.length||(t=e(y).eq(n-1)),t}function wn(e,n){var t=n.find(F),o=t.find(R+'[data-anchor="'+e+'"]');return o.length||(o=t.find(R).eq(e)),o}function yn(e,n){var t=Sn(e);"undefined"==typeof n&&(n=0),e===Kn||t.hasClass(p)?bn(t,n):Me(t,function(){bn(t,n)})}function bn(e,n){if("undefined"!=typeof n){var t=e.find(F),o=wn(n,e);o.length&&en(t,o)}}function xn(e,n){e.append('<div class="'+q+'"><ul></ul></div>');var t=e.find(Y);t.addClass(a.slidesNavPosition);for(var o=0;n>o;o++)t.find("ul").append('<li><a href="#"><span></span></a></li>');t.css("margin-left","-"+t.width()/2+"px"),t.find("li").first().find("a").addClass(p)}function Cn(e,n,t,o){var i="";a.anchors.length&&!a.lockAnchors&&(e?("undefined"!=typeof t&&(i=t),"undefined"==typeof n&&(n=e),_n=n,Tn(i+"/"+n)):"undefined"!=typeof e?(_n=n,Tn(t)):Tn(t)),In()}function Tn(e){if(a.recordHistory)location.hash=e;else if(Jn||Zn)n.history.replaceState(i,i,"#"+e);else{var t=n.location.href.split("#")[0];n.location.replace(t+"#"+e)}}function kn(e){var n=e.data("anchor"),t=e.index();return"undefined"==typeof n&&(n=t),n}function In(){var n=e(b),t=n.find(D),o=kn(n),i=kn(t),l=String(o);t.length&&(l=l+"-"+i),l=l.replace("/","-").replace("#","");var r=new RegExp("\\b\\s?"+h+"-[^\\s]+\\b","g");Xn[0].className=Xn[0].className.replace(r,""),Xn.addClass(h+"-"+l)}function Ln(){var e,o=t.createElement("p"),l={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};t.body.insertBefore(o,null);for(var r in l)o.style[r]!==i&&(o.style[r]="translate3d(1px,1px,1px)",e=n.getComputedStyle(o).getPropertyValue(l[r]));return t.body.removeChild(o),e!==i&&e.length>0&&"none"!==e}function An(){t.addEventListener?(t.removeEventListener("mousewheel",Ie,!1),t.removeEventListener("wheel",Ie,!1),t.removeEventListener("MozMousePixelScroll",Ie,!1)):t.detachEvent("onmousewheel",Ie)}function En(){var e,o="";n.addEventListener?e="addEventListener":(e="attachEvent",o="on");var l="onwheel"in t.createElement("div")?"wheel":t.onmousewheel!==i?"mousewheel":"DOMMouseScroll";"DOMMouseScroll"==l?t[e](o+"MozMousePixelScroll",Ie,!1):t[e](o+l,Ie,!1)}function Mn(){$n.on("mousedown",je).on("mouseup",Ke)}function Hn(){$n.off("mousedown",je).off("mouseup",Ke)}function On(){if(Jn||Zn){var n=zn();e(r).off("touchstart "+n.down).on("touchstart "+n.down,Te).off("touchmove "+n.move).on("touchmove "+n.move,be)}}function Bn(){if(Jn||Zn){var n=zn();e(r).off("touchstart "+n.down).off("touchmove "+n.move)}}function zn(){var e;return e=n.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function Rn(e){var n=[];return n.y="undefined"!=typeof e.pageY&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY,n.x="undefined"!=typeof e.pageX&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX,Zn&&Ce(e)&&a.scrollBar&&(n.y=e.touches[0].pageY,n.x=e.touches[0].pageX),n}function Dn(e,n){jn.setScrollingSpeed(0,"internal"),"undefined"!=typeof n&&(nt=!0),en(e.closest(F),e),"undefined"!=typeof n&&(nt=!1),jn.setScrollingSpeed(ut.scrollingSpeed,"internal")}function Pn(e){if(a.scrollBar)$n.scrollTop(e);else if(a.css3){var n="translate3d(0px, -"+e+"px, 0px)";gn(n,!1)}else $n.css("top",-e)}function Fn(e){return{"-webkit-transform":e,"-moz-transform":e,"-ms-transform":e,transform:e}}function Vn(e,n,t){switch(n){case"up":lt[t].up=e;break;case"down":lt[t].down=e;break;case"left":lt[t].left=e;break;case"right":lt[t].right=e;break;case"all":"m"==t?jn.setAllowScrolling(e):jn.setKeyboardScrolling(e)}}function Un(){Pn(0),$n.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){e(this).attr("src",e(this).data("src")),e(this).removeAttr("data-src")}),e(E+", "+Y+", "+j).remove(),e(y).css({height:"","background-color":"",padding:""}),e(R).css({width:""}),$n.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),Nn.css({overflow:"",height:""}),e("html").removeClass(u),Xn.removeClass(c),e.each(Xn.get(0).className.split(/\s+/),function(e,n){0===n.indexOf(h)&&Xn.removeClass(n)}),e(y+", "+R).each(function(){a.scrollOverflowHandler.remove(e(this)),e(this).removeClass(W+" "+p)}),sn($n),$n.find(k+", "+U+", "+F).each(function(){e(this).replaceWith(this.childNodes)}),Nn.scrollTop(0);var n=[w,z,V];e.each(n,function(n,t){e("."+t).removeClass(t)})}function Wn(e,n,t){a[e]=n,"internal"!==t&&(ut[e]=n)}function qn(){return e("html").hasClass(u)?void Yn("error","Fullpage.js can only be initialized once and you are doing it multiple times!"):(a.continuousVertical&&(a.loopTop||a.loopBottom)&&(a.continuousVertical=!1,Yn("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),a.scrollBar&&a.scrollOverflow&&Yn("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox"),a.continuousVertical&&a.scrollBar&&(a.continuousVertical=!1,Yn("warn","Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),void e.each(a.anchors,function(n,t){var o=te.find("[name]").filter(function(){return e(this).attr("name")&&e(this).attr("name").toLowerCase()==t.toLowerCase()}),i=te.find("[id]").filter(function(){return e(this).attr("id")&&e(this).attr("id").toLowerCase()==t.toLowerCase()});(i.length||o.length)&&(Yn("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),i.length&&Yn("error",'"'+t+'" is is being used by another element `id` property'),o.length&&Yn("error",'"'+t+'" is is being used by another element `name` property'))}))}function Yn(e,n){console&&console[e]&&console[e]("fullPage: "+n)}if(e("html").hasClass(u))return void qn();var Nn=e("html, body"),Xn=e("body"),jn=e.fn.fullpage;a=e.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:!0,scrollHorizontally:!0,interlockedSlides:!1,resetSliders:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowHandler:ie,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,sectionSelector:S,slideSelector:B,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null},a);var Kn,_n,Qn,Gn=!1,Jn=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),Zn="ontouchstart"in n||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,$n=e(this),et=ne.height(),nt=!1,tt=!0,ot=!0,it=[],lt={};lt.m={up:!0,down:!0,left:!0,right:!0},lt.k=e.extend(!0,{},lt.m);var rt,at,st,ct,dt,ft,ut=e.extend(!0,{},a);qn(),oe.click=Zn,oe=e.extend(oe,a.scrollOverflowOptions),e.extend(e.easing,{easeInOutCubic:function(e,n,t,o,i){return(n/=i/2)<1?o/2*n*n*n+t:o/2*((n-=2)*n*n+2)+t}}),jn.setAutoScrolling=function(n,t){Wn("autoScrolling",n,t);var o=e(b);a.autoScrolling&&!a.scrollBar?(Nn.css({overflow:"hidden",height:"100%"}),jn.setRecordHistory(ut.recordHistory,"internal"),$n.css({"-ms-touch-action":"none","touch-action":"none"}),o.length&&Pn(o.position().top)):(Nn.css({overflow:"visible",height:"initial"}),jn.setRecordHistory(!1,"internal"),$n.css({"-ms-touch-action":"","touch-action":""}),Pn(0),o.length&&Nn.scrollTop(o.position().top))},jn.setRecordHistory=function(e,n){Wn("recordHistory",e,n)},jn.setScrollingSpeed=function(e,n){Wn("scrollingSpeed",e,n)},jn.setFitToSection=function(e,n){Wn("fitToSection",e,n)},jn.setLockAnchors=function(e){a.lockAnchors=e},jn.setMouseWheelScrolling=function(e){e?(En(),Mn()):(An(),Hn())},jn.setAllowScrolling=function(n,t){"undefined"!=typeof t?(t=t.replace(/ /g,"").split(","),e.each(t,function(e,t){Vn(n,t,"m")})):n?(jn.setMouseWheelScrolling(!0),On()):(jn.setMouseWheelScrolling(!1),Bn())},jn.setKeyboardScrolling=function(n,t){"undefined"!=typeof t?(t=t.replace(/ /g,"").split(","),e.each(t,function(e,t){Vn(n,t,"k")})):a.keyboardScrolling=n},jn.moveSectionUp=function(){var n=e(b).prev(y);n.length||!a.loopTop&&!a.continuousVertical||(n=e(y).last()),n.length&&Me(n,null,!0)},jn.moveSectionDown=function(){var n=e(b).next(y);n.length||!a.loopBottom&&!a.continuousVertical||(n=e(y).first()),n.length&&Me(n,null,!1)},jn.silentMoveTo=function(e,n){jn.setScrollingSpeed(0,"internal"),jn.moveTo(e,n),jn.setScrollingSpeed(ut.scrollingSpeed,"internal")},jn.moveTo=function(e,n){var t=Sn(e);"undefined"!=typeof n?yn(e,n):t.length>0&&Me(t)},jn.moveSlideRight=function(e){Le("right",e)},jn.moveSlideLeft=function(e){Le("left",e)},jn.reBuild=function(n){if(!$n.hasClass(f)){nt=!0,et=ne.height(),e(y).each(function(){var n=e(this).find(F),t=e(this).find(R);a.verticalCentered&&e(this).find(k).css("height",mn(e(this))+"px"),e(this).css("height",et+"px"),a.scrollOverflow&&(t.length?t.each(function(){pn(e(this))}):pn(e(this))),t.length>1&&en(n,n.find(D))});var t=e(b),o=t.index(y);o&&jn.silentMoveTo(o+1),nt=!1,e.isFunction(a.afterResize)&&n&&a.afterResize.call($n),e.isFunction(a.afterReBuild)&&!n&&a.afterReBuild.call($n)}},jn.setResponsive=function(n){var t=Xn.hasClass(c);n?t||(jn.setAutoScrolling(!1,"internal"),jn.setFitToSection(!1,"internal"),e(E).hide(),Xn.addClass(c)):t&&(jn.setAutoScrolling(ut.autoScrolling,"internal"),jn.setFitToSection(ut.autoScrolling,"internal"),e(E).show(),Xn.removeClass(c))},jn.getFullpageData=function(){return{options:a,internals:{getXmovement:hn,removeAnimation:sn,getTransforms:Fn,lazyLoad:De,addAnimation:an,performHorizontalMove:tn,silentLandscapeScroll:Dn}}},e(this).length&&(_("fp_continuousHorizontalExtension"),_("fp_scrollHorizontallyExtension"),_("fp_resetSlidersExtension"),_("fp_interlockedSlidesExtension"),s(),X());var ht=!1,pt=0,vt=0,mt=0,gt=0,St=0,wt=(new Date).getTime(),yt=0,bt=0,xt=et;jn.destroy=function(n){jn.setAutoScrolling(!1,"internal"),jn.setAllowScrolling(!1),jn.setKeyboardScrolling(!1),$n.addClass(f),clearTimeout(st),clearTimeout(at),clearTimeout(rt),clearTimeout(ct),clearTimeout(dt),ne.off("scroll",ge).off("hashchange",qe).off("resize",ln),te.off("click",E+" a").off("mouseenter",E+" li").off("mouseleave",E+" li").off("click",N).off("mouseover",a.normalScrollElements).off("mouseout",a.normalScrollElements),e(y).off("click",j),clearTimeout(st),clearTimeout(at),n&&Un()}},"undefined"!=typeof IScroll&&(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 ie={refreshId:null,iScrollInstances:[],onLeave:function(){var n=e(b).find(s).data("iscrollInstance");"undefined"!=typeof n&&n&&n.wheelOff()},afterLoad:function(){var n=e(b).find(s).data("iscrollInstance");"undefined"!=typeof n&&n&&n.wheelOn()},create:function(n,t){var o=n.find(s);o.height(t),o.each(function(){var n=jQuery(this),t=n.data("iscrollInstance");t&&e.each(ie.iScrollInstances,function(){e(this).destroy()}),t=new IScroll(n.get(0),oe),ie.iScrollInstances.push(t),n.data("iscrollInstance",t)})},isScrolled:function(e,n){var t=n.data("iscrollInstance");return t?"top"===e?t.y>=0&&!n.scrollTop():"bottom"===e?0-t.y+n.scrollTop()+1+n.innerHeight()>=n[0].scrollHeight:void 0:!0},scrollable:function(e){return e.find(F).length?e.find(D).find(s):e.find(s)},scrollHeight:function(e){return e.find(s).children().first().get(0).scrollHeight},remove:function(e){var n=e.find(s);if(n.length){var t=n.data("iscrollInstance");t.destroy(),n.data("iscrollInstance",null)}e.find(s).children().first().children().first().unwrap().unwrap()},update:function(n,t){clearTimeout(ie.refreshId),ie.refreshId=setTimeout(function(){e.each(ie.iScrollInstances,function(){e(this).get(0).refresh()})},150),n.find(s).css("height",t+"px").parent().css("height",t+"px")},wrapContent:function(){return'<div class="'+a+'"><div class="fp-scroller"></div></div>'}}});
//# sourceMappingURL=jquery.fullpage.min.js.map