/*! * fullpage 2.7.1 * https://github.com/alvarotrigo/fullpage.js * @license mit licensed * * copyright (c) 2015 alvarotrigo.com - a project by alvaro trigo */ (function(c,l){"function"===typeof define&&define.amd?define(["jquery"],function(m){return l(m,c,c.document,c.math)}):"undefined"!==typeof exports?module.exports=l(require("jquery"),c,c.document,c.math):l(jquery,c,c.document,c.math)})("undefined"!==typeof window?window:this,function(c,l,m,p,h){var n=c(l),w=c(m);c.fn.fullpage=function(d){function la(){h.css({height:"100%",position:"relative"});h.addclass("fullpage-wrapper");c("html").addclass("fp-enabled");d.css3&&(d.css3=ma());d.anchors.length||(d.anchors= c("[data-anchor]").map(function(){return c(this).data("anchor").tostring()}).get());e.setallowscrolling(!0);h.removeclass("fp-destroyed");na();c(".fp-section").each(function(a){var b=c(this),e=b.find(".fp-slide"),h=e.length;a||0!==c(".fp-section.active").length||b.addclass("active");b.css("height",q+"px");d.paddingtop&&b.css("padding-top",d.paddingtop);d.paddingbottom&&b.css("padding-bottom",d.paddingbottom);"undefined"!==typeof d.sectionscolor[a]&&b.css("background-color",d.sectionscolor[a]);"undefined"!== typeof d.anchors[a]&&(b.attr("data-anchor",d.anchors[a]),b.hasclass("active")&&i(d.anchors[a],a));d.menu&&d.css3&&c(d.menu).closest(".fullpage-wrapper").length&&c(d.menu).appendto(r);0');b.parent().wrap('
');a.find(".fp-slidescontainer").css("width",f+"%");1
');"#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 pa(){r.append('
');var a=c("#dn-nav");a.addclass(function(){return d.showactivetooltip?"fp-show-active "+d.navigationposition:d.navigationposition});for(var b=0;b',f=d.navigationtooltips[b];"undefined"!==typeof f&&""!== f&&(g+='
'+f+"
");g+="";a.find("ul").append(g)}c("#dn-nav").css("margin-top","-"+c("#dn-nav").height()/2+"px");c("#dn-nav").find("li").eq(c(".fp-section.active").index(".fp-section")).find("a").addclass("active")}function ja(){c(".fp-section").each(function(){var a=c(this).find(".fp-slide");a.length?a.each(function(){j(c(this))}):j(c(this))});ka()}function ka(){var a=c(".fp-section.active"),b=a.find("slides_wrapper"),g=a.find(".fp-scrollable"); b.length&&(g=b.find(".fp-slide.active"));g.mouseover();k(a);na(a);c.isfunction(d.afterload)&&d.afterload.call(a,a.data("anchor"),a.index(".fp-section")+1);c.isfunction(d.afterrender)&&d.afterrender.call(h)}function oa(){var a;if(!d.autoscrolling||d.scrollbar){for(var b=n.scrolltop(),g=0,f=p.abs(b-m.queryselectorall(".fp-section")[0].offsettop),h=m.queryselectorall(".fp-section"),k=0;k= b[0].scrollheight:void 0,d)c();else return!0;else c()}}function sa(a){var b=a.originalevent;if(!qa(a.target)&&ba(b)){d.autoscrolling&&a.preventdefault();a=c(".fp-section.active");var g=pa(a);y&&!z&&(b=ra(b),d=b.y,m=b.x,a.find(".fp-slides").length&&p.abs(n-m)>p.abs(e-d)?p.abs(n-m)>n.width()/100*d.touchsensitivity&&(n>m?k.m.right&&e.moveslideright():k.m.left&&e.moveslideleft()):d.autoscrolling&&p.abs(e-d)>n.height()/100*d.touchsensitivity&&(e>d?l("down",g):d>e&&l("up",g)))}}function qa(a,b){b=b||0; var g=c(a).parent();return b=g&&(0>f?l("down",a):l("up",a)));return!1}d.fittosection&&t.stop()}function ua(a){var b=c(".fp-section.active").find(".fp-slides"),g=b.find(".fp-slide").length;if(!(!b.length||z||2>g)){var g=b.find(".fp-slide.active"),f=null,f="prev"===a?g.prev(".fp-slide"): g.next(".fp-slide");if(!f.length){if(!d.loophorizontal)return;f="prev"===a?g.siblings(":last"):g.siblings(":first")}z=!0;f(b,f)}}function va(){c(".fp-slide.active").each(function(){u(c(this),"internal")})}function b(a,b,g){requestanimframe(function(){var f=a.position();if("undefined"!==typeof f){var e=a.hasclass("fp-auto-height")?f.top==0?0:f.top-q+a.height():f.top,f={element:a,callback:b,ismovementup:g,dest:f,dtop:e,ymovement:x(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:v};if(!(f.activesection.is(a)&&!v||d.scrollbar&&n.scrolltop()===f.dtop&&!a.hasclass("fp-auto-height"))){if(f.activeslide.length)var h=f.activeslide.data("anchor"),k=f.activeslide.index();d.autoscrolling&&d.continuousvertical&&"undefined"!==typeof f.ismovementup&&(!f.ismovementup&&"up"==f.ymovement||f.ismovementup&&"down"==f.ymovement)&&(f.ismovementup?c(".fp-section.active").before(f.activesection.nextall(".fp-section")): c(".fp-section.active").after(f.activesection.prevall(".fp-section").get().reverse()),x(c(".fp-section.active").position().top),va(),f.wraparoundelements=f.activesection,f.dest=f.element.position(),f.dtop=f.dest.top,f.ymovement=x(f.element));if(c.isfunction(d.onleave)&&!f.localisresizing){if(!1===d.onleave.call(f.activesection,f.leavingsection,f.sectionindex+1,f.ymovement))return;ua(f.activesection)}a.addclass("active").siblings().removeclass("active");k(a);y=!1;y(k,h,f.anchorlink,f.sectionindex); va(f);a=f.anchorlink;i(f.anchorlink,f.sectionindex)}}})}function va(a){if(d.css3&&d.autoscrolling&&!d.scrollbar)wa("translate3d(0px, -"+a.dtop+"px, 0px)",!0),d.scrollingspeed?ca=settimeout(function(){da(a)},d.scrollingspeed):da(a);else{var b=wa(a);c(b.element).animate(b.options,d.scrollingspeed,d.easing).promise().done(function(){da(a)})}}function wa(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 da(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),va());a.element.find(".fp-scrollable").mouseover();e.setfittosection(!a.element.hasclass("fp-auto-height"));c.isfunction(d.afterload)&&!a.localisresizing&&d.afterload.call(a.element,a.anchorlink,a.sectionindex+1);na(a.element);y=!0;c.isfunction(a.callback)&&a.callback.call(this)} function k(a){var b=a.find(".fp-slide.active");b.length&&(a=c(b));a.find("img[data-src], source[data-src], audio[data-src]").each(function(){c(this).attr("src",c(this).data("src"));c(this).removeattr("data-src");c(this).is("source")&&c(this).closest("video").get(0).load()})}function na(a){a.find("video, audio").each(function(){var a=c(this).get(0);a.hasattribute("autoplay")&&"function"===typeof a.play&&a.play()})}function ua(a){a.find("video, audio").each(function(){var a=c(this).get(0);a.hasattribute("data-ignore")|| "function"!==typeof a.pause||a.pause()})}function xa(){if(!w&&!d.lockanchors){var a=l.location.hash.replace("#","").split("/"),b=a[0],a=a[1];if(b.length){var c="undefined"===typeof a,f="undefined"===typeof a&&"undefined"===typeof a&&!z;(b&&b!==a&&!c||f||!z&&ea!=a)&&v(b,a)}}}function xa(a){y&&(a.pageyp&&e.movesectiondown());p=a.pagey}function f(a,b){var g=b.position(),f=b.index(),e=a.closest(".fp-section"),h=e.index(".fp-section"),k=e.data("anchor"),l=e.find(".fp-slidesnav"), m=ya(b),n=v;if(d.onslideleave){var r=e.find(".fp-slide.active"),q=r.index(),t;t=q==f?"none":q>f?"left":"right";if(!n&&"none"!==t&&c.isfunction(d.onslideleave)&&!1===d.onslideleave.call(r,k,h+1,q,t,f)){z=!1;return}}b.addclass("active").siblings().removeclass("active");n||k(b);!d.loophorizontal&&d.controlarrows&&(e.find(".fp-controlarrow.fp-prev").toggle(0!==f),e.find(".fp-controlarrow.fp-next").toggle(!b.is(":last-child")));e.hasclass("active")&&y(f,m,k,h);var u=function(){n||c.isfunction(d.afterslideload)&& d.afterslideload.call(b,k,h+1,m,f);z=!1};d.css3?(g="translate3d(-"+p.round(g.left)+"px, 0px, 0px)",za(a.find(".fp-slidescontainer"),020*p.max(ga,a)/100&&(e.rebuild(!0),ga=a))}else cleartimeout(ha),ha=settimeout(function(){e.rebuild(!0)},350)}function la(){var a=d.responsive||d.responsivewidth,b=d.responsiveheight;a&&e.setresponsive(n.width()a||900>b){var d=p.min(100*a/825,100*b/ 900).tofixed(2);r.css("font-size",d+"%")}else r.css("font-size","100%")}function i(a,b){d.menu&&(c(d.menu).find(".active").removeclass("active"),c(d.menu).find('[data-menuanchor="'+a+'"]').addclass("active"));d.navigation&&(c("#dn-nav").find(".active").removeclass("active"),a?c("#dn-nav").find('a[href="#'+a+'"]').addclass("active"):c("#dn-nav").find("li").eq(b).find("a").addclass("active"))}function x(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"),f;c.length?f=c.get(0).scrollheight:(f=a.get(0).scrollheight,d.verticalcentered&&(f=a.find(".fp-tablecell").get(0).scrollheight));b=q-parseint(b.css("padding-bottom"))-parseint(b.css("padding-top"));f>b?c.length?c.css("height",b+"px").parent().css("height",b+"px"):(d.verticalcentered?a.find(".fp-tablecell").wrapinner('
'):a.wrapinner('
'), a.find(".fp-scrollable").slimscroll({allowpagescroll:!0,height:b+"px",size:"10px",alwaysvisible:!0})):ca(a);a.css("overflow","")}function ca(a){a.find(".fp-scrollable").children().first().unwrap().unwrap();a.find(".slimscrollbar").remove();a.find(".slimscrollrail").remove()}function ia(a){a.addclass("fp-table").wrapinner('
')}function da(a){var b=q;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=q-a;return b}function wa(a,b){b?za(h):h.addclass("fp-notransition");h.css(aa(a));settimeout(function(){h.removeclass("fp-notransition")},10)}function ea(a){var b=c('.fp-section[data-anchor="'+a+'"]');b.length||(b=c(".fp-section").eq(a-1));return b}function v(a,b){var d=ea(a);"undefined"===typeof b&&(b=0);a===a||d.hasclass("active")?fa(d,b):b(d,function(){fa(d,b)})}function fa(a,b){if("undefined"!==typeof b){var d=a.find(".fp-slides"),c;c=a.find(".fp-slides");var e= c.find('.fp-slide[data-anchor="'+b+'"]');e.length||(e=c.find(".fp-slide").eq(b));c=e;c.length&&f(d,c)}}function ra(a,b){a.append('
    ');var c=a.find(".fp-slidesnav");c.addclass(d.slidesnavposition);for(var f=0;f');c.css("margin-left","-"+c.width()/2+"px");c.find("li").first().find("a").addclass("active")}function y(a,b,c,f){f="";d.anchors.length&&!d.lockanchors&&(a?("undefined"!==typeof c&&(f=c), "undefined"===typeof b&&(b=a),ea=b,ga(f+"/"+b)):("undefined"!==typeof a&&(ea=b),ga(c)));ma()}function ga(a){if(d.recordhistory)location.hash=a;else if(q||r)history.replacestate(h,h,"#"+a);else{var b=l.location.href.split("#")[0];l.location.replace(b+"#"+a)}}function ya(a){var b=a.data("anchor");a=a.index();"undefined"===typeof b&&(b=a);return b}function ma(){var a=c(".fp-section.active"),b=a.find(".fp-slide.active"),e=a.data("anchor"),f=ya(b),a=a.index(".fp-section"),a=string(a);d.anchors.length&& (a=e);b.length&&(a=a+"-"+f);a=a.replace("/","-").replace("#","");r[0].classname=r[0].classname.replace(regexp("\\b\\s?fp-viewing-[^\\s]+\\b","g"),"");r.addclass("fp-viewing-"+a)}function ma(){var a=m.createelement("p"),b,c={webkittransform:"-webkit-transform",otransform:"-o-transform",mstransform:"-ms-transform",moztransform:"-moz-transform",transform:"transform"};m.body.insertbefore(a,null);for(var d in c)a.style[d]!==h&&(a.style[d]="translate3d(1px,1px,1px)",b=l.getcomputedstyle(a).getpropertyvalue(c[d])); m.body.removechild(a);return b!==h&&0(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? (t.css({overflow:"hidden",height:"100%"}),e.setrecordhistory(d.recordhistory,"internal"),h.css({"-ms-touch-action":"none","touch-action":"none"}),g.length&&x(g.position().top)):(t.css({overflow:"visible",height:"initial"}),e.setrecordhistory(!1,"internal"),h.css({"-ms-touch-action":"","touch-action":""}),x(0),g.length&&t.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.setlockanchors=function(a){d.lockanchors=a};e.setmousewheelscrolling=function(a){a?m.addeventlistener?(m.addeventlistener("mousewheel",u,!1),m.addeventlistener("wheel",u,!1),m.addeventlistener("dommousescroll",u,!1)):m.attachevent("onmousewheel",u):m.addeventlistener?(m.removeeventlistener("mousewheel",u,!1),m.removeeventlistener("wheel",u,!1),m.removeeventlistener("dommousescroll",u,!1)):m.detachevent("onmousewheel",u)};e.setallowscrolling=function(a,b){"undefined"!==typeof b?(b=b.replace(/ /g, "").split(","),c.each(b,function(b,c){ia(a,c,"m")})):a?(e.setmousewheelscrolling(!0),za()):(e.setmousewheelscrolling(!1),ptma())};e.setkeyboardscrolling=function(a,b){"undefined"!==typeof b?(b=b.replace(/ /g,"").split(","),c.each(b,function(b,c){ia(a,c,"k")})):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&&b(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&&b(a,null,!1)};e.silentmoveto=function(a,b){requestanimframe(function(){e.setscrollingspeed(0,"internal")});e.moveto(a,b);requestanimframe(function(){e.setscrollingspeed(g.scrollingspeed,"internal")})};e.moveto=function(a,b){var c=ea(a);"undefined"!==typeof b?v(a,b):0