/** * @module rd navbar * @author evgeniy gusarov * @see https://ua.linkedin.com/pub/evgeniy-gusarov/8a/a40/54a * @version 2.2.5 */ (function(){var t;t="ontouchstart"in window,function(n,o,e){var a;a=function(){function a(t,a){this.options=n.extend(!0,{},this.defaults,a),this.$element=n(t),this.$clone=null,this.$win=n(e),this.$doc=n(o),this.currentlayout=this.options.layout,this.loaded=!1,this.focusonhover=this.options.focusonhover,this.focustimer=!1,this.clonetimer=!1,this.isstuck=!1,this.initialize()}return a.prototype.defaults={layout:"rd-navbar-static",devicelayout:"rd-navbar-fixed",focusonhover:!0,focusonhovertimeout:800,linkedelements:["html"],domappend:!0,stickup:!0,stickupclone:!0,stickupoffset:"100%",anchornav:!0,anchornavspeed:400,anchornavoffset:0,anchornaveasing:"swing",autoheight:!0,responsive:{0:{layout:"rd-navbar-fixed",devicelayout:"rd-navbar-fixed",focusonhover:!1,stickup:!1},992:{layout:"rd-navbar-static",devicelayout:"rd-navbar-static",focusonhover:!0,stickup:!0}},callbacks:{ontoggleswitch:!1,ontoggleclose:!1,ondomappend:!1,ondropdownover:!1,ondropdownout:!1,ondropdowntoggle:!1,ondropdownclose:!1,onstuck:!1,onunstuck:!1,onanchorchange:!1}},a.prototype.initialize=function(){var n;return(n=this).$element.addclass("rd-navbar").addclass(n.options.layout),t&&n.$element.addclass("rd-navbar--is-touch"),n.options.domappend&&n.createnav(n),n.options.stickupclone&&n.createclone(n),n.$element.addclass("rd-navbar-original"),n.addadditionalclasstotoggles(".rd-navbar-original","toggle-original","toggle-original-elements"),n.applyhandlers(n),n.offset=n.$element.offset().top,n.height=n.$element.outerheight(),n.loaded=!0,n},a.prototype.resize=function(o,e){var a,s;return s=t?o.getoption("devicelayout"):o.getoption("layout"),a=o.$element.add(o.$clone),s===o.currentlayout&&o.loaded||(o.switchclass(a,o.currentlayout,s),null!=o.options.linkedelements&&n.grep(o.options.linkedelements,function(t,n){return o.switchclass(t,o.currentlayout+"-linked",s+"-linked")}),o.currentlayout=s),o.focusonhover=o.getoption("focusonhover"),o},a.prototype.stickup=function(t,o){function e(){"resize"===o.type?t.switchclass(i,"","rd-navbar--is-stuck"):i.addclass("rd-navbar--is-stuck"),t.isstuck=!0}var a,s,r,i,l;return s=t.getoption("stickup"),(n("html").hasclass("ios")||t.$element.hasclass("rd-navbar-fixed"))&&(s=!1),a=t.$doc.scrolltop(),i=null!=t.$clone?t.$clone:t.$element,r=t.getoption("stickupoffset"),l="string"==typeof r?r.indexof("%")>0?parsefloat(r)*t.height/100:parsefloat(r):r,s?(a>=l&&!t.isstuck||a=l&&!t.isstuck&&!t.$element.hasclass("rd-navbar-fixed")?(t.options.callbacks.onstuck&&t.options.callbacks.onstuck.call(t),navigator.platform.match(/(mac)/i)?settimeout(e,10):e()):("resize"===o.type?t.switchclass(i,"rd-navbar--is-stuck",""):i.removeclass("rd-navbar--is-stuck").one("transitionend webkittransitionend otransitionend mstransitionend",n.proxy(t.resizewrap,t,o)),t.isstuck=!1,t.options.callbacks.onunstuck&&t.options.callbacks.onunstuck.call(t))):(t.$element.find(".rd-navbar-submenu").removeclass("opened").removeclass("focus"),t.isstuck&&(t.switchclass(i,"rd-navbar--is-stuck",""),t.isstuck=!1,t.resizewrap(o))),t},a.prototype.resizewrap=function(t){var n,o;if(null==(o=this).$clone&&!o.isstuck)return n=o.$element.parent(),o.getoption("autoheight")?(o.height=o.$element.outerheight(),"resize"===t.type?(n.addclass("rd-navbar--no-transition").css("height",o.height),n[0].offsetheight,n.removeclass("rd-navbar--no-transition")):n.css("height",o.height)):void n.css("height","auto")},a.prototype.createnav=function(t){return t.$element.find(".rd-navbar-dropdown, .rd-navbar-megamenu").each(function(){var t;return t=n(this),this.getboundingclientrect(),t.hasclass("rd-navbar-megamenu")?t.parent().addclass("rd-navbar--has-megamenu"):t.parent().addclass("rd-navbar--has-dropdown")}).parents("li").addclass("rd-navbar-submenu"),n('').insertafter(".rd-navbar-nav li.rd-navbar-submenu > a"),t.options.callbacks.ondomappend&&t.options.callbacks.ondomappend.call(this),t},a.prototype.createclone=function(t){return t.$clone=t.$element.clone().insertafter(t.$element).addclass("rd-navbar--is-clone"),t.addadditionalclasstotoggles(".rd-navbar--is-clone","toggle-cloned","toggle-cloned-elements"),t},a.prototype.closetoggle=function(t,o){var e,a,s,r,i,l,c;return a=n(o.target),i=!1,l=this.getattribute("data-rd-navbar-toggle"),t.options.stickupclone&&t.isstuck?(r=".toggle-cloned",s=".toggle-cloned-elements",c=!a.hasclass("toggle-cloned")):(r=".toggle-original",s=".toggle-original-elements",c=!a.hasclass("toggle-original")),o.target!==this&&!a.parents(r+"[data-rd-navbar-toggle]").length&&!a.parents(s).length&&l&&c&&((e=n(this).parents("body").find(l).add(n(this).parents(".rd-navbar")[0])).each(function(){if(!i)return i=!0===(o.target===this||n.contains(this,o.target))}),i||(e.add(this).removeclass("active"),t.options.callbacks.ontoggleclose&&t.options.callbacks.ontoggleclose.call(this,t))),this},a.prototype.switchtoggle=function(t,o){var e,a,s;return o.preventdefault(),n(this).hasclass("toggle-cloned")?(s=".rd-navbar--is-clone",e=".toggle-cloned-elements"):(s=".rd-navbar-original",e=".toggle-original-elements"),(a=this.getattribute("data-rd-navbar-toggle"))&&(n(s+" [data-rd-navbar-toggle]").not(this).each(function(){var t;if(t=this.getattribute("data-rd-navbar-toggle"))return n(this).parents("body").find(s+" "+t+e).add(this).add(n.inarray(".rd-navbar",t.split(/\s*,\s*/i))>-1&&n(this).parents("body")[0]).removeclass("active")}),n(this).parents("body").find(s+" "+a+e).add(this).add(n.inarray(".rd-navbar",a.split(/\s*,\s*/i))>-1&&n(this).parents(".rd-navbar")[0]).toggleclass("active")),t.options.callbacks.ontoggleswitch&&t.options.callbacks.ontoggleswitch.call(this,t),this},a.prototype.dropdownover=function(t,o){var e;if(t.focusonhover){if(e=n(this),cleartimeout(o),t.options.callbacks.ondropdownover&&!t.options.callbacks.ondropdownover.call(this,t))return this;e.addclass("focus").siblings().removeclass("opened").each(t.dropdownunfocus)}return this},a.prototype.dropdowntouch=function(t,o){var e,a;if(e=n(this),cleartimeout(o),t.focusonhover){if(a=!1,e.hasclass("focus")&&(a=!0),!a)return e.addclass("focus").siblings().removeclass("opened").each(t.dropdownunfocus),!1;t.options.callbacks.ondropdownover&&t.options.callbacks.ondropdownover.call(this,t)}return this},a.prototype.dropdownout=function(t,o){return t.focusonhover&&(n(this).one("mouseenter.navbar",function(){return cleartimeout(o)}),t.options.callbacks.ondropdownout&&t.options.callbacks.ondropdownout.call(this,t),cleartimeout(o),o=settimeout(n.proxy(t.dropdownunfocus,this,t),t.options.focusonhovertimeout)),this},a.prototype.dropdownunfocus=function(t){return n(this).find("li.focus").add(this).removeclass("focus"),this},a.prototype.dropdownclose=function(t,o){return o.target===this||n(o.target).parents(".rd-navbar-submenu").length||(n(this).find("li.focus").add(this).removeclass("focus").removeclass("opened"),t.options.callbacks.ondropdownclose&&t.options.callbacks.ondropdownclose.call(this,t)),this},a.prototype.dropdowntoggle=function(t){return n(this).toggleclass("opened").siblings().removeclass("opened"),t.options.callbacks.ondropdowntoggle&&t.options.callbacks.ondropdowntoggle.call(this,t),this},a.prototype.gotoanchor=function(t,o){var e,a;return a=this.hash,e=n(a),!!t.getoption("anchornav")&&(e.length&&(o.preventdefault(),n("html, body").stop().animate({scrolltop:e.offset().top+t.getoption("anchornavoffset")+1},t.getoption("anchornavspeed"),t.getoption("anchornaveasing"),function(){return t.changeanchor(a)})),this)},a.prototype.activateanchor=function(t){var o,e,a,s,r,i,l,c,d,p,u,h;if(s=this,u=s.$doc.scrolltop(),h=s.$win.height(),r=s.$doc.height(),p=s.getoption("anchornavoffset"),!s.options.anchornav)return!1;if(u+h>r-50)return(o=n('[data-type="anchor"]').last()).length&&o.offset().top>=u&&(i="#"+o.attr("id"),(e=n('.rd-navbar-nav a[href^="'+i+'"]').parent()).hasclass("active")||(e.addclass("active").siblings().removeclass("active"),s.options.callbacks.onanchorchange&&s.options.callbacks.onanchorchange.call(o[0],s))),o;d=n('.rd-navbar-nav a[href^="#"]').get();for(l in d)c=d[l],i=(a=n(c)).attr("href"),(o=n(i)).length&&o.offset().top+p<=u&&o.offset().top+o.outerheight()>u&&(a.parent().addclass("active").siblings().removeclass("active"),s.options.callbacks.onanchorchange&&s.options.callbacks.onanchorchange.call(o[0],s));return null},a.prototype.getanchor=function(){return history&&history.state?history.state.id:null},a.prototype.changeanchor=function(t){return history&&(history.state&&history.state.id!==t?history.replacestate({anchorid:t},null,t):history.pushstate({anchorid:t},null,t)),this},a.prototype.applyhandlers=function(t){return null!=t.options.responsive&&t.$win.on("resize.navbar",n.proxy(t.resize,t.$win[0],t)).on("resize.navbar",n.proxy(t.resizewrap,t)).on("resize.navbar",n.proxy(t.stickup,null!=t.$clone?t.$clone:t.$element,t)).on("orientationchange.navbar",n.proxy(t.resize,t.$win[0],t)).trigger("resize.navbar"),t.$doc.on("scroll.navbar",n.proxy(t.stickup,null!=t.$clone?t.$clone:t.$element,t)).on("scroll.navbar",n.proxy(t.activateanchor,t)),t.$element.add(t.$clone).find("[data-rd-navbar-toggle]").each(function(){var o;return(o=n(this)).on("click",n.proxy(t.switchtoggle,this,t)),o.parents("body").on("click",n.proxy(t.closetoggle,this,t))}),t.$element.add(t.$clone).find(".rd-navbar-submenu").each(function(){var o,e;return o=n(this),e=o.parents(".rd-navbar--is-clone").length?t.clonetimer:t.focustimer,o.on("mouseleave.navbar",n.proxy(t.dropdownout,this,t,e)),o.find("> a").on("mouseenter.navbar",n.proxy(t.dropdownover,this,t,e)),o.find("> a").on("touchstart.navbar",n.proxy(t.dropdowntouch,this,t,e)),o.find("> .rd-navbar-submenu-toggle").on("click",n.proxy(t.dropdowntoggle,this,t)),o.parents("body").on("click",n.proxy(t.dropdownclose,this,t))}),t.$element.add(t.$clone).find('.rd-navbar-nav a[href^="#"]').each(function(){return n(this).on("click",n.proxy(t.gotoanchor,this,t))}),t.$element.find(".rd-navbar-dropdown, .rd-navbar-megamenu").each(function(){var t,o;t=n(this),(o=this.getboundingclientrect()).left+t.outerwidth()>=e.innerwidth-10?this.classname+=" rd-navbar-open-left":o.left-t.outerwidth()<=10&&(this.classname+=" rd-navbar-open-right")}),t},a.prototype.switchclass=function(t,o,e){var a;return(a=t instanceof jquery?t:n(t)).addclass("rd-navbar--no-transition").removeclass(o).addclass(e),a[0].offsetheight,a.removeclass("rd-navbar--no-transition")},a.prototype.getoption=function(t){var n,o;for(n in this.options.responsive)n<=e.innerwidth&&(o=n);return null!=this.options.responsive&&null!=this.options.responsive[o][t]?this.options.responsive[o][t]:this.options[t]},a.prototype.addadditionalclasstotoggles=function(t,o,e){return n(t).find("[data-rd-navbar-toggle]").each(function(){var a;return n(this).addclass(o),a=this.getattribute("data-rd-navbar-toggle"),n(this).parents("body").find(t).find(a).addclass(e)})},a}(),n.fn.extend({rdnavbar:function(t){var o;if(!(o=n(this)).data("rdnavbar"))return o.data("rdnavbar",new a(this,t))}}),e.rdnavbar=a}(window.jquery,document,window),"undefined"!=typeof module&&null!==module?module.exports=window.rdnavbar:"function"==typeof define&&define.amd&&define(["jquery"],function(){"use strict";return window.rdnavbar})}).call(this); /** * @module uitotop * @author matt varone * @see https://www.mattvarone.com/web-design/uitotop-jquery-plugin/ * @license mit */ !function(o){o.fn.uitotop=function(n){var e={text:"",min:500,scrollspeed:800,containerid:"ui-to-top",containerclass:"ui-to-top fa fa-angle-up",easingtype:"easein"},t=o.extend(e,n),i="#"+t.containerid;o("body").append(''+t.text+""),o(i).click(function(){return o("html, body").stop().animate({scrolltop:0},t.scrollspeed,t.easingtype),!1}),o(window).scroll(function(){var n=o(window).scrolltop();"undefined"==typeof document.body.style.maxheight&&o(i).css({position:"absolute",top:o(window).scrolltop()+o(window).height()-50}),n>t.min?o(i).stop(!0,!0).addclass("active"):o(i).removeclass("active")})}}(jquery); /** * @module materianize parallax * @see https://materializecss.com/parallax-demo.html * @licesne mit */ !function(i){i.fn.parallax=function(){var a=i(window).width();return this.each(function(t){function n(t){var n;n=a<601?r.height()>0?r.height():r.children("img").height():r.height()>0?r.height():500;var e=r.children("img").first(),l=e.height()-n,o=r.offset().top+n,h=r.offset().top,d=i(window).scrolltop(),s=window.innerheight,c=(d+s-h)/(n+s),g=math.round(l*c);t&&e.css("display","block"),o>d&&h').find(".material-parallax");r.children("img").first().attr("src",r.parents("[data-parallax-img]").data("parallax-img")),r.children("img").one("load",function(){n(!0)}).each(function(){this.complete&&i(this).trigger("load")}),i(window).scroll(function(){a=i(window).width(),n(!1)}),i(window).resize(function(){a=i(window).width(),n(!1)})})}}(jquery); /** * @module wow * @author matthieu aussaguel * @see https://mynameismatthieu.com/wow/ * @license mit * @version 1.1.3 */ (function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexof||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.ismobile=function(a){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(a)},a.prototype.createevent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createevent?(e=document.createevent("customevent"),e.initcustomevent(a,b,c,d)):null!=document.createeventobject?(e=document.createeventobject(),e.eventtype=a):e.eventname=a,e},a.prototype.emitevent=function(a,b){return null!=a.dispatchevent?a.dispatchevent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addevent=function(a,b,c){return null!=a.addeventlistener?a.addeventlistener(b,c,!1):null!=a.attachevent?a.attachevent("on"+b,c):a[b]=c},a.prototype.removeevent=function(a,b,c){return null!=a.removeeventlistener?a.removeeventlistener(b,c,!1):null!=a.detachevent?a.detachevent("on"+b,c):delete a[b]},a.prototype.innerheight=function(){return"innerheight"in window?window.innerheight:document.documentelement.clientheight},a}(),c=this.weakmap||this.mozweakmap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.mutationobserver||this.webkitmutationobserver||this.mozmutationobserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("mutationobserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("wow.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notsupported=!0,a.prototype.observe=function(){},a}()),d=this.getcomputedstyle||function(a,b){return this.getpropertyvalue=function(b){var c;return"float"===b&&(b="stylefloat"),e.test(b)&&b.replace(e,function(a,b){return b.touppercase()}),(null!=(c=a.currentstyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.wow=function(){function e(a){null==a&&(a={}),this.scrollcallback=f(this.scrollcallback,this),this.scrollhandler=f(this.scrollhandler,this),this.resetanimation=f(this.resetanimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollcontainer&&(this.config.scrollcontainer=document.queryselector(a.scrollcontainer)),this.animationnamecache=new c,this.wowevent=this.util().createevent(this.config.boxclass)}return e.prototype.defaults={boxclass:"wow",animateclass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollcontainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentelement,"interactive"===(a=document.readystate)||"complete"===a?this.start():this.util().addevent(document,"domcontentloaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.queryselectorall("."+this.config.boxclass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetstyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applystyle(b,!0);return this.disabled()||(this.util().addevent(this.config.scrollcontainer||window,"scroll",this.scrollhandler),this.util().addevent(window,"resize",this.scrollhandler),this.interval=setinterval(this.scrollcallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addednodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.dosync(e));return d}.call(a));return g}}(this)).observe(document.body,{childlist:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeevent(this.config.scrollcontainer||window,"scroll",this.scrollhandler),this.util().removeevent(window,"resize",this.scrollhandler),null!=this.interval?clearinterval(this.interval):void 0},e.prototype.sync=function(b){return a.notsupported?this.dosync(this.element):void 0},e.prototype.dosync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodetype){for(a=a.parentnode||a,e=a.queryselectorall("."+this.config.boxclass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetstyle():this.applystyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applystyle(a),a.classname=a.classname+" "+this.config.animateclass,null!=this.config.callback&&this.config.callback(a),this.util().emitevent(a,this.wowevent),this.util().addevent(a,"animationend",this.resetanimation),this.util().addevent(a,"oanimationend",this.resetanimation),this.util().addevent(a,"webkitanimationend",this.resetanimation),this.util().addevent(a,"msanimationend",this.resetanimation),a},e.prototype.applystyle=function(a,b){var c,d,e;return d=a.getattribute("data-wow-duration"),c=a.getattribute("data-wow-delay"),e=a.getattribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customstyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestanimationframe"in window?function(a){return window.requestanimationframe(a)}:function(a){return a()}}(),e.prototype.resetstyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetanimation=function(a){var b;return a.type.tolowercase().indexof("animationend")>=0?(b=a.target||a.srcelement,b.classname=b.classname.replace(this.config.animateclass,"").trim()):void 0},e.prototype.customstyle=function(a,b,c,d,e){return b&&this.cacheanimationname(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorset(a.style,{animationduration:c}),d&&this.vendorset(a.style,{animationdelay:d}),e&&this.vendorset(a.style,{animationiterationcount:e}),this.vendorset(a.style,{animationname:b?"none":this.cachedanimationname(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorset=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charat(0).touppercase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorcss=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getpropertycssvalue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getpropertycssvalue("-"+i+"-"+b);return g},e.prototype.animationname=function(a){var b;try{b=this.vendorcss(a,"animation-name").csstext}catch(c){b=d(a).getpropertyvalue("animation-name")}return"none"===b?"":b},e.prototype.cacheanimationname=function(a){return this.animationnamecache.set(a,this.animationname(a))},e.prototype.cachedanimationname=function(a){return this.animationnamecache.get(a)},e.prototype.scrollhandler=function(){return this.scrolled=!0},e.prototype.scrollcallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isvisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsettop=function(a){for(var b;void 0===a.offsettop;)a=a.parentnode;for(b=a.offsettop;a=a.offsetparent;)b+=a.offsettop;return b},e.prototype.isvisible=function(a){var b,c,d,e,f;return c=a.getattribute("data-wow-offset")||this.config.offset,f=this.config.scrollcontainer&&this.config.scrollcontainer.scrolltop||window.pageyoffset,e=f+math.min(this.element.clientheight,this.util().innerheight())-c,d=this.offsettop(a),b=d+a.clientheight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().ismobile(navigator.useragent)},e}()}).call(this); /** * @module mousewheel * @author jquery foundation and other contributors * @see https://github.com/jquery/jquery-mousewheel * @license mit * @version 3.1.13 * @requires module:jquery */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jquery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheeldelta"in g&&(m=g.wheeldelta),"wheeldeltay"in g&&(m=g.wheeldeltay),"wheeldeltax"in g&&(l=-1*g.wheeldeltax),"axis"in g&&g.axis===g.horizontal_axis&&(l=-1*m,m=0),j=0===m?l:m,"deltay"in g&&(m=-1*g.deltay,j=m),"deltax"in g&&(l=g.deltax,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltamode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltamode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=math.max(math.abs(m),math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=math[j>=1?"floor":"ceil"](j/f),l=math[l>=1?"floor":"ceil"](l/f),m=math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeoffset&&this.getboundingclientrect){var s=this.getboundingclientrect();o=b.clientx-s.left,p=b.clienty-s.top}return b.deltax=l,b.deltay=m,b.deltafactor=f,b.offsetx=o,b.offsety=p,b.deltamode=0,h.unshift(b,j,l,m),e&&cleartimeout(e),e=settimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustolddeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","dommousescroll","mozmousepixelscroll"],h="onwheel"in document||document.documentmode>=9?["wheel"]:["mousewheel","dommousescroll","mozmousepixelscroll"],i=array.prototype.slice;if(a.event.fixhooks)for(var j=g.length;j;)a.event.fixhooks[g[--j]]=a.event.mousehooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addeventlistener)for(var c=h.length;c;)this.addeventlistener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getlineheight(this)),a.data(this,"mousewheel-page-height",k.getpageheight(this))},teardown:function(){if(this.removeeventlistener)for(var c=h.length;c;)this.removeeventlistener(h[--c],b,!1);else this.onmousewheel=null;a.removedata(this,"mousewheel-line-height"),a.removedata(this,"mousewheel-page-height")},getlineheight:function(b){var c=a(b),d=c["offsetparent"in a.fn?"offsetparent":"parent"]();return d.length||(d=a("body")),parseint(d.css("fontsize"),10)||parseint(c.css("fontsize"),10)||16},getpageheight:function(b){return a(b).height()},settings:{adjustolddeltas:!0,normalizeoffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jquery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheeldelta"in g&&(m=g.wheeldelta),"wheeldeltay"in g&&(m=g.wheeldeltay),"wheeldeltax"in g&&(l=-1*g.wheeldeltax),"axis"in g&&g.axis===g.horizontal_axis&&(l=-1*m,m=0),j=0===m?l:m,"deltay"in g&&(m=-1*g.deltay,j=m),"deltax"in g&&(l=g.deltax,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltamode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltamode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=math.max(math.abs(m),math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=math[j>=1?"floor":"ceil"](j/f),l=math[l>=1?"floor":"ceil"](l/f),m=math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeoffset&&this.getboundingclientrect){var s=this.getboundingclientrect();o=b.clientx-s.left,p=b.clienty-s.top}return b.deltax=l,b.deltay=m,b.deltafactor=f,b.offsetx=o,b.offsety=p,b.deltamode=0,h.unshift(b,j,l,m),e&&cleartimeout(e),e=settimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustolddeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","dommousescroll","mozmousepixelscroll"],h="onwheel"in document||document.documentmode>=9?["wheel"]:["mousewheel","dommousescroll","mozmousepixelscroll"],i=array.prototype.slice;if(a.event.fixhooks)for(var j=g.length;j;)a.event.fixhooks[g[--j]]=a.event.mousehooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addeventlistener)for(var c=h.length;c;)this.addeventlistener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getlineheight(this)),a.data(this,"mousewheel-page-height",k.getpageheight(this))},teardown:function(){if(this.removeeventlistener)for(var c=h.length;c;)this.removeeventlistener(h[--c],b,!1);else this.onmousewheel=null;a.removedata(this,"mousewheel-line-height"),a.removedata(this,"mousewheel-page-height")},getlineheight:function(b){var c=a(b),d=c["offsetparent"in a.fn?"offsetparent":"parent"]();return d.length||(d=a("body")),parseint(d.css("fontsize"),10)||parseint(c.css("fontsize"),10)||16},getpageheight:function(b){return a(b).height()},settings:{adjustolddeltas:!0,normalizeoffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); /** * @module pagetransition * @author roman kravchuk (jeremyluis) * @license mit * @version 1.1.4 * @description smooth transition between pages * @requires module:jquery */ function pagetransition(t){t=t||{},t.target=t.target||null,t.delay=t.delay||500,t.duration=t.duration||1e3,t.classin=t.classin||null,t.classout=t.classout||null,t.classactive=t.classactive||null,t.onready=t.onready||null,t.ontransitionstart=t.ontransitionstart||null,t.ontransitionend=t.ontransitionend||null,t.conditions=t.conditions||function(t,n){return!/(\#|callto:|tel:|mailto:|:\/\/)/.test(n)},t.target&&(settimeout(function(){t.onready&&t.onready(t),t.classin&&t.target.classlist.add(t.classin),t.classactive&&t.target.classlist.add(t.classactive),t.duration&&(t.target.style.animationduration=t.duration+"ms"),t.target.addeventlistener("animationstart",function(){settimeout(function(){t.classin&&t.target.classlist.remove(t.classin),t.ontransitionend&&t.ontransitionend(t)},t.duration)})},t.delay),$("a").click(function(n){var a=n.currenttarget.getattribute("href");if(t.conditions(n,a)){var s=this.href;n.preventdefault(),t.ontransitionstart&&t.ontransitionstart(t),t.classin&&t.target.classlist.remove(t.classin),t.classout&&t.target.classlist.add(t.classout),settimeout(function(){window.location=s,/firefox/i.test(navigator.useragent)&&settimeout(function(){t.onready&&t.onready(t),t.classout&&t.target.classlist.remove(t.classout)},1e3),settimeout(function(){/safari/i.test(navigator.useragent)&&!/chrome/i.test(navigator.useragent)&&(t.onready&&t.onready(t),t.classout&&t.target.classlist.remove(t.classout))},1e3)},t.duration)}}))} /** * @module 伪util * @version v1.0.1 * @desc service functions for 伪-modules * @author oxayaza {@link https://github.com/oxayaza} * @license cc by-sa 4.0 {@link https://creativecommons.org/licenses/by-sa/4.0/} * @see {@link https://www.linkedin.com/in/%d1%8e%d1%80%d0%b8%d0%b9-%d0%b1%d0%b0%d0%b7%d0%b0%d0%b5%d0%b2-166479165/} */ function util(){}util.inviewport=function(element,cb){var rect=element.getboundingclientrect(),inview=rect.top0;if(cb instanceof function&&inview)cb();return inview};util.merge=function(sources,options){options=options||{};var initial={};for(var s=0;s