src/pyams_skin/resources/js/ext/jquery-scrollTo.min.js
changeset 329 fa838ff79f03
parent 328 277aea3b91ec
child 330 d9e47bf8c17f
--- a/src/pyams_skin/resources/js/ext/jquery-scrollTo.min.js	Mon May 28 14:06:21 2018 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-(function(c){var a=c.scrollTo=function(e,d,f){return c(window).scrollTo(e,d,f)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1,limit:true};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var e=this,f=!e.nodeName||c.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!f){return e}var d=(e.contentWindow||e).document||e.ownerDocument||e;return/webkit/i.test(navigator.userAgent)||d.compatMode=="BackCompat"?d.body:d.documentElement})};c.fn.scrollTo=function(i,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(i=="max"){i=9000000000}d=c.extend({},a.defaults,d);e=e||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){if(i==null){return}var n=this,j=c(n),k=i,h,f={},m=j.is("html,body");switch(typeof k){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(k)){k=b(k);break}k=c(k,this);if(!k.length){return}case"object":if(k.is||k.style){h=(k=c(k)).offset()}}var l=c.isFunction(d.offset)&&d.offset(n,k)||d.offset;c.each(d.axis.split(""),function(t,r){var p=r=="x"?"Left":"Top",v=p.toLowerCase(),s="scroll"+p,q=n[s],o=a.max(n,r);if(h){f[s]=h[v]+(m?0:q-j.offset()[v]);if(d.margin){f[s]-=parseInt(k.css("margin"+p))||0;f[s]-=parseInt(k.css("border"+p+"Width"))||0}f[s]+=l[v]||0;if(d.over[v]){f[s]+=k[r=="x"?"width":"height"]()*d.over[v]}}else{var u=k[v];f[s]=u.slice&&u.slice(-1)=="%"?parseFloat(u)/100*o:u}if(d.limit&&/^\d+$/.test(f[s])){f[s]=f[s]<=0?0:Math.min(f[s],o)}if(!t&&d.queue){if(q!=f[s]){g(d.onAfterFirst)}delete f[s]}});g(d.onAfter);function g(o){j.animate(f,e,d.easing,o&&function(){o.call(this,k,d)})}}).end()};a.max=function(h,g){var k=g=="x"?"Width":"Height",f="scroll"+k;if(!c(h).is("html,body")){return h[f]-c(h)[k.toLowerCase()]()}var j="client"+k,i=h.ownerDocument.documentElement,e=h.ownerDocument.body;return Math.max(i[f],e[f])-Math.min(i[j],e[j])};function b(d){return c.isFunction(d)||typeof d=="object"?d:{top:d,left:d}}return a})(jQuery);
\ No newline at end of file