h2ocube_rails_assets 0.0.19 → 0.0.20

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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +1 -0
  4. data/Vendorfile +196 -0
  5. data/h2ocube_rails_assets.gemspec +3 -4
  6. data/lib/h2ocube_rails_assets.rb +8 -6
  7. data/test/jquery_test.rb +1 -1
  8. data/test/turbolinks_test.rb +1 -3
  9. data/vendor/assets/images/jquery.fancybox/fancybox_loading.gif +0 -0
  10. data/vendor/assets/images/jquery.fancybox/fancybox_loading@2x.gif +0 -0
  11. data/vendor/assets/images/jquery.fancybox/fancybox_sprite@2x.png +0 -0
  12. data/vendor/assets/javascripts/backbone.js +4 -1571
  13. data/vendor/assets/javascripts/bootstrap.js +6 -2276
  14. data/vendor/assets/javascripts/highcharts.js +272 -15281
  15. data/vendor/assets/javascripts/jasny-bootstrap.js +7 -3060
  16. data/vendor/assets/javascripts/jquery/1.10.js +6 -9807
  17. data/vendor/assets/javascripts/jquery/1.8.js +2 -9472
  18. data/vendor/assets/javascripts/jquery/1.9.js +5 -9597
  19. data/vendor/assets/javascripts/jquery/2.0.js +5 -8841
  20. data/vendor/assets/javascripts/jquery.cookie.js +26 -23
  21. data/vendor/assets/javascripts/jquery.fancybox.js +46 -1983
  22. data/vendor/assets/javascripts/jquery.fileupload.js +1329 -4
  23. data/vendor/assets/javascripts/jquery.iframe-transport.js +24 -4
  24. data/vendor/assets/javascripts/jquery.js +1 -1
  25. data/vendor/assets/javascripts/jquery.lazyload.js +3 -216
  26. data/vendor/assets/javascripts/jquery.mobile.js +7 -11092
  27. data/vendor/assets/javascripts/jquery.pnotify.js +29 -903
  28. data/vendor/assets/javascripts/jquery.timeago.coffee +2 -4
  29. data/vendor/assets/javascripts/jquery.turbolinks.coffee +40 -51
  30. data/vendor/assets/javascripts/jquery.ui/jquery.ui.accordion.js +4 -572
  31. data/vendor/assets/javascripts/jquery.ui/jquery.ui.autocomplete.js +4 -610
  32. data/vendor/assets/javascripts/jquery.ui/jquery.ui.button.js +4 -419
  33. data/vendor/assets/javascripts/jquery.ui/jquery.ui.core.js +4 -320
  34. data/vendor/assets/javascripts/jquery.ui/jquery.ui.datepicker.js +5 -2050
  35. data/vendor/assets/javascripts/jquery.ui/jquery.ui.dialog.js +4 -808
  36. data/vendor/assets/javascripts/jquery.ui/jquery.ui.draggable.js +4 -933
  37. data/vendor/assets/javascripts/jquery.ui/jquery.ui.droppable.js +4 -372
  38. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-blind.js +4 -82
  39. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-bounce.js +4 -113
  40. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-clip.js +4 -67
  41. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-drop.js +4 -65
  42. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-explode.js +4 -97
  43. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-fade.js +4 -30
  44. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-fold.js +4 -76
  45. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js +4 -50
  46. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-pulsate.js +4 -63
  47. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-scale.js +4 -318
  48. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-shake.js +4 -74
  49. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-slide.js +4 -64
  50. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-transfer.js +4 -47
  51. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect.js +4 -1289
  52. data/vendor/assets/javascripts/jquery.ui/jquery.ui.menu.js +4 -621
  53. data/vendor/assets/javascripts/jquery.ui/jquery.ui.mouse.js +4 -169
  54. data/vendor/assets/javascripts/jquery.ui/jquery.ui.position.js +4 -497
  55. data/vendor/assets/javascripts/jquery.ui/jquery.ui.progressbar.js +4 -145
  56. data/vendor/assets/javascripts/jquery.ui/jquery.ui.resizable.js +4 -968
  57. data/vendor/assets/javascripts/jquery.ui/jquery.ui.selectable.js +4 -277
  58. data/vendor/assets/javascripts/jquery.ui/jquery.ui.slider.js +4 -672
  59. data/vendor/assets/javascripts/jquery.ui/jquery.ui.sortable.js +4 -1282
  60. data/vendor/assets/javascripts/jquery.ui/jquery.ui.spinner.js +4 -493
  61. data/vendor/assets/javascripts/jquery.ui/jquery.ui.tabs.js +4 -846
  62. data/vendor/assets/javascripts/jquery.ui/jquery.ui.tooltip.js +4 -402
  63. data/vendor/assets/javascripts/jquery.ui/jquery.ui.widget.js +4 -521
  64. data/vendor/assets/javascripts/jquery.validate.js +2 -1207
  65. data/vendor/assets/javascripts/lazyload.js +4 -391
  66. data/vendor/assets/javascripts/sammy.js +5 -2117
  67. data/vendor/assets/javascripts/underscore.js +4 -1224
  68. data/vendor/assets/javascripts/zepto.js +1 -1564
  69. data/vendor/assets/stylesheets/bootstrap.responsive.css +2 -1102
  70. data/vendor/assets/stylesheets/bootstrap.scss +2 -6151
  71. data/vendor/assets/stylesheets/jasny-bootstrap.responsive.css +2 -1263
  72. data/vendor/assets/stylesheets/jasny-bootstrap.scss +2 -7591
  73. data/vendor/assets/stylesheets/jquery.fancybox.scss +27 -2
  74. data/vendor/assets/stylesheets/jquery.mobile.scss +2 -3356
  75. data/vendor/assets/stylesheets/jquery.ui.scss +2 -1184
  76. metadata +43 -19
  77. data/vendor/assets/images/jquery.mobile/ajax-loader.gif +0 -0
  78. data/vendor/assets/images/jquery.mobile/icons-18-black.png +0 -0
  79. data/vendor/assets/images/jquery.mobile/icons-18-white.png +0 -0
  80. data/vendor/assets/images/jquery.mobile/icons-36-black.png +0 -0
  81. data/vendor/assets/images/jquery.mobile/icons-36-white.png +0 -0
  82. data/vendor/assets/javascripts/_jquery.fileupload.js +0 -1164
  83. data/vendor/assets/javascripts/zepto/fx_methods.js +0 -71
@@ -1,50 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Highlight 1.10.2
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://api.jqueryui.com/highlight-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.highlight = function( o, done ) {
17
- var elem = $( this ),
18
- props = [ "backgroundImage", "backgroundColor", "opacity" ],
19
- mode = $.effects.setMode( elem, o.mode || "show" ),
20
- animation = {
21
- backgroundColor: elem.css( "backgroundColor" )
22
- };
23
-
24
- if (mode === "hide") {
25
- animation.opacity = 0;
26
- }
27
-
28
- $.effects.save( elem, props );
29
-
30
- elem
31
- .show()
32
- .css({
33
- backgroundImage: "none",
34
- backgroundColor: o.color || "#ffff99"
35
- })
36
- .animate( animation, {
37
- queue: false,
38
- duration: o.duration,
39
- easing: o.easing,
40
- complete: function() {
41
- if ( mode === "hide" ) {
42
- elem.hide();
43
- }
44
- $.effects.restore( elem, props );
45
- done();
46
- }
47
- });
48
- };
49
-
50
- })(jQuery);
1
+ /*! jQuery UI - v1.10.3 - 2013-05-03
2
+ * http://jqueryui.com
3
+ * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
4
+ (function(t){t.effects.effect.highlight=function(e,i){var s=t(this),n=["backgroundImage","backgroundColor","opacity"],a=t.effects.setMode(s,e.mode||"show"),o={backgroundColor:s.css("backgroundColor")};"hide"===a&&(o.opacity=0),t.effects.save(s,n),s.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&s.hide(),t.effects.restore(s,n),i()}})}})(jQuery);
@@ -1,63 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Pulsate 1.10.2
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://api.jqueryui.com/pulsate-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.pulsate = function( o, done ) {
17
- var elem = $( this ),
18
- mode = $.effects.setMode( elem, o.mode || "show" ),
19
- show = mode === "show",
20
- hide = mode === "hide",
21
- showhide = ( show || mode === "hide" ),
22
-
23
- // showing or hiding leaves of the "last" animation
24
- anims = ( ( o.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),
25
- duration = o.duration / anims,
26
- animateTo = 0,
27
- queue = elem.queue(),
28
- queuelen = queue.length,
29
- i;
30
-
31
- if ( show || !elem.is(":visible")) {
32
- elem.css( "opacity", 0 ).show();
33
- animateTo = 1;
34
- }
35
-
36
- // anims - 1 opacity "toggles"
37
- for ( i = 1; i < anims; i++ ) {
38
- elem.animate({
39
- opacity: animateTo
40
- }, duration, o.easing );
41
- animateTo = 1 - animateTo;
42
- }
43
-
44
- elem.animate({
45
- opacity: animateTo
46
- }, duration, o.easing);
47
-
48
- elem.queue(function() {
49
- if ( hide ) {
50
- elem.hide();
51
- }
52
- done();
53
- });
54
-
55
- // We just queued up "anims" animations, we need to put them next in the queue
56
- if ( queuelen > 1 ) {
57
- queue.splice.apply( queue,
58
- [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
59
- }
60
- elem.dequeue();
61
- };
62
-
63
- })(jQuery);
1
+ /*! jQuery UI - v1.10.3 - 2013-05-03
2
+ * http://jqueryui.com
3
+ * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
4
+ (function(t){t.effects.effect.pulsate=function(e,i){var s,n=t(this),a=t.effects.setMode(n,e.mode||"show"),o="show"===a,r="hide"===a,h=o||"hide"===a,l=2*(e.times||5)+(h?1:0),c=e.duration/l,u=0,d=n.queue(),p=d.length;for((o||!n.is(":visible"))&&(n.css("opacity",0).show(),u=1),s=1;l>s;s++)n.animate({opacity:u},c,e.easing),u=1-u;n.animate({opacity:u},c,e.easing),n.queue(function(){r&&n.hide(),i()}),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,l+1))),n.dequeue()}})(jQuery);
@@ -1,318 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Scale 1.10.2
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://api.jqueryui.com/scale-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.puff = function( o, done ) {
17
- var elem = $( this ),
18
- mode = $.effects.setMode( elem, o.mode || "hide" ),
19
- hide = mode === "hide",
20
- percent = parseInt( o.percent, 10 ) || 150,
21
- factor = percent / 100,
22
- original = {
23
- height: elem.height(),
24
- width: elem.width(),
25
- outerHeight: elem.outerHeight(),
26
- outerWidth: elem.outerWidth()
27
- };
28
-
29
- $.extend( o, {
30
- effect: "scale",
31
- queue: false,
32
- fade: true,
33
- mode: mode,
34
- complete: done,
35
- percent: hide ? percent : 100,
36
- from: hide ?
37
- original :
38
- {
39
- height: original.height * factor,
40
- width: original.width * factor,
41
- outerHeight: original.outerHeight * factor,
42
- outerWidth: original.outerWidth * factor
43
- }
44
- });
45
-
46
- elem.effect( o );
47
- };
48
-
49
- $.effects.effect.scale = function( o, done ) {
50
-
51
- // Create element
52
- var el = $( this ),
53
- options = $.extend( true, {}, o ),
54
- mode = $.effects.setMode( el, o.mode || "effect" ),
55
- percent = parseInt( o.percent, 10 ) ||
56
- ( parseInt( o.percent, 10 ) === 0 ? 0 : ( mode === "hide" ? 0 : 100 ) ),
57
- direction = o.direction || "both",
58
- origin = o.origin,
59
- original = {
60
- height: el.height(),
61
- width: el.width(),
62
- outerHeight: el.outerHeight(),
63
- outerWidth: el.outerWidth()
64
- },
65
- factor = {
66
- y: direction !== "horizontal" ? (percent / 100) : 1,
67
- x: direction !== "vertical" ? (percent / 100) : 1
68
- };
69
-
70
- // We are going to pass this effect to the size effect:
71
- options.effect = "size";
72
- options.queue = false;
73
- options.complete = done;
74
-
75
- // Set default origin and restore for show/hide
76
- if ( mode !== "effect" ) {
77
- options.origin = origin || ["middle","center"];
78
- options.restore = true;
79
- }
80
-
81
- options.from = o.from || ( mode === "show" ? {
82
- height: 0,
83
- width: 0,
84
- outerHeight: 0,
85
- outerWidth: 0
86
- } : original );
87
- options.to = {
88
- height: original.height * factor.y,
89
- width: original.width * factor.x,
90
- outerHeight: original.outerHeight * factor.y,
91
- outerWidth: original.outerWidth * factor.x
92
- };
93
-
94
- // Fade option to support puff
95
- if ( options.fade ) {
96
- if ( mode === "show" ) {
97
- options.from.opacity = 0;
98
- options.to.opacity = 1;
99
- }
100
- if ( mode === "hide" ) {
101
- options.from.opacity = 1;
102
- options.to.opacity = 0;
103
- }
104
- }
105
-
106
- // Animate
107
- el.effect( options );
108
-
109
- };
110
-
111
- $.effects.effect.size = function( o, done ) {
112
-
113
- // Create element
114
- var original, baseline, factor,
115
- el = $( this ),
116
- props0 = [ "position", "top", "bottom", "left", "right", "width", "height", "overflow", "opacity" ],
117
-
118
- // Always restore
119
- props1 = [ "position", "top", "bottom", "left", "right", "overflow", "opacity" ],
120
-
121
- // Copy for children
122
- props2 = [ "width", "height", "overflow" ],
123
- cProps = [ "fontSize" ],
124
- vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ],
125
- hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ],
126
-
127
- // Set options
128
- mode = $.effects.setMode( el, o.mode || "effect" ),
129
- restore = o.restore || mode !== "effect",
130
- scale = o.scale || "both",
131
- origin = o.origin || [ "middle", "center" ],
132
- position = el.css( "position" ),
133
- props = restore ? props0 : props1,
134
- zero = {
135
- height: 0,
136
- width: 0,
137
- outerHeight: 0,
138
- outerWidth: 0
139
- };
140
-
141
- if ( mode === "show" ) {
142
- el.show();
143
- }
144
- original = {
145
- height: el.height(),
146
- width: el.width(),
147
- outerHeight: el.outerHeight(),
148
- outerWidth: el.outerWidth()
149
- };
150
-
151
- if ( o.mode === "toggle" && mode === "show" ) {
152
- el.from = o.to || zero;
153
- el.to = o.from || original;
154
- } else {
155
- el.from = o.from || ( mode === "show" ? zero : original );
156
- el.to = o.to || ( mode === "hide" ? zero : original );
157
- }
158
-
159
- // Set scaling factor
160
- factor = {
161
- from: {
162
- y: el.from.height / original.height,
163
- x: el.from.width / original.width
164
- },
165
- to: {
166
- y: el.to.height / original.height,
167
- x: el.to.width / original.width
168
- }
169
- };
170
-
171
- // Scale the css box
172
- if ( scale === "box" || scale === "both" ) {
173
-
174
- // Vertical props scaling
175
- if ( factor.from.y !== factor.to.y ) {
176
- props = props.concat( vProps );
177
- el.from = $.effects.setTransition( el, vProps, factor.from.y, el.from );
178
- el.to = $.effects.setTransition( el, vProps, factor.to.y, el.to );
179
- }
180
-
181
- // Horizontal props scaling
182
- if ( factor.from.x !== factor.to.x ) {
183
- props = props.concat( hProps );
184
- el.from = $.effects.setTransition( el, hProps, factor.from.x, el.from );
185
- el.to = $.effects.setTransition( el, hProps, factor.to.x, el.to );
186
- }
187
- }
188
-
189
- // Scale the content
190
- if ( scale === "content" || scale === "both" ) {
191
-
192
- // Vertical props scaling
193
- if ( factor.from.y !== factor.to.y ) {
194
- props = props.concat( cProps ).concat( props2 );
195
- el.from = $.effects.setTransition( el, cProps, factor.from.y, el.from );
196
- el.to = $.effects.setTransition( el, cProps, factor.to.y, el.to );
197
- }
198
- }
199
-
200
- $.effects.save( el, props );
201
- el.show();
202
- $.effects.createWrapper( el );
203
- el.css( "overflow", "hidden" ).css( el.from );
204
-
205
- // Adjust
206
- if (origin) { // Calculate baseline shifts
207
- baseline = $.effects.getBaseline( origin, original );
208
- el.from.top = ( original.outerHeight - el.outerHeight() ) * baseline.y;
209
- el.from.left = ( original.outerWidth - el.outerWidth() ) * baseline.x;
210
- el.to.top = ( original.outerHeight - el.to.outerHeight ) * baseline.y;
211
- el.to.left = ( original.outerWidth - el.to.outerWidth ) * baseline.x;
212
- }
213
- el.css( el.from ); // set top & left
214
-
215
- // Animate
216
- if ( scale === "content" || scale === "both" ) { // Scale the children
217
-
218
- // Add margins/font-size
219
- vProps = vProps.concat([ "marginTop", "marginBottom" ]).concat(cProps);
220
- hProps = hProps.concat([ "marginLeft", "marginRight" ]);
221
- props2 = props0.concat(vProps).concat(hProps);
222
-
223
- el.find( "*[width]" ).each( function(){
224
- var child = $( this ),
225
- c_original = {
226
- height: child.height(),
227
- width: child.width(),
228
- outerHeight: child.outerHeight(),
229
- outerWidth: child.outerWidth()
230
- };
231
- if (restore) {
232
- $.effects.save(child, props2);
233
- }
234
-
235
- child.from = {
236
- height: c_original.height * factor.from.y,
237
- width: c_original.width * factor.from.x,
238
- outerHeight: c_original.outerHeight * factor.from.y,
239
- outerWidth: c_original.outerWidth * factor.from.x
240
- };
241
- child.to = {
242
- height: c_original.height * factor.to.y,
243
- width: c_original.width * factor.to.x,
244
- outerHeight: c_original.height * factor.to.y,
245
- outerWidth: c_original.width * factor.to.x
246
- };
247
-
248
- // Vertical props scaling
249
- if ( factor.from.y !== factor.to.y ) {
250
- child.from = $.effects.setTransition( child, vProps, factor.from.y, child.from );
251
- child.to = $.effects.setTransition( child, vProps, factor.to.y, child.to );
252
- }
253
-
254
- // Horizontal props scaling
255
- if ( factor.from.x !== factor.to.x ) {
256
- child.from = $.effects.setTransition( child, hProps, factor.from.x, child.from );
257
- child.to = $.effects.setTransition( child, hProps, factor.to.x, child.to );
258
- }
259
-
260
- // Animate children
261
- child.css( child.from );
262
- child.animate( child.to, o.duration, o.easing, function() {
263
-
264
- // Restore children
265
- if ( restore ) {
266
- $.effects.restore( child, props2 );
267
- }
268
- });
269
- });
270
- }
271
-
272
- // Animate
273
- el.animate( el.to, {
274
- queue: false,
275
- duration: o.duration,
276
- easing: o.easing,
277
- complete: function() {
278
- if ( el.to.opacity === 0 ) {
279
- el.css( "opacity", el.from.opacity );
280
- }
281
- if( mode === "hide" ) {
282
- el.hide();
283
- }
284
- $.effects.restore( el, props );
285
- if ( !restore ) {
286
-
287
- // we need to calculate our new positioning based on the scaling
288
- if ( position === "static" ) {
289
- el.css({
290
- position: "relative",
291
- top: el.to.top,
292
- left: el.to.left
293
- });
294
- } else {
295
- $.each([ "top", "left" ], function( idx, pos ) {
296
- el.css( pos, function( _, str ) {
297
- var val = parseInt( str, 10 ),
298
- toRef = idx ? el.to.left : el.to.top;
299
-
300
- // if original was "auto", recalculate the new value from wrapper
301
- if ( str === "auto" ) {
302
- return toRef + "px";
303
- }
304
-
305
- return val + toRef + "px";
306
- });
307
- });
308
- }
309
- }
310
-
311
- $.effects.removeWrapper( el );
312
- done();
313
- }
314
- });
315
-
316
- };
317
-
318
- })(jQuery);
1
+ /*! jQuery UI - v1.10.3 - 2013-05-03
2
+ * http://jqueryui.com
3
+ * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
4
+ (function(t){t.effects.effect.puff=function(e,i){var s=t(this),n=t.effects.setMode(s,e.mode||"hide"),a="hide"===n,o=parseInt(e.percent,10)||150,r=o/100,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:n,complete:i,percent:a?o:100,from:a?h:{height:h.height*r,width:h.width*r,outerHeight:h.outerHeight*r,outerWidth:h.outerWidth*r}}),s.effect(e)},t.effects.effect.scale=function(e,i){var s=t(this),n=t.extend(!0,{},e),a=t.effects.setMode(s,e.mode||"effect"),o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===a?0:100),r=e.direction||"both",h=e.origin,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},c={y:"horizontal"!==r?o/100:1,x:"vertical"!==r?o/100:1};n.effect="size",n.queue=!1,n.complete=i,"effect"!==a&&(n.origin=h||["middle","center"],n.restore=!0),n.from=e.from||("show"===a?{height:0,width:0,outerHeight:0,outerWidth:0}:l),n.to={height:l.height*c.y,width:l.width*c.x,outerHeight:l.outerHeight*c.y,outerWidth:l.outerWidth*c.x},n.fade&&("show"===a&&(n.from.opacity=0,n.to.opacity=1),"hide"===a&&(n.from.opacity=1,n.to.opacity=0)),s.effect(n)},t.effects.effect.size=function(e,i){var s,n,a,o=t(this),r=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],c=["fontSize"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=t.effects.setMode(o,e.mode||"effect"),f=e.restore||"effect"!==p,m=e.scale||"both",g=e.origin||["middle","center"],v=o.css("position"),_=f?r:h,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&o.show(),s={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===e.mode&&"show"===p?(o.from=e.to||b,o.to=e.from||s):(o.from=e.from||("show"===p?b:s),o.to=e.to||("hide"===p?b:s)),a={from:{y:o.from.height/s.height,x:o.from.width/s.width},to:{y:o.to.height/s.height,x:o.to.width/s.width}},("box"===m||"both"===m)&&(a.from.y!==a.to.y&&(_=_.concat(u),o.from=t.effects.setTransition(o,u,a.from.y,o.from),o.to=t.effects.setTransition(o,u,a.to.y,o.to)),a.from.x!==a.to.x&&(_=_.concat(d),o.from=t.effects.setTransition(o,d,a.from.x,o.from),o.to=t.effects.setTransition(o,d,a.to.x,o.to))),("content"===m||"both"===m)&&a.from.y!==a.to.y&&(_=_.concat(c).concat(l),o.from=t.effects.setTransition(o,c,a.from.y,o.from),o.to=t.effects.setTransition(o,c,a.to.y,o.to)),t.effects.save(o,_),o.show(),t.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),g&&(n=t.effects.getBaseline(g,s),o.from.top=(s.outerHeight-o.outerHeight())*n.y,o.from.left=(s.outerWidth-o.outerWidth())*n.x,o.to.top=(s.outerHeight-o.to.outerHeight)*n.y,o.to.left=(s.outerWidth-o.to.outerWidth)*n.x),o.css(o.from),("content"===m||"both"===m)&&(u=u.concat(["marginTop","marginBottom"]).concat(c),d=d.concat(["marginLeft","marginRight"]),l=r.concat(u).concat(d),o.find("*[width]").each(function(){var i=t(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&t.effects.save(i,l),i.from={height:s.height*a.from.y,width:s.width*a.from.x,outerHeight:s.outerHeight*a.from.y,outerWidth:s.outerWidth*a.from.x},i.to={height:s.height*a.to.y,width:s.width*a.to.x,outerHeight:s.height*a.to.y,outerWidth:s.width*a.to.x},a.from.y!==a.to.y&&(i.from=t.effects.setTransition(i,u,a.from.y,i.from),i.to=t.effects.setTransition(i,u,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=t.effects.setTransition(i,d,a.from.x,i.from),i.to=t.effects.setTransition(i,d,a.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&&t.effects.restore(i,l)})})),o.animate(o.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===o.to.opacity&&o.css("opacity",o.from.opacity),"hide"===p&&o.hide(),t.effects.restore(o,_),f||("static"===v?o.css({position:"relative",top:o.to.top,left:o.to.left}):t.each(["top","left"],function(t,e){o.css(e,function(e,i){var s=parseInt(i,10),n=t?o.to.left:o.to.top;return"auto"===i?n+"px":s+n+"px"})})),t.effects.removeWrapper(o),i()}})}})(jQuery);
@@ -1,74 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Shake 1.10.2
3
- * http://jqueryui.com
4
- *
5
- * Copyright 2013 jQuery Foundation and other contributors
6
- * Released under the MIT license.
7
- * http://jquery.org/license
8
- *
9
- * http://api.jqueryui.com/shake-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.shake = function( o, done ) {
17
-
18
- var el = $( this ),
19
- props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
20
- mode = $.effects.setMode( el, o.mode || "effect" ),
21
- direction = o.direction || "left",
22
- distance = o.distance || 20,
23
- times = o.times || 3,
24
- anims = times * 2 + 1,
25
- speed = Math.round(o.duration/anims),
26
- ref = (direction === "up" || direction === "down") ? "top" : "left",
27
- positiveMotion = (direction === "up" || direction === "left"),
28
- animation = {},
29
- animation1 = {},
30
- animation2 = {},
31
- i,
32
-
33
- // we will need to re-assemble the queue to stack our animations in place
34
- queue = el.queue(),
35
- queuelen = queue.length;
36
-
37
- $.effects.save( el, props );
38
- el.show();
39
- $.effects.createWrapper( el );
40
-
41
- // Animation
42
- animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
43
- animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
44
- animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
45
-
46
- // Animate
47
- el.animate( animation, speed, o.easing );
48
-
49
- // Shakes
50
- for ( i = 1; i < times; i++ ) {
51
- el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing );
52
- }
53
- el
54
- .animate( animation1, speed, o.easing )
55
- .animate( animation, speed / 2, o.easing )
56
- .queue(function() {
57
- if ( mode === "hide" ) {
58
- el.hide();
59
- }
60
- $.effects.restore( el, props );
61
- $.effects.removeWrapper( el );
62
- done();
63
- });
64
-
65
- // inject all the animations we just queued to be first in line (after "inprogress")
66
- if ( queuelen > 1) {
67
- queue.splice.apply( queue,
68
- [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
69
- }
70
- el.dequeue();
71
-
72
- };
73
-
74
- })(jQuery);
1
+ /*! jQuery UI - v1.10.3 - 2013-05-03
2
+ * http://jqueryui.com
3
+ * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
4
+ (function(t){t.effects.effect.shake=function(e,i){var s,n=t(this),a=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(n,e.mode||"effect"),r=e.direction||"left",h=e.distance||20,l=e.times||3,c=2*l+1,u=Math.round(e.duration/c),d="up"===r||"down"===r?"top":"left",p="up"===r||"left"===r,f={},m={},g={},v=n.queue(),_=v.length;for(t.effects.save(n,a),n.show(),t.effects.createWrapper(n),f[d]=(p?"-=":"+=")+h,m[d]=(p?"+=":"-=")+2*h,g[d]=(p?"-=":"+=")+2*h,n.animate(f,u,e.easing),s=1;l>s;s++)n.animate(m,u,e.easing).animate(g,u,e.easing);n.animate(m,u,e.easing).animate(f,u/2,e.easing).queue(function(){"hide"===o&&n.hide(),t.effects.restore(n,a),t.effects.removeWrapper(n),i()}),_>1&&v.splice.apply(v,[1,0].concat(v.splice(_,c+1))),n.dequeue()}})(jQuery);