concen 0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +20 -0
- data/lib/concen/version.rb +1 -1
- data/public/concen/images/button-grid.png +0 -0
- data/public/concen/images/button-next-disabled.png +0 -0
- data/public/concen/images/button-next.png +0 -0
- data/public/concen/images/button-prev-disabled.png +0 -0
- data/public/concen/images/button-prev.png +0 -0
- data/public/concen/images/fileuploader-loading.gif +0 -0
- data/public/concen/images/glyph-small-check-alt.png +0 -0
- data/public/concen/images/glyph-small-check.png +0 -0
- data/public/concen/images/glyph-small-delete.png +0 -0
- data/public/concen/images/glyph-small-handle.png +0 -0
- data/public/concen/images/grid.png +0 -0
- data/public/concen/images/icon-handle.png +0 -0
- data/public/concen/images/magnifying-glass.png +0 -0
- data/public/concen/images/original/button-grid.png +0 -0
- data/public/concen/images/original/button-next-disabled.png +0 -0
- data/public/concen/images/original/button-next.png +0 -0
- data/public/concen/images/original/button-prev-disabled.png +0 -0
- data/public/concen/images/original/button-prev.png +0 -0
- data/public/concen/images/original/glyph-small-check-alt.png +0 -0
- data/public/concen/images/original/glyph-small-check.png +0 -0
- data/public/concen/images/original/glyph-small-delete.png +0 -0
- data/public/concen/images/original/glyph-small-handle.png +0 -0
- data/public/concen/images/original/magnifying-glass.png +0 -0
- data/public/concen/images/original/record-visit.gif +0 -0
- data/public/concen/images/original/search-field.png +0 -0
- data/public/concen/images/record-visit.gif +0 -0
- data/public/concen/images/search-field.png +0 -0
- data/public/concen/javascripts/ace/ace-uncompressed.js +17635 -0
- data/public/concen/javascripts/ace/ace.js +1 -0
- data/public/concen/javascripts/ace/cockpit-uncompressed.js +2504 -0
- data/public/concen/javascripts/ace/cockpit.js +1 -0
- data/public/concen/javascripts/ace/keybinding-emacs.js +1 -0
- data/public/concen/javascripts/ace/keybinding-vim.js +1 -0
- data/public/concen/javascripts/ace/mode-c_cpp.js +1 -0
- data/public/concen/javascripts/ace/mode-clojure.js +1 -0
- data/public/concen/javascripts/ace/mode-coffee.js +1 -0
- data/public/concen/javascripts/ace/mode-csharp.js +1 -0
- data/public/concen/javascripts/ace/mode-css.js +1 -0
- data/public/concen/javascripts/ace/mode-groovy.js +1 -0
- data/public/concen/javascripts/ace/mode-html.js +1 -0
- data/public/concen/javascripts/ace/mode-java.js +1 -0
- data/public/concen/javascripts/ace/mode-javascript.js +1 -0
- data/public/concen/javascripts/ace/mode-json.js +1 -0
- data/public/concen/javascripts/ace/mode-ocaml.js +1 -0
- data/public/concen/javascripts/ace/mode-perl.js +1 -0
- data/public/concen/javascripts/ace/mode-php.js +1 -0
- data/public/concen/javascripts/ace/mode-python.js +1 -0
- data/public/concen/javascripts/ace/mode-ruby.js +1 -0
- data/public/concen/javascripts/ace/mode-scad.js +1 -0
- data/public/concen/javascripts/ace/mode-scala.js +1 -0
- data/public/concen/javascripts/ace/mode-scss.js +1 -0
- data/public/concen/javascripts/ace/mode-svg.js +1 -0
- data/public/concen/javascripts/ace/mode-textile.js +1 -0
- data/public/concen/javascripts/ace/mode-xml.js +1 -0
- data/public/concen/javascripts/ace/theme-clouds.js +1 -0
- data/public/concen/javascripts/ace/theme-clouds_midnight.js +1 -0
- data/public/concen/javascripts/ace/theme-cobalt.js +1 -0
- data/public/concen/javascripts/ace/theme-crimson_editor.js +1 -0
- data/public/concen/javascripts/ace/theme-dawn.js +1 -0
- data/public/concen/javascripts/ace/theme-eclipse.js +1 -0
- data/public/concen/javascripts/ace/theme-idle_fingers.js +1 -0
- data/public/concen/javascripts/ace/theme-kr_theme.js +1 -0
- data/public/concen/javascripts/ace/theme-merbivore.js +1 -0
- data/public/concen/javascripts/ace/theme-merbivore_soft.js +1 -0
- data/public/concen/javascripts/ace/theme-mono_industrial.js +1 -0
- data/public/concen/javascripts/ace/theme-monokai.js +1 -0
- data/public/concen/javascripts/ace/theme-pastel_on_dark.js +1 -0
- data/public/concen/javascripts/ace/theme-solarized_dark.js +1 -0
- data/public/concen/javascripts/ace/theme-solarized_light.js +1 -0
- data/public/concen/javascripts/ace/theme-textmate.js +1 -0
- data/public/concen/javascripts/ace/theme-twilight.js +1 -0
- data/public/concen/javascripts/ace/theme-vibrant_ink.js +1 -0
- data/public/concen/javascripts/ace/worker-coffee.js +1 -0
- data/public/concen/javascripts/ace/worker-css.js +1 -0
- data/public/concen/javascripts/ace/worker-javascript.js +1 -0
- data/public/concen/javascripts/blank.gif +0 -0
- data/public/concen/javascripts/controlcenter.js +173 -0
- data/public/concen/javascripts/excanvas.js +1427 -0
- data/public/concen/javascripts/fileuploader.js +1251 -0
- data/public/concen/javascripts/jquery-ui/jquery.ui.autocomplete.js +612 -0
- data/public/concen/javascripts/jquery-ui/jquery.ui.core.js +312 -0
- data/public/concen/javascripts/jquery-ui/jquery.ui.draggable.js +823 -0
- data/public/concen/javascripts/jquery-ui/jquery.ui.droppable.js +296 -0
- data/public/concen/javascripts/jquery-ui/jquery.ui.mouse.js +160 -0
- data/public/concen/javascripts/jquery-ui/jquery.ui.position.js +252 -0
- data/public/concen/javascripts/jquery-ui/jquery.ui.resizable.js +842 -0
- data/public/concen/javascripts/jquery-ui/jquery.ui.sortable.js +1077 -0
- data/public/concen/javascripts/jquery-ui/jquery.ui.widget.js +262 -0
- data/public/concen/javascripts/jquery.browser.min.js +1 -0
- data/public/concen/javascripts/jquery.easing.1.3.js +205 -0
- data/public/concen/javascripts/jquery.equal-heights.js +30 -0
- data/public/concen/javascripts/jquery.flot.js +2599 -0
- data/public/concen/javascripts/jquery.flot.resize.js +60 -0
- data/public/concen/javascripts/jquery.flot.stack.js +184 -0
- data/public/concen/javascripts/jquery.js +8981 -0
- data/public/concen/javascripts/jquery.min.js +18 -0
- data/public/concen/javascripts/jquery.placeholder.js +101 -0
- data/public/concen/javascripts/jquery.ui.nestedSortable.js +356 -0
- data/public/concen/javascripts/jquery_ujs.js +316 -0
- data/public/concen/javascripts/modernizr.js +1116 -0
- data/public/concen/javascripts/page.js +153 -0
- data/public/concen/javascripts/performance.js +110 -0
- data/public/concen/javascripts/pxToEm.js +56 -0
- data/public/concen/javascripts/status.js +15 -0
- data/public/concen/javascripts/traffic.js +113 -0
- data/public/concen/javascripts/user.js +14 -0
- data/public/concen/stylesheets/application.css +1342 -0
- data/public/concen/stylesheets/fileuploader.css +31 -0
- data/public/concen/stylesheets/ie.css +124 -0
- data/public/concen/stylesheets/jquery.ui.base.css +11 -0
- data/public/concen/stylesheets/jquery.ui.core.css +41 -0
- data/public/concen/stylesheets/jquery.ui.resizable.css +20 -0
- data/public/concen/stylesheets/main.css +1225 -0
- data/public/concen/stylesheets/non_ios.css +28 -0
- data/public/concen/stylesheets/print.css +84 -0
- metadata +141 -25
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jQuery UI Widget 1.8.14
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
|
5
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
6
|
+
* http://jquery.org/license
|
|
7
|
+
*
|
|
8
|
+
* http://docs.jquery.com/UI/Widget
|
|
9
|
+
*/
|
|
10
|
+
(function( $, undefined ) {
|
|
11
|
+
|
|
12
|
+
// jQuery 1.4+
|
|
13
|
+
if ( $.cleanData ) {
|
|
14
|
+
var _cleanData = $.cleanData;
|
|
15
|
+
$.cleanData = function( elems ) {
|
|
16
|
+
for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
|
|
17
|
+
$( elem ).triggerHandler( "remove" );
|
|
18
|
+
}
|
|
19
|
+
_cleanData( elems );
|
|
20
|
+
};
|
|
21
|
+
} else {
|
|
22
|
+
var _remove = $.fn.remove;
|
|
23
|
+
$.fn.remove = function( selector, keepData ) {
|
|
24
|
+
return this.each(function() {
|
|
25
|
+
if ( !keepData ) {
|
|
26
|
+
if ( !selector || $.filter( selector, [ this ] ).length ) {
|
|
27
|
+
$( "*", this ).add( [ this ] ).each(function() {
|
|
28
|
+
$( this ).triggerHandler( "remove" );
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return _remove.call( $(this), selector, keepData );
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
$.widget = function( name, base, prototype ) {
|
|
38
|
+
var namespace = name.split( "." )[ 0 ],
|
|
39
|
+
fullName;
|
|
40
|
+
name = name.split( "." )[ 1 ];
|
|
41
|
+
fullName = namespace + "-" + name;
|
|
42
|
+
|
|
43
|
+
if ( !prototype ) {
|
|
44
|
+
prototype = base;
|
|
45
|
+
base = $.Widget;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// create selector for plugin
|
|
49
|
+
$.expr[ ":" ][ fullName ] = function( elem ) {
|
|
50
|
+
return !!$.data( elem, name );
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
$[ namespace ] = $[ namespace ] || {};
|
|
54
|
+
$[ namespace ][ name ] = function( options, element ) {
|
|
55
|
+
// allow instantiation without initializing for simple inheritance
|
|
56
|
+
if ( arguments.length ) {
|
|
57
|
+
this._createWidget( options, element );
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var basePrototype = new base();
|
|
62
|
+
// we need to make the options hash a property directly on the new instance
|
|
63
|
+
// otherwise we'll modify the options hash on the prototype that we're
|
|
64
|
+
// inheriting from
|
|
65
|
+
// $.each( basePrototype, function( key, val ) {
|
|
66
|
+
// if ( $.isPlainObject(val) ) {
|
|
67
|
+
// basePrototype[ key ] = $.extend( {}, val );
|
|
68
|
+
// }
|
|
69
|
+
// });
|
|
70
|
+
basePrototype.options = $.extend( true, {}, basePrototype.options );
|
|
71
|
+
$[ namespace ][ name ].prototype = $.extend( true, basePrototype, {
|
|
72
|
+
namespace: namespace,
|
|
73
|
+
widgetName: name,
|
|
74
|
+
widgetEventPrefix: $[ namespace ][ name ].prototype.widgetEventPrefix || name,
|
|
75
|
+
widgetBaseClass: fullName
|
|
76
|
+
}, prototype );
|
|
77
|
+
|
|
78
|
+
$.widget.bridge( name, $[ namespace ][ name ] );
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
$.widget.bridge = function( name, object ) {
|
|
82
|
+
$.fn[ name ] = function( options ) {
|
|
83
|
+
var isMethodCall = typeof options === "string",
|
|
84
|
+
args = Array.prototype.slice.call( arguments, 1 ),
|
|
85
|
+
returnValue = this;
|
|
86
|
+
|
|
87
|
+
// allow multiple hashes to be passed on init
|
|
88
|
+
options = !isMethodCall && args.length ?
|
|
89
|
+
$.extend.apply( null, [ true, options ].concat(args) ) :
|
|
90
|
+
options;
|
|
91
|
+
|
|
92
|
+
// prevent calls to internal methods
|
|
93
|
+
if ( isMethodCall && options.charAt( 0 ) === "_" ) {
|
|
94
|
+
return returnValue;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if ( isMethodCall ) {
|
|
98
|
+
this.each(function() {
|
|
99
|
+
var instance = $.data( this, name ),
|
|
100
|
+
methodValue = instance && $.isFunction( instance[options] ) ?
|
|
101
|
+
instance[ options ].apply( instance, args ) :
|
|
102
|
+
instance;
|
|
103
|
+
// TODO: add this back in 1.9 and use $.error() (see #5972)
|
|
104
|
+
// if ( !instance ) {
|
|
105
|
+
// throw "cannot call methods on " + name + " prior to initialization; " +
|
|
106
|
+
// "attempted to call method '" + options + "'";
|
|
107
|
+
// }
|
|
108
|
+
// if ( !$.isFunction( instance[options] ) ) {
|
|
109
|
+
// throw "no such method '" + options + "' for " + name + " widget instance";
|
|
110
|
+
// }
|
|
111
|
+
// var methodValue = instance[ options ].apply( instance, args );
|
|
112
|
+
if ( methodValue !== instance && methodValue !== undefined ) {
|
|
113
|
+
returnValue = methodValue;
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
} else {
|
|
118
|
+
this.each(function() {
|
|
119
|
+
var instance = $.data( this, name );
|
|
120
|
+
if ( instance ) {
|
|
121
|
+
instance.option( options || {} )._init();
|
|
122
|
+
} else {
|
|
123
|
+
$.data( this, name, new object( options, this ) );
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return returnValue;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
$.Widget = function( options, element ) {
|
|
133
|
+
// allow instantiation without initializing for simple inheritance
|
|
134
|
+
if ( arguments.length ) {
|
|
135
|
+
this._createWidget( options, element );
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
$.Widget.prototype = {
|
|
140
|
+
widgetName: "widget",
|
|
141
|
+
widgetEventPrefix: "",
|
|
142
|
+
options: {
|
|
143
|
+
disabled: false
|
|
144
|
+
},
|
|
145
|
+
_createWidget: function( options, element ) {
|
|
146
|
+
// $.widget.bridge stores the plugin instance, but we do it anyway
|
|
147
|
+
// so that it's stored even before the _create function runs
|
|
148
|
+
$.data( element, this.widgetName, this );
|
|
149
|
+
this.element = $( element );
|
|
150
|
+
this.options = $.extend( true, {},
|
|
151
|
+
this.options,
|
|
152
|
+
this._getCreateOptions(),
|
|
153
|
+
options );
|
|
154
|
+
|
|
155
|
+
var self = this;
|
|
156
|
+
this.element.bind( "remove." + this.widgetName, function() {
|
|
157
|
+
self.destroy();
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
this._create();
|
|
161
|
+
this._trigger( "create" );
|
|
162
|
+
this._init();
|
|
163
|
+
},
|
|
164
|
+
_getCreateOptions: function() {
|
|
165
|
+
return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ];
|
|
166
|
+
},
|
|
167
|
+
_create: function() {},
|
|
168
|
+
_init: function() {},
|
|
169
|
+
|
|
170
|
+
destroy: function() {
|
|
171
|
+
this.element
|
|
172
|
+
.unbind( "." + this.widgetName )
|
|
173
|
+
.removeData( this.widgetName );
|
|
174
|
+
this.widget()
|
|
175
|
+
.unbind( "." + this.widgetName )
|
|
176
|
+
.removeAttr( "aria-disabled" )
|
|
177
|
+
.removeClass(
|
|
178
|
+
this.widgetBaseClass + "-disabled " +
|
|
179
|
+
"ui-state-disabled" );
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
widget: function() {
|
|
183
|
+
return this.element;
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
option: function( key, value ) {
|
|
187
|
+
var options = key;
|
|
188
|
+
|
|
189
|
+
if ( arguments.length === 0 ) {
|
|
190
|
+
// don't return a reference to the internal hash
|
|
191
|
+
return $.extend( {}, this.options );
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (typeof key === "string" ) {
|
|
195
|
+
if ( value === undefined ) {
|
|
196
|
+
return this.options[ key ];
|
|
197
|
+
}
|
|
198
|
+
options = {};
|
|
199
|
+
options[ key ] = value;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
this._setOptions( options );
|
|
203
|
+
|
|
204
|
+
return this;
|
|
205
|
+
},
|
|
206
|
+
_setOptions: function( options ) {
|
|
207
|
+
var self = this;
|
|
208
|
+
$.each( options, function( key, value ) {
|
|
209
|
+
self._setOption( key, value );
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
return this;
|
|
213
|
+
},
|
|
214
|
+
_setOption: function( key, value ) {
|
|
215
|
+
this.options[ key ] = value;
|
|
216
|
+
|
|
217
|
+
if ( key === "disabled" ) {
|
|
218
|
+
this.widget()
|
|
219
|
+
[ value ? "addClass" : "removeClass"](
|
|
220
|
+
this.widgetBaseClass + "-disabled" + " " +
|
|
221
|
+
"ui-state-disabled" )
|
|
222
|
+
.attr( "aria-disabled", value );
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
return this;
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
enable: function() {
|
|
229
|
+
return this._setOption( "disabled", false );
|
|
230
|
+
},
|
|
231
|
+
disable: function() {
|
|
232
|
+
return this._setOption( "disabled", true );
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
_trigger: function( type, event, data ) {
|
|
236
|
+
var callback = this.options[ type ];
|
|
237
|
+
|
|
238
|
+
event = $.Event( event );
|
|
239
|
+
event.type = ( type === this.widgetEventPrefix ?
|
|
240
|
+
type :
|
|
241
|
+
this.widgetEventPrefix + type ).toLowerCase();
|
|
242
|
+
data = data || {};
|
|
243
|
+
|
|
244
|
+
// copy original event properties over to the new event
|
|
245
|
+
// this would happen if we could call $.event.fix instead of $.Event
|
|
246
|
+
// but we don't have a way to force an event to be fixed multiple times
|
|
247
|
+
if ( event.originalEvent ) {
|
|
248
|
+
for ( var i = $.event.props.length, prop; i; ) {
|
|
249
|
+
prop = $.event.props[ --i ];
|
|
250
|
+
event[ prop ] = event.originalEvent[ prop ];
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
this.element.trigger( event, data );
|
|
255
|
+
|
|
256
|
+
return !( $.isFunction(callback) &&
|
|
257
|
+
callback.call( this.element[0], event, data ) === false ||
|
|
258
|
+
event.isDefaultPrevented() );
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
})( jQuery );
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function($){$.browserTest=function(a,z){var u='unknown',x='X',m=function(r,h){for(var i=0;i<h.length;i=i+1){r=r.replace(h[i][0],h[i][1]);}return r;},c=function(i,a,b,c){var r={name:m((a.exec(i)||[u,u])[1],b)};r[r.name]=true;r.version=(c.exec(i)||[x,x,x,x])[3];if(r.name.match(/safari/)&&r.version>400){r.version='2.0';}if(r.name==='presto'){r.version=($.browser.version>9.27)?'futhark':'linear_b';}r.versionNumber=parseFloat(r.version,10)||0;r.versionX=(r.version!==x)?(r.version+'').substr(0,1):x;r.className=r.name+r.versionX;return r;};a=(a.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?m(a,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,''],['Chrome Safari','Chrome'],['KHTML','Konqueror'],['Minefield','Firefox'],['Navigator','Netscape']]):a).toLowerCase();$.browser=$.extend((!z)?$.browser:{},c(a,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));$.layout=c(a,/(gecko|konqueror|msie|opera|webkit)/,[['konqueror','khtml'],['msie','trident'],['opera','presto']],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);$.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[u])[0].replace('sunos','solaris')};if(!z){$('html').addClass([$.os.name,$.browser.name,$.browser.className,$.layout.name,$.layout.className].join(' '));}};$.browserTest(navigator.userAgent);})(jQuery);
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
|
3
|
+
*
|
|
4
|
+
* Uses the built in easing capabilities added In jQuery 1.1
|
|
5
|
+
* to offer multiple easing options
|
|
6
|
+
*
|
|
7
|
+
* TERMS OF USE - jQuery Easing
|
|
8
|
+
*
|
|
9
|
+
* Open source under the BSD License.
|
|
10
|
+
*
|
|
11
|
+
* Copyright © 2008 George McGinley Smith
|
|
12
|
+
* All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
15
|
+
* are permitted provided that the following conditions are met:
|
|
16
|
+
*
|
|
17
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
|
18
|
+
* conditions and the following disclaimer.
|
|
19
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
20
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
21
|
+
* provided with the distribution.
|
|
22
|
+
*
|
|
23
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
24
|
+
* or promote products derived from this software without specific prior written permission.
|
|
25
|
+
*
|
|
26
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
27
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
28
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
29
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
30
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
31
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
32
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
33
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
34
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
// t: current time, b: begInnIng value, c: change In value, d: duration
|
|
39
|
+
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
|
40
|
+
|
|
41
|
+
jQuery.extend( jQuery.easing,
|
|
42
|
+
{
|
|
43
|
+
def: 'easeOutQuad',
|
|
44
|
+
swing: function (x, t, b, c, d) {
|
|
45
|
+
//alert(jQuery.easing.default);
|
|
46
|
+
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
|
47
|
+
},
|
|
48
|
+
easeInQuad: function (x, t, b, c, d) {
|
|
49
|
+
return c*(t/=d)*t + b;
|
|
50
|
+
},
|
|
51
|
+
easeOutQuad: function (x, t, b, c, d) {
|
|
52
|
+
return -c *(t/=d)*(t-2) + b;
|
|
53
|
+
},
|
|
54
|
+
easeInOutQuad: function (x, t, b, c, d) {
|
|
55
|
+
if ((t/=d/2) < 1) return c/2*t*t + b;
|
|
56
|
+
return -c/2 * ((--t)*(t-2) - 1) + b;
|
|
57
|
+
},
|
|
58
|
+
easeInCubic: function (x, t, b, c, d) {
|
|
59
|
+
return c*(t/=d)*t*t + b;
|
|
60
|
+
},
|
|
61
|
+
easeOutCubic: function (x, t, b, c, d) {
|
|
62
|
+
return c*((t=t/d-1)*t*t + 1) + b;
|
|
63
|
+
},
|
|
64
|
+
easeInOutCubic: function (x, t, b, c, d) {
|
|
65
|
+
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
|
66
|
+
return c/2*((t-=2)*t*t + 2) + b;
|
|
67
|
+
},
|
|
68
|
+
easeInQuart: function (x, t, b, c, d) {
|
|
69
|
+
return c*(t/=d)*t*t*t + b;
|
|
70
|
+
},
|
|
71
|
+
easeOutQuart: function (x, t, b, c, d) {
|
|
72
|
+
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
|
73
|
+
},
|
|
74
|
+
easeInOutQuart: function (x, t, b, c, d) {
|
|
75
|
+
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
|
76
|
+
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
|
77
|
+
},
|
|
78
|
+
easeInQuint: function (x, t, b, c, d) {
|
|
79
|
+
return c*(t/=d)*t*t*t*t + b;
|
|
80
|
+
},
|
|
81
|
+
easeOutQuint: function (x, t, b, c, d) {
|
|
82
|
+
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
|
83
|
+
},
|
|
84
|
+
easeInOutQuint: function (x, t, b, c, d) {
|
|
85
|
+
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
|
86
|
+
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
|
87
|
+
},
|
|
88
|
+
easeInSine: function (x, t, b, c, d) {
|
|
89
|
+
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
|
90
|
+
},
|
|
91
|
+
easeOutSine: function (x, t, b, c, d) {
|
|
92
|
+
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
|
93
|
+
},
|
|
94
|
+
easeInOutSine: function (x, t, b, c, d) {
|
|
95
|
+
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
|
96
|
+
},
|
|
97
|
+
easeInExpo: function (x, t, b, c, d) {
|
|
98
|
+
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
|
99
|
+
},
|
|
100
|
+
easeOutExpo: function (x, t, b, c, d) {
|
|
101
|
+
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
|
102
|
+
},
|
|
103
|
+
easeInOutExpo: function (x, t, b, c, d) {
|
|
104
|
+
if (t==0) return b;
|
|
105
|
+
if (t==d) return b+c;
|
|
106
|
+
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
|
107
|
+
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
|
108
|
+
},
|
|
109
|
+
easeInCirc: function (x, t, b, c, d) {
|
|
110
|
+
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
|
111
|
+
},
|
|
112
|
+
easeOutCirc: function (x, t, b, c, d) {
|
|
113
|
+
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
|
114
|
+
},
|
|
115
|
+
easeInOutCirc: function (x, t, b, c, d) {
|
|
116
|
+
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
|
117
|
+
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
|
118
|
+
},
|
|
119
|
+
easeInElastic: function (x, t, b, c, d) {
|
|
120
|
+
var s=1.70158;var p=0;var a=c;
|
|
121
|
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
|
122
|
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
|
123
|
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
|
124
|
+
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
|
125
|
+
},
|
|
126
|
+
easeOutElastic: function (x, t, b, c, d) {
|
|
127
|
+
var s=1.70158;var p=0;var a=c;
|
|
128
|
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
|
129
|
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
|
130
|
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
|
131
|
+
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
|
132
|
+
},
|
|
133
|
+
easeInOutElastic: function (x, t, b, c, d) {
|
|
134
|
+
var s=1.70158;var p=0;var a=c;
|
|
135
|
+
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
|
136
|
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
|
137
|
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
|
138
|
+
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
|
139
|
+
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
|
140
|
+
},
|
|
141
|
+
easeInBack: function (x, t, b, c, d, s) {
|
|
142
|
+
if (s == undefined) s = 1.70158;
|
|
143
|
+
return c*(t/=d)*t*((s+1)*t - s) + b;
|
|
144
|
+
},
|
|
145
|
+
easeOutBack: function (x, t, b, c, d, s) {
|
|
146
|
+
if (s == undefined) s = 1.70158;
|
|
147
|
+
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
|
148
|
+
},
|
|
149
|
+
easeInOutBack: function (x, t, b, c, d, s) {
|
|
150
|
+
if (s == undefined) s = 1.70158;
|
|
151
|
+
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
|
152
|
+
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
|
153
|
+
},
|
|
154
|
+
easeInBounce: function (x, t, b, c, d) {
|
|
155
|
+
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
|
156
|
+
},
|
|
157
|
+
easeOutBounce: function (x, t, b, c, d) {
|
|
158
|
+
if ((t/=d) < (1/2.75)) {
|
|
159
|
+
return c*(7.5625*t*t) + b;
|
|
160
|
+
} else if (t < (2/2.75)) {
|
|
161
|
+
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
|
162
|
+
} else if (t < (2.5/2.75)) {
|
|
163
|
+
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
|
164
|
+
} else {
|
|
165
|
+
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
easeInOutBounce: function (x, t, b, c, d) {
|
|
169
|
+
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
|
170
|
+
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
/*
|
|
175
|
+
*
|
|
176
|
+
* TERMS OF USE - EASING EQUATIONS
|
|
177
|
+
*
|
|
178
|
+
* Open source under the BSD License.
|
|
179
|
+
*
|
|
180
|
+
* Copyright © 2001 Robert Penner
|
|
181
|
+
* All rights reserved.
|
|
182
|
+
*
|
|
183
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
184
|
+
* are permitted provided that the following conditions are met:
|
|
185
|
+
*
|
|
186
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
|
187
|
+
* conditions and the following disclaimer.
|
|
188
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
189
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
190
|
+
* provided with the distribution.
|
|
191
|
+
*
|
|
192
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
193
|
+
* or promote products derived from this software without specific prior written permission.
|
|
194
|
+
*
|
|
195
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
196
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
197
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
198
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
199
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
200
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
201
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
202
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
203
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
204
|
+
*
|
|
205
|
+
*/
|