PageSourceSearch

https://vissage.ru/templates/ja_beranis/js/jquery.easing.1.3.js

js vissage.ru collected 2026-10-02 23:00:37 UTC 8,859 bytes, 219 lines download raw bytes

vendor: 8,426 bytes, lines 1-210
1var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
2if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
3{
4  let window = _____WB$wombat$assign$function_____("window");
5  let self = _____WB$wombat$assign$function_____("self");
6  let document = _____WB$wombat$assign$function_____("document");
7  let location = _____WB$wombat$assign$function_____("location");
8  let top = _____WB$wombat$assign$function_____("top");
9  let parent = _____WB$wombat$assign$function_____("parent");
10  let frames = _____WB$wombat$assign$function_____("frames");
11  let opener = _____WB$wombat$assign$function_____("opener");
12
13/*
14 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
15 *
16 * Uses the built in easing capabilities added In jQuery 1.1
17 * to offer multiple easing options
18 *
19 * TERMS OF USE - jQuery Easing
20 * 
21 * Open source under the BSD License. 
22 * 
23 * Copyright © 2008 George McGinley Smith
24 * All rights reserved.
25 * 
26 * Redistribution and use in source and binary forms, with or without modification, 
27 * are permitted provided that the following conditions are met:
28 * 
29 * Redistributions of source code must retain the above copyright notice, this list of 
30 * conditions and the following disclaimer.
31 * Redistributions in binary form must reproduce the above copyright notice, this list 
32 * of conditions and the following disclaimer in the documentation and/or other materials 
33 * provided with the distribution.
34 * 
35 * Neither the name of the author nor the names of contributors may be used to endorse 
36 * or promote products derived from this software without specific prior written permission.
37 * 
38 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
39 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
40 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
41 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
42 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
43 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
44 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
45 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
46 * OF THE POSSIBILITY OF SUCH DAMAGE. 
47 *
48*/
49
50// t: current time, b: begInnIng value, c: change In value, d: duration
51jQuery.easing['jswing'] = jQuery.easing['swing'];
52
53jQuery.extend( jQuery.easing,
54{
55	def: 'easeOutQuad',
56	swing: function (x, t, b, c, d) {
57		//alert(jQuery.easing.default);
58		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
59	},
60	easeInQuad: function (x, t, b, c, d) {
61		return c*(t/=d)*t + b;
62	},
63	easeOutQuad: function (x, t, b, c, d) {
64		return -c *(t/=d)*(t-2) + b;
65	},
66	easeInOutQuad: function (x, t, b, c, d) {
67		if ((t/=d/2) < 1) return c/2*t*t + b;
68		return -c/2 * ((--t)*(t-2) - 1) + b;
69	},
70	easeInCubic: function (x, t, b, c, d) {
71		return c*(t/=d)*t*t + b;
72	},
73	easeOutCubic: function (x, t, b, c, d) {
74		return c*((t=t/d-1)*t*t + 1) + b;
75	},
76	easeInOutCubic: function (x, t, b, c, d) {
77		if ((t/=d/2) < 1) return c/2*t*t*t + b;
78		return c/2*((t-=2)*t*t + 2) + b;
79	},
80	easeInQuart: function (x, t, b, c, d) {
81		return c*(t/=d)*t*t*t + b;
82	},
83	easeOutQuart: function (x, t, b, c, d) {
84		return -c * ((t=t/d-1)*t*t*t - 1) + b;
85	},
86	easeInOutQuart: function (x, t, b, c, d) {
87		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
88		return -c/2 * ((t-=2)*t*t*t - 2) + b;
89	},
90	easeInQuint: function (x, t, b, c, d) {
91		return c*(t/=d)*t*t*t*t + b;
92	},
93	easeOutQuint: function (x, t, b, c, d) {
94		return c*((t=t/d-1)*t*t*t*t + 1) + b;
95	},
96	easeInOutQuint: function (x, t, b, c, d) {
97		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
98		return c/2*((t-=2)*t*t*t*t + 2) + b;
99	},
100	easeInSine: function (x, t, b, c, d) {
101		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
102	},
103	easeOutSine: function (x, t, b, c, d) {
104		return c * Math.sin(t/d * (Math.PI/2)) + b;
105	},
106	easeInOutSine: function (x, t, b, c, d) {
107		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
108	},
109	easeInExpo: function (x, t, b, c, d) {
110		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
111	},
112	easeOutExpo: function (x, t, b, c, d) {
113		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
114	},
115	easeInOutExpo: function (x, t, b, c, d) {
116		if (t==0) return b;
117		if (t==d) return b+c;
118		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
119		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
120	},
121	easeInCirc: function (x, t, b, c, d) {
122		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
123	},
124	easeOutCirc: function (x, t, b, c, d) {
125		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
126	},
127	easeInOutCirc: function (x, t, b, c, d) {
128		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
129		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
130	},
131	easeInElastic: function (x, t, b, c, d) {
132		var s=1.70158;var p=0;var a=c;
133		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
134		if (a < Math.abs(c)) { a=c; var s=p/4; }
135		else var s = p/(2*Math.PI) * Math.asin (c/a);
136		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
137	},
138	easeOutElastic: function (x, t, b, c, d) {
139		var s=1.70158;var p=0;var a=c;
140		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
141		if (a < Math.abs(c)) { a=c; var s=p/4; }
142		else var s = p/(2*Math.PI) * Math.asin (c/a);
143		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
144	},
145	easeInOutElastic: function (x, t, b, c, d) {
146		var s=1.70158;var p=0;var a=c;
147		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
148		if (a < Math.abs(c)) { a=c; var s=p/4; }
149		else var s = p/(2*Math.PI) * Math.asin (c/a);
150		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
151		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
152	},
153	easeInBack: function (x, t, b, c, d, s) {
154		if (s == undefined) s = 1.70158;
155		return c*(t/=d)*t*((s+1)*t - s) + b;
156	},
157	easeOutBack: function (x, t, b, c, d, s) {
158		if (s == undefined) s = 1.70158;
159		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
160	},
161	easeInOutBack: function (x, t, b, c, d, s) {
162		if (s == undefined) s = 1.70158; 
163		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
164		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
165	},
166	easeInBounce: function (x, t, b, c, d) {
167		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
168	},
169	easeOutBounce: function (x, t, b, c, d) {
170		if ((t/=d) < (1/2.75)) {
171			return c*(7.5625*t*t) + b;
172		} else if (t < (2/2.75)) {
173			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
174		} else if (t < (2.5/2.75)) {
175			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
176		} else {
177			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
178		}
179	},
180	easeInOutBounce: function (x, t, b, c, d) {
181		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
182		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
183	}
184});
185
186/*
187 *
188 * TERMS OF USE - EASING EQUATIONS
189 * 
190 * Open source under the BSD License. 
191 * 
192 * Copyright © 2001 Robert Penner
193 * All rights reserved.
194 * 
195 * Redistribution and use in source and binary forms, with or without modification, 
196 * are permitted provided that the following conditions are met:
197 * 
198 * Redistributions of source code must retain the above copyright notice, this list of 
199 * conditions and the following disclaimer.
200 * Redistributions in binary form must reproduce the above copyright notice, this list 
201 * of conditions and the following disclaimer in the documentation and/or other materials 
202 * provided with the distribution.
203 * 
204 * Neither the name of the author nor the names of contributors may be used to endorse 
205 * or promote products derived from this software without specific prior written permission.
206 * 
207 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
208 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
209 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
210 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
211 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
212 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
213 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
214 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
215 * OF THE POSSIBILITY OF SUCH DAMAGE. 
216 *
217 */
218
219}

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.