-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.fullPage.min.js
52 lines (52 loc) · 22.8 KB
/
jquery.fullPage.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* fullPage 2.6.5
* https://github.com/alvarotrigo/fullPage.js
* MIT licensed
*
* Copyright (C) 2015 alvarotrigo.com - A project by Alvaro Trigo
*/
(function(c,h){"function"===typeof define&&define.amd?define(["jquery"],function(k){return h(k,c,c.document,c.Math)}):"undefined"!==typeof exports?module.exports=h(require("jquery"),c,c.document,c.Math):h(jQuery,c,c.document,c.Math)})("undefined"!==typeof window?window:this,function(c,h,k,m,I){var l=c(h),r=c(k);c.fn.fullpage=function(d){function Ha(a){a.find(".fp-slides").after('<div class="fp-controlArrow fp-prev"></div><div class="fp-controlArrow fp-next"></div>');"#fff"!=d.controlArrowColor&&(a.find(".fp-controlArrow.fp-next").css("border-color",
"transparent transparent transparent "+d.controlArrowColor),a.find(".fp-controlArrow.fp-prev").css("border-color","transparent "+d.controlArrowColor+" transparent transparent"));d.loopHorizontal||a.find(".fp-controlArrow.fp-prev").hide()}function Ia(){q.append('<div id="fp-nav"><ul></ul></div>');y=c("#fp-nav");y.addClass(function(){return d.showActiveTooltip?"fp-show-active "+d.navigationPosition:d.navigationPosition});for(var a=0;a<c(".fp-section").length;a++){var b="";d.anchors.length&&(b=d.anchors[a]);
var b='<li><a href="#'+b+'"><span></span></a>',g=d.navigationTooltips[a];"undefined"!==typeof g&&""!==g&&(b+='<div class="fp-tooltip '+d.navigationPosition+'">'+g+"</div>");b+="</li>";y.find("ul").append(b)}}function da(){c(".fp-section").each(function(){var a=c(this).find(".fp-slide");a.length?a.each(function(){J(c(this))}):J(c(this))});ea()}function ea(){var a=c(".fp-section.active");a.find(".fp-scrollable").mouseover();c.isFunction(d.afterLoad)&&d.afterLoad.call(a,a.data("anchor"),a.index(".fp-section")+
1);c.isFunction(d.afterRender)&&d.afterRender.call(this)}function fa(){var a;if(!d.autoScrolling||d.scrollBar){for(var b=l.scrollTop(),g=0,n=m.abs(b-k.querySelectorAll(".fp-section")[0].offsetTop),e=k.querySelectorAll(".fp-section"),f=0;f<e.length;++f){var h=m.abs(b-e[f].offsetTop);h<n&&(g=f,n=h)}a=c(e).eq(g)}if(!d.autoScrolling||d.scrollBar){if(!a.hasClass("active")){U=!0;b=c(".fp-section.active");g=b.index(".fp-section")+1;n=V(a);e=a.data("anchor");f=a.index(".fp-section")+1;h=a.find(".fp-slide.active");
if(h.length)var p=h.data("anchor"),q=h.index();t&&(a.addClass("active").siblings().removeClass("active"),c.isFunction(d.onLeave)&&d.onLeave.call(b,g,f,n),c.isFunction(d.afterLoad)&&d.afterLoad.call(a,e,f),K(e,f-1),d.anchors.length&&(z=e,W(q,p,e,f)));clearTimeout(ga);ga=setTimeout(function(){U=!1},100)}d.fitToSection&&(clearTimeout(ha),ha=setTimeout(function(){t&&(c(".fp-section.active").is(a)&&(w=!0),A(a),w=!1)},1E3))}}function ia(a){return a.find(".fp-slides").length?a.find(".fp-slide.active").find(".fp-scrollable"):
a.find(".fp-scrollable")}function L(a,b){if(p[a]){var d,c;"down"==a?(d="bottom",c=e.moveSectionDown):(d="top",c=e.moveSectionUp);if(0<b.length)if(d="top"===d?!b.scrollTop():"bottom"===d?b.scrollTop()+1+b.innerHeight()>=b[0].scrollHeight:void 0,d)c();else return!0;else c()}}function Ja(a){var b=a.originalEvent;if(!ja(a.target)&&X(b)){d.autoScrolling&&a.preventDefault();a=c(".fp-section.active");var g=ia(a);t&&!B&&(b=ka(b),E=b.y,M=b.x,a.find(".fp-slides").length&&m.abs(N-M)>m.abs(F-E)?m.abs(N-M)>l.width()/
100*d.touchSensitivity&&(N>M?p.right&&e.moveSlideRight():p.left&&e.moveSlideLeft()):d.autoScrolling&&m.abs(F-E)>l.height()/100*d.touchSensitivity&&(F>E?L("down",g):E>F&&L("up",g)))}}function ja(a,b){b=b||0;var g=c(a).parent();return b<d.normalScrollElementTouchThreshold&&g.is(d.normalScrollElements)?!0:b==d.normalScrollElementTouchThreshold?!1:ja(g,++b)}function X(a){return"undefined"===typeof a.pointerType||"mouse"!=a.pointerType}function Ka(a){a=a.originalEvent;d.fitToSection&&v.stop();X(a)&&(a=
ka(a),F=a.y,N=a.x)}function la(a,b){for(var d=0,c=a.slice(m.max(a.length-b,1)),e=0;e<c.length;e++)d+=c[e];return m.ceil(d/b)}function C(a){var b=(new Date).getTime();if(d.autoScrolling&&!Y){a=h.event||a;var g=a.wheelDelta||-a.deltaY||-a.detail,n=m.max(-1,m.min(1,g));149<D.length&&D.shift();D.push(m.abs(g));d.scrollBar&&(a.preventDefault?a.preventDefault():a.returnValue=!1);a=c(".fp-section.active");a=ia(a);g=b-ma;ma=b;200<g&&(D=[]);t&&(b=la(D,10),g=la(D,70),b>=g&&(0>n?L("down",a):L("up",a)));return!1}d.fitToSection&&
v.stop()}function na(a){var b=c(".fp-section.active").find(".fp-slides");if(b.length&&!B){var g=b.find(".fp-slide.active"),n=null,n="prev"===a?g.prev(".fp-slide"):g.next(".fp-slide");if(!n.length){if(!d.loopHorizontal)return;n="prev"===a?g.siblings(":last"):g.siblings(":first")}B=!0;G(b,n)}}function oa(){c(".fp-slide.active").each(function(){O(c(this),"internal")})}function A(a,b,g){var n=a.position();if("undefined"!==typeof n&&(b={element:a,callback:b,isMovementUp:g,dest:n,dtop:n.top,yMovement:V(a),
anchorLink:a.data("anchor"),sectionIndex:a.index(".fp-section"),activeSlide:a.find(".fp-slide.active"),activeSection:c(".fp-section.active"),leavingSection:c(".fp-section.active").index(".fp-section")+1,localIsResizing:w},!(b.activeSection.is(a)&&!w||d.scrollBar&&l.scrollTop()===b.dtop))){if(b.activeSlide.length)var e=b.activeSlide.data("anchor"),f=b.activeSlide.index();d.autoScrolling&&d.continuousVertical&&"undefined"!==typeof b.isMovementUp&&(!b.isMovementUp&&"up"==b.yMovement||b.isMovementUp&&
"down"==b.yMovement)&&(b.isMovementUp?c(".fp-section.active").before(b.activeSection.nextAll(".fp-section")):c(".fp-section.active").after(b.activeSection.prevAll(".fp-section").get().reverse()),x(c(".fp-section.active").position().top),oa(),b.wrapAroundElements=b.activeSection,b.dest=b.element.position(),b.dtop=b.dest.top,b.yMovement=V(b.element));a.addClass("active").siblings().removeClass("active");t=!1;W(f,e,b.anchorLink,b.sectionIndex);c.isFunction(d.onLeave)&&!b.localIsResizing&&d.onLeave.call(b.activeSection,
b.leavingSection,b.sectionIndex+1,b.yMovement);La(b);z=b.anchorLink;K(b.anchorLink,b.sectionIndex)}}function La(a){if(d.css3&&d.autoScrolling&&!d.scrollBar)pa("translate3d(0px, -"+a.dtop+"px, 0px)",!0),setTimeout(function(){qa(a)},d.scrollingSpeed);else{var b=Ma(a);c(b.element).animate(b.options,d.scrollingSpeed,d.easing).promise().done(function(){qa(a)})}}function Ma(a){var b={};d.autoScrolling&&!d.scrollBar?(b.options={top:-a.dtop},b.element=".fullpage-wrapper"):(b.options={scrollTop:a.dtop},b.element=
"html, body");return b}function qa(a){a.wrapAroundElements&&a.wrapAroundElements.length&&(a.isMovementUp?c(".fp-section:first").before(a.wrapAroundElements):c(".fp-section:last").after(a.wrapAroundElements),x(c(".fp-section.active").position().top),oa());a.element.find(".fp-scrollable").mouseover();c.isFunction(d.afterLoad)&&!a.localIsResizing&&d.afterLoad.call(a.element,a.anchorLink,a.sectionIndex+1);t=!0;c.isFunction(a.callback)&&a.callback.call(this)}function ra(){if(!U){var a=h.location.hash.replace("#",
"").split("/"),b=a[0],a=a[1];if(b.length){var d="undefined"===typeof z,c="undefined"===typeof z&&"undefined"===typeof a&&!B;(b&&b!==z&&!d||c||!B&&Z!=a)&&aa(b,a)}}}function Na(a){t&&(a.pageY<P?e.moveSectionUp():a.pageY>P&&e.moveSectionDown());P=a.pageY}function G(a,b){var g=b.position(),e=b.index(),f=a.closest(".fp-section"),h=f.index(".fp-section"),k=f.data("anchor"),l=f.find(".fp-slidesNav"),p=sa(b),q=w;if(d.onSlideLeave){var u=f.find(".fp-slide.active"),r=u.index(),t;t=r==e?"none":r>e?"left":"right";
q||"none"===t||c.isFunction(d.onSlideLeave)&&d.onSlideLeave.call(u,k,h+1,r,t)}b.addClass("active").siblings().removeClass("active");!d.loopHorizontal&&d.controlArrows&&(f.find(".fp-controlArrow.fp-prev").toggle(0!==e),f.find(".fp-controlArrow.fp-next").toggle(!b.is(":last-child")));f.hasClass("active")&&W(e,p,k,h);var v=function(){q||c.isFunction(d.afterSlideLoad)&&d.afterSlideLoad.call(b,k,h+1,p,e);B=!1};d.css3?(g="translate3d(-"+m.round(g.left)+"px, 0px, 0px)",ta(a.find(".fp-slidesContainer"),0<
d.scrollingSpeed).css(ua(g)),setTimeout(function(){v()},d.scrollingSpeed,d.easing)):a.animate({scrollLeft:m.round(g.left)},d.scrollingSpeed,d.easing,function(){v()});l.find(".active").removeClass("active");l.find("li").eq(e).find("a").addClass("active")}function va(){wa();if(Q){var a=c(k.activeElement);a.is("textarea")||a.is("input")||a.is("select")||(a=l.height(),m.abs(a-ba)>20*m.max(ba,a)/100&&(e.reBuild(!0),ba=a))}else clearTimeout(xa),xa=setTimeout(function(){e.reBuild(!0)},350)}function wa(){if(d.responsive){var a=
f.hasClass("fp-responsive");l.width()<d.responsive?a||(e.setAutoScrolling(!1,"internal"),e.setFitToSection(!1,"internal"),c("#fp-nav").hide(),f.addClass("fp-responsive")):a&&(e.setAutoScrolling(H.autoScrolling,"internal"),e.setFitToSection(H.autoScrolling,"internal"),c("#fp-nav").show(),f.removeClass("fp-responsive"))}}function ta(a){var b="all "+d.scrollingSpeed+"ms "+d.easingcss3;a.removeClass("fp-notransition");return a.css({"-webkit-transition":b,transition:b})}function Oa(a,b){if(825>a||900>
b){var d=m.min(100*a/825,100*b/900).toFixed(2);q.css("font-size",d+"%")}else q.css("font-size","100%")}function K(a,b){d.menu&&(c(d.menu).find(".active").removeClass("active"),c(d.menu).find('[data-menuanchor="'+a+'"]').addClass("active"));d.navigation&&(c("#fp-nav").find(".active").removeClass("active"),a?c("#fp-nav").find('a[href="#'+a+'"]').addClass("active"):c("#fp-nav").find("li").eq(b).find("a").addClass("active"))}function V(a){var b=c(".fp-section.active").index(".fp-section");a=a.index(".fp-section");
return b==a?"none":b>a?"up":"down"}function J(a){a.css("overflow","hidden");var b=a.closest(".fp-section"),c=a.find(".fp-scrollable"),e;c.length?e=c.get(0).scrollHeight:(e=a.get(0).scrollHeight,d.verticalCentered&&(e=a.find(".fp-tableCell").get(0).scrollHeight));b=u-parseInt(b.css("padding-bottom"))-parseInt(b.css("padding-top"));e>b?c.length?c.css("height",b+"px").parent().css("height",b+"px"):(d.verticalCentered?a.find(".fp-tableCell").wrapInner('<div class="fp-scrollable" />'):a.wrapInner('<div class="fp-scrollable" />'),
a.find(".fp-scrollable").slimScroll({allowPageScroll:!0,height:b+"px",size:"10px",alwaysVisible:!0})):ya(a);a.css("overflow","")}function ya(a){a.find(".fp-scrollable").children().first().unwrap().unwrap();a.find(".slimScrollBar").remove();a.find(".slimScrollRail").remove()}function za(a){a.addClass("fp-table").wrapInner('<div class="fp-tableCell" style="height:'+Aa(a)+'px;" />')}function Aa(a){var b=u;if(d.paddingTop||d.paddingBottom)b=a,b.hasClass("fp-section")||(b=a.closest(".fp-section")),a=parseInt(b.css("padding-top"))+
parseInt(b.css("padding-bottom")),b=u-a;return b}function pa(a,b){b?ta(f):f.addClass("fp-notransition");f.css(ua(a));setTimeout(function(){f.removeClass("fp-notransition")},10)}function ca(a){var b=c('.fp-section[data-anchor="'+a+'"]');b.length||(b=c(".fp-section").eq(a-1));return b}function Ba(a,b){var d=b.find(".fp-slides"),c=d.find('.fp-slide[data-anchor="'+a+'"]');c.length||(c=d.find(".fp-slide").eq(a));return c}function aa(a,b){var d=ca(a);"undefined"===typeof b&&(b=0);a===z||d.hasClass("active")?
Ca(d,b):A(d,function(){Ca(d,b)})}function Ca(a,b){if("undefined"!==typeof b){var d=a.find(".fp-slides"),c=Ba(b,a);c.length&&G(d,c)}}function Pa(a,b){a.append('<div class="fp-slidesNav"><ul></ul></div>');var c=a.find(".fp-slidesNav");c.addClass(d.slidesNavPosition);for(var e=0;e<b;e++)c.find("ul").append('<li><a href="#"><span></span></a></li>');c.css("margin-left","-"+c.width()/2+"px");c.find("li").first().find("a").addClass("active")}function W(a,b,c,e){e="";d.anchors.length&&(a?("undefined"!==typeof c&&
(e=c),"undefined"===typeof b&&(b=a),Z=b,Da(e+"/"+b)):("undefined"!==typeof a&&(Z=b),Da(c)));Ea()}function Da(a){if(d.recordHistory)location.hash=a;else if(Q||R)history.replaceState(I,I,"#"+a);else{var b=h.location.href.split("#")[0];h.location.replace(b+"#"+a)}}function sa(a){var b=a.data("anchor");a=a.index();"undefined"===typeof b&&(b=a);return b}function Ea(){var a=c(".fp-section.active"),b=a.find(".fp-slide.active"),e=a.data("anchor"),f=sa(b),a=a.index(".fp-section"),a=String(a);d.anchors.length&&
(a=e);b.length&&(a=a+"-"+f);a=a.replace("/","-").replace("#","");q[0].className=q[0].className.replace(RegExp("\\b\\s?fp-viewing-[^\\s]+\\b","g"),"");q.addClass("fp-viewing-"+a)}function Qa(){var a=k.createElement("p"),b,c={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};k.body.insertBefore(a,null);for(var d in c)a.style[d]!==I&&(a.style[d]="translate3d(1px,1px,1px)",b=h.getComputedStyle(a).getPropertyValue(c[d]));
k.body.removeChild(a);return b!==I&&0<b.length&&"none"!==b}function Ra(){if(Q||R){var a=Fa();c(".fullpage-wrapper").off("touchstart "+a.down).on("touchstart "+a.down,Ka);c(".fullpage-wrapper").off("touchmove "+a.move).on("touchmove "+a.move,Ja)}}function Sa(){if(Q||R){var a=Fa();c(".fullpage-wrapper").off("touchstart "+a.down);c(".fullpage-wrapper").off("touchmove "+a.move)}}function Fa(){return h.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function ka(a){var b=
[];b.y="undefined"!==typeof a.pageY&&(a.pageY||a.pageX)?a.pageY:a.touches[0].pageY;b.x="undefined"!==typeof a.pageX&&(a.pageY||a.pageX)?a.pageX:a.touches[0].pageX;R&&X(a)&&(b.y=a.touches[0].pageY,b.x=a.touches[0].pageX);return b}function O(a,b){e.setScrollingSpeed(0,"internal");"undefined"!==typeof b&&(w=!0);G(a.closest(".fp-slides"),a);"undefined"!==typeof b&&(w=!1);e.setScrollingSpeed(H.scrollingSpeed,"internal")}function x(a){d.scrollBar?f.scrollTop(a):d.css3?pa("translate3d(0px, -"+a+"px, 0px)",
!1):f.css("top",-a)}function ua(a){return{"-webkit-transform":a,"-moz-transform":a,"-ms-transform":a,transform:a}}function Ta(){x(0);c("#fp-nav, .fp-slidesNav, .fp-controlArrow").remove();c(".fp-section").css({height:"","background-color":"",padding:""});c(".fp-slide").css({width:""});f.css({height:"",position:"","-ms-touch-action":"","touch-action":""});c(".fp-section, .fp-slide").each(function(){ya(c(this));c(this).removeClass("fp-table active")});f.addClass("fp-notransition");f.find(".fp-tableCell, .fp-slidesContainer, .fp-slides").each(function(){c(this).replaceWith(this.childNodes)});
v.scrollTop(0)}function S(a,b,c){d[a]=b;"internal"!==c&&(H[a]=b)}function T(a,b){console&&console[a]&&console[a]("fullPage: "+b)}var v=c("html, body"),q=c("body"),e=c.fn.fullpage;d=c.extend({menu:!1,anchors:[],navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,
normalScrollElements:null,scrollOverflow:!1,touchSensitivity:5,normalScrollElementTouchThreshold:5,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,resize:!1,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,sectionSelector:".section",slideSelector:".slide",afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null},d);(function(){d.continuousVertical&&
(d.loopTop||d.loopBottom)&&(d.continuousVertical=!1,T("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled"));d.continuousVertical&&d.scrollBar&&(d.continuousVertical=!1,T("warn","Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled"));c.each(d.anchors,function(a,b){(c("#"+b).length||c('[name="'+b+'"]').length)&&T("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE).")})})();
c.extend(c.easing,{easeInOutCubic:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c}});c.extend(c.easing,{easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c}});e.setAutoScrolling=function(a,b){S("autoScrolling",a,b);var g=c(".fp-section.active");d.autoScrolling&&!d.scrollBar?(v.css({overflow:"hidden",height:"100%"}),e.setRecordHistory(d.recordHistory,"internal"),f.css({"-ms-touch-action":"none","touch-action":"none"}),g.length&&x(g.position().top)):(v.css({overflow:"visible",
height:"initial"}),e.setRecordHistory(!1,"internal"),f.css({"-ms-touch-action":"","touch-action":""}),x(0),g.length&&v.scrollTop(g.position().top))};e.setRecordHistory=function(a,b){S("recordHistory",a,b)};e.setScrollingSpeed=function(a,b){S("scrollingSpeed",a,b)};e.setFitToSection=function(a,b){S("fitToSection",a,b)};e.setMouseWheelScrolling=function(a){a?k.addEventListener?(k.addEventListener("mousewheel",C,!1),k.addEventListener("wheel",C,!1)):k.attachEvent("onmousewheel",C):k.addEventListener?
(k.removeEventListener("mousewheel",C,!1),k.removeEventListener("wheel",C,!1)):k.detachEvent("onmousewheel",C)};e.setAllowScrolling=function(a,b){"undefined"!=typeof b?(b=b.replace(/ /g,"").split(","),c.each(b,function(b,c){switch(c){case "up":p.up=a;break;case "down":p.down=a;break;case "left":p.left=a;break;case "right":p.right=a;break;case "all":e.setAllowScrolling(a)}})):a?(e.setMouseWheelScrolling(!0),Ra()):(e.setMouseWheelScrolling(!1),Sa())};e.setKeyboardScrolling=function(a){d.keyboardScrolling=
a};e.moveSectionUp=function(){var a=c(".fp-section.active").prev(".fp-section");a.length||!d.loopTop&&!d.continuousVertical||(a=c(".fp-section").last());a.length&&A(a,null,!0)};e.moveSectionDown=function(){var a=c(".fp-section.active").next(".fp-section");a.length||!d.loopBottom&&!d.continuousVertical||(a=c(".fp-section").first());a.length&&A(a,null,!1)};e.silentMoveTo=function(a,b){e.setScrollingSpeed(0,"internal");e.moveTo(a);e.setScrollingSpeed(H.scrollingSpeed,"internal");if("undefined"!==typeof b){var c=
ca(a),c=Ba(b,c);O(c)}};e.moveTo=function(a,b){var c=ca(a);"undefined"!==typeof b?aa(a,b):0<c.length&&A(c)};e.moveSlideRight=function(){na("next")};e.moveSlideLeft=function(){na("prev")};e.reBuild=function(a){if(!f.hasClass("fp-destroyed")){w=!0;var b=l.width();u=l.height();d.resize&&Oa(u,b);c(".fp-section").each(function(){var a=c(this).find(".fp-slides"),b=c(this).find(".fp-slide");d.verticalCentered&&c(this).find(".fp-tableCell").css("height",Aa(c(this))+"px");c(this).css("height",u+"px");d.scrollOverflow&&
(b.length?b.each(function(){J(c(this))}):J(c(this)));1<b.length&&G(a,a.find(".fp-slide.active"))});(b=c(".fp-section.active").index(".fp-section"))&&e.silentMoveTo(b+1);w=!1;c.isFunction(d.afterResize)&&a&&d.afterResize.call(f);c.isFunction(d.afterReBuild)&&!a&&d.afterReBuild.call(f)}};var B=!1,Q=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),R="ontouchstart"in h||0<navigator.msMaxTouchPoints||navigator.maxTouchPoints,
f=c(this),u=l.height(),w=!1,z,Z,t=!0,D=[],y,Y,p={up:!0,down:!0,left:!0,right:!0},H=c.extend(!0,{},d);c(this).length?(f.css({height:"100%",position:"relative"}),f.addClass("fullpage-wrapper"),c("html").addClass("fp-enabled")):T("error","Error! Fullpage.js needs to be initialized with a selector. For example: $('#myContainer').fullpage();");d.css3&&(d.css3=Qa());e.setAllowScrolling(!0);f.removeClass("fp-destroyed");c(d.sectionSelector).each(function(){c(this).addClass("fp-section")});c(d.slideSelector).each(function(){c(this).addClass("fp-slide")});
d.navigation&&Ia();c(".fp-section").each(function(a){var b=c(this),e=c(this).find(".fp-slide"),f=e.length;a||0!==c(".fp-section.active").length||c(this).addClass("active");c(this).css("height",u+"px");d.paddingTop&&c(this).css("padding-top",d.paddingTop);d.paddingBottom&&c(this).css("padding-bottom",d.paddingBottom);"undefined"!==typeof d.sectionsColor[a]&&c(this).css("background-color",d.sectionsColor[a]);"undefined"!==typeof d.anchors[a]&&(c(this).attr("data-anchor",d.anchors[a]),c(this).hasClass("active")&&
K(d.anchors[a],a));if(0<f){a=100*f;var h=100/f;e.wrapAll('<div class="fp-slidesContainer" />');e.parent().wrap('<div class="fp-slides" />');c(this).find(".fp-slidesContainer").css("width",a+"%");d.controlArrows&&1<f&&Ha(c(this));d.slidesNavigation&&Pa(c(this),f);e.each(function(a){c(this).css("width",h+"%");d.verticalCentered&&za(c(this))});b=b.find(".fp-slide.active");b.length?O(b):e.eq(0).addClass("active")}else d.verticalCentered&&za(c(this))}).promise().done(function(){e.setAutoScrolling(d.autoScrolling,
"internal");var a=c(".fp-section.active").find(".fp-slide.active");a.length&&(0!==c(".fp-section.active").index(".fp-section")||0===c(".fp-section.active").index(".fp-section")&&0!==a.index())&&O(a);d.fixedElements&&d.css3&&c(d.fixedElements).appendTo(q);d.navigation&&(y.css("margin-top","-"+y.height()/2+"px"),y.find("li").eq(c(".fp-section.active").index(".fp-section")).find("a").addClass("active"));d.menu&&d.css3&&c(d.menu).closest(".fullpage-wrapper").length&&c(d.menu).appendTo(q);d.scrollOverflow?
("complete"===k.readyState&&da(),l.on("load",da)):ea();wa();if(!d.animateAnchor&&(a=h.location.hash.replace("#","").split("/")[0],a.length)){var b=c('[data-anchor="'+a+'"]');b.length&&(d.autoScrolling?x(b.position().top):(x(0),v.scrollTop(b.position().top)),K(a,null),c.isFunction(d.afterLoad)&&d.afterLoad.call(b,a,b.index(".fp-section")+1),b.addClass("active").siblings().removeClass("active"))}Ea();l.on("load",function(){var a=h.location.hash.replace("#","").split("/"),b=a[0],a=a[1];b&&aa(b,a)})});
var ga,ha,U=!1;l.on("scroll",fa);var F=0,N=0,E=0,M=0,ma=(new Date).getTime();l.on("hashchange",ra);r.keydown(function(a){clearTimeout(Ga);Y=a.ctrlKey;var b=c(k.activeElement);b.is("textarea")||b.is("input")||b.is("select")||!d.keyboardScrolling||!d.autoScrolling||(-1<c.inArray(a.which,[40,38,32,33,34])&&a.preventDefault(),Ga=setTimeout(function(){var b=a.shiftKey;switch(a.which){case 38:case 33:e.moveSectionUp();break;case 32:if(b){e.moveSectionUp();break}case 40:case 34:e.moveSectionDown();break;
case 36:e.moveTo(1);break;case 35:e.moveTo(c(".fp-section").length);break;case 37:e.moveSlideLeft();break;case 39:e.moveSlideRight()}},150))});r.keyup(function(a){Y=a.ctrlKey});var Ga;f.mousedown(function(a){2==a.which&&(P=a.pageY,f.on("mousemove",Na))});f.mouseup(function(a){2==a.which&&f.off("mousemove")});var P=0;r.on("click touchstart","#fp-nav a",function(a){a.preventDefault();a=c(this).parent().index();A(c(".fp-section").eq(a))});r.on("click touchstart",".fp-slidesNav a",function(a){a.preventDefault();
a=c(this).closest(".fp-section").find(".fp-slides");var b=a.find(".fp-slide").eq(c(this).closest("li").index());G(a,b)});d.normalScrollElements&&(r.on("mouseenter",d.normalScrollElements,function(){e.setMouseWheelScrolling(!1)}),r.on("mouseleave",d.normalScrollElements,function(){e.setMouseWheelScrolling(!0)}));c(".fp-section").on("click touchstart",".fp-controlArrow",function(){c(this).hasClass("fp-prev")?p.left&&e.moveSlideLeft():p.right&&e.moveSlideRight()});l.resize(va);var ba=u,xa;e.destroy=
function(a){e.setAutoScrolling(!1,"internal");e.setAllowScrolling(!1);e.setKeyboardScrolling(!1);f.addClass("fp-destroyed");l.off("scroll",fa).off("hashchange",ra).off("resize",va);r.off("click","#fp-nav a").off("mouseenter","#fp-nav li").off("mouseleave","#fp-nav li").off("click",".fp-slidesNav a").off("mouseover",d.normalScrollElements).off("mouseout",d.normalScrollElements);c(".fp-section").off("click",".fp-controlArrow");a&&Ta()}}});