tmaterialize.js - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
HTML git clone git://src.adamsgaard.dk/cosmo
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tmaterialize.js (267975B)
---
1 /*!
2 * Materialize v0.97.3 (http://materializecss.com)
3 * Copyright 2014-2015 Materialize
4 * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
5 */
6 /*
7 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
8 *
9 * Uses the built in easing capabilities added In jQuery 1.1
10 * to offer multiple easing options
11 *
12 * TERMS OF USE - jQuery Easing
13 *
14 * Open source under the BSD License.
15 *
16 * Copyright © 2008 George McGinley Smith
17 * All rights reserved.
18 *
19 * Redistribution and use in source and binary forms, with or without modification,
20 * are permitted provided that the following conditions are met:
21 *
22 * Redistributions of source code must retain the above copyright notice, this list of
23 * conditions and the following disclaimer.
24 * Redistributions in binary form must reproduce the above copyright notice, this list
25 * of conditions and the following disclaimer in the documentation and/or other materials
26 * provided with the distribution.
27 *
28 * Neither the name of the author nor the names of contributors may be used to endorse
29 * or promote products derived from this software without specific prior written permission.
30 *
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
32 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
33 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
34 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
35 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
36 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
37 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
38 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
39 * OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 */
42
43 // t: current time, b: begInnIng value, c: change In value, d: duration
44 jQuery.easing['jswing'] = jQuery.easing['swing'];
45
46 jQuery.extend( jQuery.easing,
47 {
48 def: 'easeOutQuad',
49 swing: function (x, t, b, c, d) {
50 //alert(jQuery.easing.default);
51 return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
52 },
53 easeInQuad: function (x, t, b, c, d) {
54 return c*(t/=d)*t + b;
55 },
56 easeOutQuad: function (x, t, b, c, d) {
57 return -c *(t/=d)*(t-2) + b;
58 },
59 easeInOutQuad: function (x, t, b, c, d) {
60 if ((t/=d/2) < 1) return c/2*t*t + b;
61 return -c/2 * ((--t)*(t-2) - 1) + b;
62 },
63 easeInCubic: function (x, t, b, c, d) {
64 return c*(t/=d)*t*t + b;
65 },
66 easeOutCubic: function (x, t, b, c, d) {
67 return c*((t=t/d-1)*t*t + 1) + b;
68 },
69 easeInOutCubic: function (x, t, b, c, d) {
70 if ((t/=d/2) < 1) return c/2*t*t*t + b;
71 return c/2*((t-=2)*t*t + 2) + b;
72 },
73 easeInQuart: function (x, t, b, c, d) {
74 return c*(t/=d)*t*t*t + b;
75 },
76 easeOutQuart: function (x, t, b, c, d) {
77 return -c * ((t=t/d-1)*t*t*t - 1) + b;
78 },
79 easeInOutQuart: function (x, t, b, c, d) {
80 if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
81 return -c/2 * ((t-=2)*t*t*t - 2) + b;
82 },
83 easeInQuint: function (x, t, b, c, d) {
84 return c*(t/=d)*t*t*t*t + b;
85 },
86 easeOutQuint: function (x, t, b, c, d) {
87 return c*((t=t/d-1)*t*t*t*t + 1) + b;
88 },
89 easeInOutQuint: function (x, t, b, c, d) {
90 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
91 return c/2*((t-=2)*t*t*t*t + 2) + b;
92 },
93 easeInSine: function (x, t, b, c, d) {
94 return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
95 },
96 easeOutSine: function (x, t, b, c, d) {
97 return c * Math.sin(t/d * (Math.PI/2)) + b;
98 },
99 easeInOutSine: function (x, t, b, c, d) {
100 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
101 },
102 easeInExpo: function (x, t, b, c, d) {
103 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
104 },
105 easeOutExpo: function (x, t, b, c, d) {
106 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
107 },
108 easeInOutExpo: function (x, t, b, c, d) {
109 if (t==0) return b;
110 if (t==d) return b+c;
111 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
112 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
113 },
114 easeInCirc: function (x, t, b, c, d) {
115 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
116 },
117 easeOutCirc: function (x, t, b, c, d) {
118 return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
119 },
120 easeInOutCirc: function (x, t, b, c, d) {
121 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
122 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
123 },
124 easeInElastic: function (x, t, b, c, d) {
125 var s=1.70158;var p=0;var a=c;
126 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
127 if (a < Math.abs(c)) { a=c; var s=p/4; }
128 else var s = p/(2*Math.PI) * Math.asin (c/a);
129 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
130 },
131 easeOutElastic: 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) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
137 },
138 easeInOutElastic: 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/2)==2) return b+c; if (!p) p=d*(.3*1.5);
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 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
144 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
145 },
146 easeInBack: function (x, t, b, c, d, s) {
147 if (s == undefined) s = 1.70158;
148 return c*(t/=d)*t*((s+1)*t - s) + b;
149 },
150 easeOutBack: function (x, t, b, c, d, s) {
151 if (s == undefined) s = 1.70158;
152 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
153 },
154 easeInOutBack: function (x, t, b, c, d, s) {
155 if (s == undefined) s = 1.70158;
156 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
157 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
158 },
159 easeInBounce: function (x, t, b, c, d) {
160 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
161 },
162 easeOutBounce: function (x, t, b, c, d) {
163 if ((t/=d) < (1/2.75)) {
164 return c*(7.5625*t*t) + b;
165 } else if (t < (2/2.75)) {
166 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
167 } else if (t < (2.5/2.75)) {
168 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
169 } else {
170 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
171 }
172 },
173 easeInOutBounce: function (x, t, b, c, d) {
174 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
175 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
176 }
177 });
178
179 /*
180 *
181 * TERMS OF USE - EASING EQUATIONS
182 *
183 * Open source under the BSD License.
184 *
185 * Copyright © 2001 Robert Penner
186 * All rights reserved.
187 *
188 * Redistribution and use in source and binary forms, with or without modification,
189 * are permitted provided that the following conditions are met:
190 *
191 * Redistributions of source code must retain the above copyright notice, this list of
192 * conditions and the following disclaimer.
193 * Redistributions in binary form must reproduce the above copyright notice, this list
194 * of conditions and the following disclaimer in the documentation and/or other materials
195 * provided with the distribution.
196 *
197 * Neither the name of the author nor the names of contributors may be used to endorse
198 * or promote products derived from this software without specific prior written permission.
199 *
200 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
201 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
202 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
203 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
204 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
205 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
206 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
207 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
208 * OF THE POSSIBILITY OF SUCH DAMAGE.
209 *
210 */; // Custom Easing
211 jQuery.extend( jQuery.easing,
212 {
213 easeInOutMaterial: function (x, t, b, c, d) {
214 if ((t/=d/2) < 1) return c/2*t*t + b;
215 return c/4*((t-=2)*t*t + 2) + b;
216 }
217 });
218
219 ;/*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
220 /*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
221 /*! Note that this has been modified by Materialize to confirm that Velocity is not already being imported. */
mx1.adamsgaard.dk:70 /src/cosmo/file/js/materialize.js.gph:232: line too long