vendor: 4,725 bytes, lines 1-139
1/* 2 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 3 */ 4 5// t: current time, b: begInnIng value, c: change In value, d: duration 6jQuery.easing['jswing'] = jQuery.easing['swing']; 7 8jQuery.extend( jQuery.easing, 9{ 10 def: 'easeOutQuad', 11 swing: function (x, t, b, c, d) { 12 //alert(jQuery.easing.default); 13 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 14 }, 15 easeInQuad: function (x, t, b, c, d) { 16 return c*(t/=d)*t + b; 17 }, 18 easeOutQuad: function (x, t, b, c, d) { 19 return -c *(t/=d)*(t-2) + b; 20 }, 21 easeInOutQuad: function (x, t, b, c, d) { 22 if ((t/=d/2) < 1) return c/2*t*t + b; 23 return -c/2 * ((--t)*(t-2) - 1) + b; 24 }, 25 easeInCubic: function (x, t, b, c, d) { 26 return c*(t/=d)*t*t + b; 27 }, 28 easeOutCubic: function (x, t, b, c, d) { 29 return c*((t=t/d-1)*t*t + 1) + b; 30 }, 31 easeInOutCubic: function (x, t, b, c, d) { 32 if ((t/=d/2) < 1) return c/2*t*t*t + b; 33 return c/2*((t-=2)*t*t + 2) + b; 34 }, 35 easeInQuart: function (x, t, b, c, d) { 36 return c*(t/=d)*t*t*t + b; 37 }, 38 easeOutQuart: function (x, t, b, c, d) { 39 return -c * ((t=t/d-1)*t*t*t - 1) + b; 40 }, 41 easeInOutQuart: function (x, t, b, c, d) { 42 if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 43 return -c/2 * ((t-=2)*t*t*t - 2) + b; 44 }, 45 easeInQuint: function (x, t, b, c, d) { 46 return c*(t/=d)*t*t*t*t + b; 47 }, 48 easeOutQuint: function (x, t, b, c, d) { 49 return c*((t=t/d-1)*t*t*t*t + 1) + b; 50 }, 51 easeInOutQuint: function (x, t, b, c, d) { 52 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 53 return c/2*((t-=2)*t*t*t*t + 2) + b; 54 }, 55 easeInSine: function (x, t, b, c, d) { 56 return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 57 }, 58 easeOutSine: function (x, t, b, c, d) { 59 return c * Math.sin(t/d * (Math.PI/2)) + b; 60 }, 61 easeInOutSine: function (x, t, b, c, d) { 62 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 63 }, 64 easeInExpo: function (x, t, b, c, d) { 65 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 66 }, 67 easeOutExpo: function (x, t, b, c, d) { 68 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 69 }, 70 easeInOutExpo: function (x, t, b, c, d) { 71 if (t==0) return b; 72 if (t==d) return b+c; 73 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 74 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 75 }, 76 easeInCirc: function (x, t, b, c, d) { 77 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 78 }, 79 easeOutCirc: function (x, t, b, c, d) { 80 return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 81 }, 82 easeInOutCirc: function (x, t, b, c, d) { 83 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 84 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 85 }, 86 easeInElastic: function (x, t, b, c, d) { 87 var s=1.70158;var p=0;var a=c; 88 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 89 if (a < Math.abs(c)) { a=c; var s=p/4; } 90 else var s = p/(2*Math.PI) * Math.asin (c/a); 91 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 92 }, 93 easeOutElastic: function (x, t, b, c, d) { 94 var s=1.70158;var p=0;var a=c; 95 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 96 if (a < Math.abs(c)) { a=c; var s=p/4; } 97 else var s = p/(2*Math.PI) * Math.asin (c/a); 98 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 99 }, 100 easeInOutElastic: function (x, t, b, c, d) { 101 var s=1.70158;var p=0;var a=c; 102 if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 103 if (a < Math.abs(c)) { a=c; var s=p/4; } 104 else var s = p/(2*Math.PI) * Math.asin (c/a); 105 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 106 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 107 }, 108 easeInBack: function (x, t, b, c, d, s) { 109 if (s == undefined) s = 1.70158; 110 return c*(t/=d)*t*((s+1)*t - s) + b; 111 }, 112 easeOutBack: function (x, t, b, c, d, s) { 113 if (s == undefined) s = 1.70158; 114 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 115 }, 116 easeInOutBack: function (x, t, b, c, d, s) { 117 if (s == undefined) s = 1.70158; 118 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 119 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 120 }, 121 easeInBounce: function (x, t, b, c, d) { 122 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 123 }, 124 easeOutBounce: function (x, t, b, c, d) { 125 if ((t/=d) < (1/2.75)) { 126 return c*(7.5625*t*t) + b; 127 } else if (t < (2/2.75)) { 128 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 129 } else if (t < (2.5/2.75)) { 130 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 131 } else { 132 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 133 } 134 }, 135 easeInOutBounce: function (x, t, b, c, d) { 136 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 137 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 138 } 139});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.