ZwiiCMS/core/vendor/fullpage/fullpage.extensions.min.js

8 lines
43 KiB
JavaScript
Raw Normal View History

2020-05-10 14:22:22 +02:00
/*!
* fullPage 3.0.8 - Extensions 0.1.9
* https://github.com/alvarotrigo/fullPage.js
* @license http://alvarotrigo.com/fullPage/extensions/#license
*
* Copyright (C) 2018 alvarotrigo.com - A project by Alvaro Trigo
*/
!function(e,t,n,o,r){"function"==typeof define&&define.amd?define(function(){return e.fullpage=o(t,n),e.fullpage}):"object"==typeof exports?module.exports=o(t,n):t.fullpage=o(t,n)}(this,window,document,function(rn,ln){"use strict";var an="fullpage-wrapper",sn="."+an,cn="fp-responsive",un="fp-notransition",fn="fp-destroyed",dn="fp-enabled",vn="fp-viewing",pn="active",hn="."+pn,gn="fp-completely",mn="fp-section",Sn="."+mn,bn=Sn+hn,wn="fp-tableCell",yn="."+wn,En="fp-auto-height",xn="fp-normal-scroll",An="fp-nav",Ln="#"+An,Mn="fp-tooltip",Tn="fp-slide",On="."+Tn,kn=On+hn,Cn="fp-slides",Hn="."+Cn,Rn="fp-slidesContainer",In="."+Rn,zn="fp-table",Bn="fp-slidesNav",Nn="."+Bn,jn=Nn+" a",e="fp-controlArrow",Pn="."+e,Wn="fp-prev",Dn=Pn+".fp-prev",Yn=Pn+".fp-next";function Vn(e,t){rn.console&&rn.console[e]&&rn.console[e]("fullPage: "+t)}function Zn(e,t){return(t=1<arguments.length?t:ln)?t.querySelectorAll(e):null}function Xn(e){e=e||{};for(var t=1,n=arguments.length;t<n;++t){var o=arguments[t];if(o)for(var r in o)o.hasOwnProperty(r)&&("[object Object]"!==Object.prototype.toString.call(o[r])?e[r]=o[r]:e[r]=Xn(e[r],o[r]))}return e}function Gn(e,t){return null!=e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}function Fn(){return"innerHeight"in rn?rn.innerHeight:ln.documentElement.offsetHeight}function Un(){return rn.innerWidth}function Qn(e,t){var n;for(n in e=l(e),t)if(t.hasOwnProperty(n)&&null!==n)for(var o=0;o<e.length;o++){e[o].style[n]=t[n]}return e}function n(e,t,n){for(var o=e[n];o&&!bo(o,t);)o=o[n];return o}function _n(e,t){return n(e,t,"previousElementSibling")}function Jn(e,t){return n(e,t,"nextElementSibling")}function Kn(e,t){if(null==t)return e.previousElementSibling;var n=Kn(e);return n&&bo(n,t)?n:null}function $n(e,t){if(null==t)return e.nextElementSibling;var n=$n(e);return n&&bo(n,t)?n:null}function qn(e){return e[e.length-1]}function eo(e,t){e=oo(e)?e[0]:e;for(var n=null!=t?Zn(t,e.parentNode):e.parentNode.childNodes,o=0,r=0;r<n.length;r++){if(n[r]==e)return o;1==n[r].nodeType&&o++}return-1}function l(e){return oo(e)?e:[e]}function to(e){e=l(e);for(var t=0;t<e.length;t++)e[t].style.display="none";return e}function no(e){e=l(e);for(var t=0;t<e.length;t++)e[t].style.display="block";return e}function oo(e){return"[object Array]"===Object.prototype.toString.call(e)||"[object NodeList]"===Object.prototype.toString.call(e)}function ro(e,t){e=l(e);for(var n=0;n<e.length;n++){var o=e[n];o.classList?o.classList.add(t):o.className+=" "+t}return e}function io(e,t){e=l(e);for(var n=t.split(" "),o=0;o<n.length;o++){t=n[o];for(var r=0;r<e.length;r++){var i=e[r];i.classList?i.classList.remove(t):i.className=i.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}}return e}function lo(e,t){t.appendChild(e)}function o(e,t,n){var o;t=t||ln.createElement("div");for(var r=0;r<e.length;r++){var i=e[r];(n&&!r||!n)&&(o=t.cloneNode(!0),i.parentNode.insertBefore(o,i)),o.appendChild(i)}return e}function ao(e,t){o(e,t,!0)}function so(e,t){for("string"==typeof t&&(t=yo(t)),e.appendChild(t);e.firstChild!==t;)t.appendChild(e.firstChild)}function co(e){for(var t=ln.createDocumentFragment();e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e)}function uo(e,t){return e&&1===e.nodeType?bo(e,t)?e:uo(e.parentNode,t):null}function fo(e,t){r(e,e.nextSibling,t)}function vo(e,t){r(e,e,t)}function r(e,t,n){oo(n)||("string"==typeof n&&(n=yo(n)),n=[n]);for(var o=0;o<n.length;o++)e.parentNode.insertBefore(n[o],t)}function po(){var e=ln.documentElement;return(rn.pageYOffset||e.scrollTop)-(e.clientTop||0)}function ho(t){return Array.prototype.filter.call(t.parentNode.children,function(e){return e!==t})}function go(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function mo(e){if("function"==typeof e)return!0;var t=Object.prototype.toString(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}function So(e,t,n){var o;n=void 0===n?{}:n,"function"==typeof rn.CustomEvent?o=new CustomEvent(t,{detail:n}):(o=ln.createEvent("CustomEvent")).initCustomEvent(t