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