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