Blame view
public/js/dist/vendors.970b.63925cd0805ceba21817.js
2.25 KB
e77200db5 Initial commit |
1 |
(window.webpackJsonp=window.webpackJsonp||[]).push([["970b"],{mxFJ:function(e,t,n){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):e.exports?e.exports=t(n("xeH2")):t(jQuery)}(function(e){"use strict";function t(t){return!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function n(t){return e.isFunction(t)||e.isPlainObject(t)?t:{top:t,left:t}}var o=e.scrollTo=function(t,n,o){return e(window).scrollTo(t,n,o)};return o.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(r,i,s){"object"==typeof i&&(s=i,i=0),"function"==typeof s&&(s={onAfter:s}),"max"===r&&(r=9e9),s=e.extend({},o.defaults,s),i=i||s.duration;var a=s.queue&&1<s.axis.length;return a&&(i/=2),s.offset=n(s.offset),s.over=n(s.over),this.each(function(){function f(t){var n=e.extend({},s,{queue:!0,duration:i,complete:t&&function(){t.call(l,p,s)}});d.animate(m,n)}if(null!==r){var c,u=t(this),l=u?this.contentWindow||window:this,d=e(l),p=r,m={};switch(typeof p){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(p)){p=n(p);break}p=u?e(p):e(p,l);case"object":if(0===p.length)return;(p.is||p.style)&&(c=(p=e(p)).offset())}var h=e.isFunction(s.offset)&&s.offset(l,p)||s.offset;e.each(s.axis.split(""),function(e,t){var n="x"===t?"Left":"Top",r=n.toLowerCase(),i="scroll"+n,w=d[i](),x=o.max(l,t);c?(m[i]=c[r]+(u?0:w-d.offset()[r]),s.margin&&(m[i]-=parseInt(p.css("margin"+n),10)||0,m[i]-=parseInt(p.css("border"+n+"Width"),10)||0),m[i]+=h[r]||0,s.over[r]&&(m[i]+=p["x"===t?"width":"height"]()*s.over[r])):(n=p[r],m[i]=n.slice&&"%"===n.slice(-1)?parseFloat(n)/100*x:n),s.limit&&/^\d+$/.test(m[i])&&(m[i]=0>=m[i]?0:Math.min(m[i],x)),!e&&1<s.axis.length&&(w===m[i]?m={}:a&&(f(s.onAfterFirst),m={}))}),f(s.onAfter)}})},o.max=function(n,o){var r="scroll"+(i="x"===o?"Width":"Height");if(!t(n))return n[r]-e(n)[i.toLowerCase()]();var i="client"+i,s=(a=n.ownerDocument||n.document).documentElement,a=a.body;return Math.max(s[r],a[r])-Math.min(s[i],a[i])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var n=this.get(t);if(t.options.interrupt&&t._last&&t._last!==n)return e(t.elem).stop();var o=Math.round(t.now);n!==o&&(e(t.elem)[t.prop](o),t._last=this.get(t))}},o})}}]); |