De promotiewebsite die de reguliere site vervangt tijdens de Kick-In. https://join.harambee.utwente.nl
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kick-in-promo-site/vendors/scrolloverflow.min.js

16 lines
37 KiB

/**
* Customized version of iScroll.js 0.0.9
* It fixes bugs affecting its integration with fullpage.js
* @license
*/
!function(t,i,s){var e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(i){t.setTimeout(i,1e3/60)},o=function(){var e={},o=i.createElement("div").style,n=function(){for(var t=["t","webkitT","MozT","msT","OT"],i=0,s=t.length;i<s;i++)if(t[i]+"ransform"in o)return t[i].substr(0,t[i].length-1);return!1}();function r(t){return!1!==n&&(""===n?t:n+t.charAt(0).toUpperCase()+t.substr(1))}e.getTime=Date.now||function(){return(new Date).getTime()},e.extend=function(t,i){for(var s in i)t[s]=i[s]},e.addEvent=function(t,i,s,e){t.addEventListener(i,s,!!e)},e.removeEvent=function(t,i,s,e){t.removeEventListener(i,s,!!e)},e.prefixPointerEvent=function(i){return t.MSPointerEvent?"MSPointer"+i.charAt(7).toUpperCase()+i.substr(8):i},e.momentum=function(t,i,e,o,n,r){var h,a,l=t-i,c=s.abs(l)/e;return a=c/(r=void 0===r?6e-4:r),(h=t+c*c/(2*r)*(l<0?-1:1))<o?(h=n?o-n/2.5*(c/8):o,a=(l=s.abs(h-t))/c):h>0&&(h=n?n/2.5*(c/8):0,a=(l=s.abs(t)+h)/c),{destination:s.round(h),duration:a}};var h=r("transform");return e.extend(e,{hasTransform:!1!==h,hasPerspective:r("perspective")in o,hasTouch:"ontouchstart"in t,hasPointer:!(!t.PointerEvent&&!t.MSPointerEvent),hasTransition:r("transition")in o}),e.isBadAndroid=function(){var i=t.navigator.appVersion;if(/Android/.test(i)&&!/Chrome\/\d/.test(i)){var s=i.match(/Safari\/(\d+.\d)/);return!(s&&"object"==typeof s&&s.length>=2)||parseFloat(s[1])<535.19}return!1}(),e.extend(e.style={},{transform:h,transitionTimingFunction:r("transitionTimingFunction"),transitionDuration:r("transitionDuration"),transitionDelay:r("transitionDelay"),transformOrigin:r("transformOrigin")}),e.hasClass=function(t,i){return new RegExp("(^|\\s)"+i+"(\\s|$)").test(t.className)},e.addClass=function(t,i){if(!e.hasClass(t,i)){var s=t.className.split(" ");s.push(i),t.className=s.join(" ")}},e.removeClass=function(t,i){if(e.hasClass(t,i)){var s=new RegExp("(^|\\s)"+i+"(\\s|$)","g");t.className=t.className.replace(s," ")}},e.offset=function(t){for(var i=-t.offsetLeft,s=-t.offsetTop;t=t.offsetParent;)i-=t.offsetLeft,s-=t.offsetTop;return{left:i,top:s}},e.preventDefaultException=function(t,i){for(var s in i)if(i[s].test(t[s]))return!0;return!1},e.extend(e.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),e.extend(e.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(t){return s.sqrt(1- --t*t)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(t){return(t-=1)*t*(5*t+4)+1}},bounce:{style:"",fn:function(t){return(t/=1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},elastic:{style:"",fn:function(t){return 0===t?0:1==t?1:.4*s.pow(2,-10*t)*s.sin((t-.055)*(2*s.PI)/.22)+1}}}),e.tap=function(t,s){var e=i.createEvent("Event");e.initEvent(s,!0,!0),e.pageX=t.pageX,e.pageY=t.pageY,t.target.dispatchEvent(e)},e.click=function(s){var e,o=s.target;/(SELECT|INPUT|TEXTAREA)/i.test(o.tagName)||((e=i.createEvent(t.MouseEvent?"MouseEvents":"Event")).initEvent("click",!0,!0),e.view=s.view||t,e.detail=1,e.screenX=o.screenX||0,e.screenY=o.screenY||0,e.clientX=o.clientX||0,e.clientY=o.clientY||0,e.ctrlKey=!!s.ctrlKey,e.altKey=!!s.altKey,e.shiftKey=!!s.shiftKey,e.metaKey=!!s.metaKey,e.button=0,e.relatedTarget=null,e._constructed=!0,o.dispatchEvent(e))},e}();function n(s,e){for(var n in this.wrapper="string"==typeof s?i.querySelector(s):s,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!o.hasPointer,disableTouch:o.hasPointer||!o.hasTouch,disableMouse:o.hasPointer||o.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA
/*!
* Scrolloverflow 2.0.0 module for fullPage.js >= 3
* https://github.com/alvarotrigo/fullPage.js
* @license MIT licensed
*
* Copyright (C) 2015 alvarotrigo.com - A project by Alvaro Trigo
*/
function(t,i){t.fp_scrolloverflow=function(){t.IScroll||(IScroll=module.exports);var s="fp-scrollable",e="."+s,o=".active",n=".fp-section",r=n+o,h=".fp-slide",a=h+o,l=".fp-tableCell",c="fp-responsive",p="fp-auto-height-responsive";function d(t){var i=fp_utils.closest(t,n);return null!=i?parseInt(getComputedStyle(i)["padding-bottom"])+parseInt(getComputedStyle(i)["padding-top"]):0}function u(){var s=this;function e(){var t;fp_utils.hasClass(i.body,c)?(t=s.options.scrollOverflowHandler,r(function(i){fp_utils.hasClass(fp_utils.closest(i,n),p)&&t.remove(i)})):r(o)}function o(t){if(!fp_utils.hasClass(t,"fp-noscroll")){fp_utils.css(t,{overflow:"hidden"});var i,e=s.options.scrollOverflowHandler,o=e.wrapContent(),r=fp_utils.closest(t,n),h=e.scrollable(t),a=d(r);null!=h?i=e.scrollHeight(t):(i=t.scrollHeight-a,s.options.verticalCentered&&(i=f(l,t)[0].scrollHeight-a));var c=fp_utils.getWindowHeight()-a;i>c?null!=h?e.update(t,c):(s.options.verticalCentered?(fp_utils.wrapInner(f(l,t)[0],o.scroller),fp_utils.wrapInner(f(l,t)[0],o.scrollable)):(fp_utils.wrapInner(t,o.scroller),fp_utils.wrapInner(t,o.scrollable)),e.create(t,c,s.iscrollOptions)):e.remove(t),fp_utils.css(t,{overflow:""})}}function r(t){f(n).forEach(function(i){var s=f(h,i);s.length?s.forEach(function(i){t(i)}):t(i)})}s.options=null,s.init=function(o,n){return s.options=o,s.iscrollOptions=n,"complete"===i.readyState&&(e(),fullpage_api.shared.afterRenderActions()),t.addEventListener("load",function(){e(),fullpage_api.shared.afterRenderActions()}),s},s.createScrollBarForAll=e}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 f=null,m={refreshId:null,iScrollInstances:[],iscrollOptions:{scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0},init:function(i){f=fp_utils.$;var s="ontouchstart"in t||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints;return m.iscrollOptions.click=s,m.iscrollOptions=fp_utils.deepExtend(m.iscrollOptions,i.scrollOverflowOptions),(new u).init(i,m.iscrollOptions)},toggleWheel:function(t){f(e,f(r)[0]).forEach(function(i){var s=i.fp_iscrollInstance;null!=s&&(t?s.wheelOn():s.wheelOff())})},onLeave:function(){m.toggleWheel(!1)},beforeLeave:function(){m.onLeave()},afterLoad:function(){m.toggleWheel(!0)},create:function(t,i,s){f(e,t).forEach(function(e){fp_utils.css(e,{height:i+"px"});var o=e.fp_iscrollInstance;null!=o&&m.iScrollInstances.forEach(function(t){t.destroy()}),o=new IScroll(e,s),m.iScrollInstances.push(o),fp_utils.hasClass(fp_utils.closest(t,n),"active")||o.wheelOff(),e.fp_iscrollInstance=o})},isScrolled:function(t,i){var s=i.fp_iscrollInstance;return!s||("top"===t?s.y>=0&&!fp_utils.getScrollTop(i):"bottom"===t?0-s.y+fp_utils.getScrollTop(i)+1+i.offsetHeight>=i.scrollHeight:void 0)},scrollable:function(t){return f(".fp-slides",t).length?f(e,f(a,t)[0])[0]:f(e,t)[0]},scrollHeight:function(t){return f(".fp-scroller",f(e,t)[0])[0].scrollHeight},remove:function(t){if(null!=t){var i=f(e,t)[0];if(null!=i){var s=i.fp_iscrollInstance;null!=s&&s.destroy(),i.fp_iscrollInstance=null,f(".fp-scroller",t)[0].outerHTML=f(".fp-scroller",t)[0].innerHTML,f(e,t)[0].outerHTML=f(e,t)[0].innerHTML}}},update:function(t,i){clearTimeout(m.refreshId),m.refreshId=setTimeout(function(){m.iScrollInstances.forEach(function(t){t.refresh(),fullpage_api.silentMoveTo(fp_utils.index(f(r)[0])+1)})},150),fp_utils.css(f(e,t)[0],{height:i+"px"}),fp_utils.css(f(e,t)[0].parentNode,{height:i+d(t)+"px"})},wrapContent:function(){var t=i.createElement("div");t.className=s;var e=i.createElement("div");return e.className="fp-scroller",{scrollable:t,scroller:e}}};return{iscrollHandler:m}}()}(window,document);
//# sourceMappingURL=scrolloverflow.min.js.map