h2ocube_rails_assets 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
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,113 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Bounce 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/bounce-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.bounce = function( o, done ) {
17
- var el = $( this ),
18
- props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
19
-
20
- // defaults:
21
- mode = $.effects.setMode( el, o.mode || "effect" ),
22
- hide = mode === "hide",
23
- show = mode === "show",
24
- direction = o.direction || "up",
25
- distance = o.distance,
26
- times = o.times || 5,
27
-
28
- // number of internal animations
29
- anims = times * 2 + ( show || hide ? 1 : 0 ),
30
- speed = o.duration / anims,
31
- easing = o.easing,
32
-
33
- // utility:
34
- ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
35
- motion = ( direction === "up" || direction === "left" ),
36
- i,
37
- upAnim,
38
- downAnim,
39
-
40
- // we will need to re-assemble the queue to stack our animations in place
41
- queue = el.queue(),
42
- queuelen = queue.length;
43
-
44
- // Avoid touching opacity to prevent clearType and PNG issues in IE
45
- if ( show || hide ) {
46
- props.push( "opacity" );
47
- }
48
-
49
- $.effects.save( el, props );
50
- el.show();
51
- $.effects.createWrapper( el ); // Create Wrapper
52
-
53
- // default distance for the BIGGEST bounce is the outer Distance / 3
54
- if ( !distance ) {
55
- distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;
56
- }
57
-
58
- if ( show ) {
59
- downAnim = { opacity: 1 };
60
- downAnim[ ref ] = 0;
61
-
62
- // if we are showing, force opacity 0 and set the initial position
63
- // then do the "first" animation
64
- el.css( "opacity", 0 )
65
- .css( ref, motion ? -distance * 2 : distance * 2 )
66
- .animate( downAnim, speed, easing );
67
- }
68
-
69
- // start at the smallest distance if we are hiding
70
- if ( hide ) {
71
- distance = distance / Math.pow( 2, times - 1 );
72
- }
73
-
74
- downAnim = {};
75
- downAnim[ ref ] = 0;
76
- // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here
77
- for ( i = 0; i < times; i++ ) {
78
- upAnim = {};
79
- upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
80
-
81
- el.animate( upAnim, speed, easing )
82
- .animate( downAnim, speed, easing );
83
-
84
- distance = hide ? distance * 2 : distance / 2;
85
- }
86
-
87
- // Last Bounce when Hiding
88
- if ( hide ) {
89
- upAnim = { opacity: 0 };
90
- upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
91
-
92
- el.animate( upAnim, speed, easing );
93
- }
94
-
95
- el.queue(function() {
96
- if ( hide ) {
97
- el.hide();
98
- }
99
- $.effects.restore( el, props );
100
- $.effects.removeWrapper( el );
101
- done();
102
- });
103
-
104
- // inject all the animations we just queued to be first in line (after "inprogress")
105
- if ( queuelen > 1) {
106
- queue.splice.apply( queue,
107
- [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
108
- }
109
- el.dequeue();
110
-
111
- };
112
-
113
- })(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.bounce=function(e,i){var s,n,a,o=t(this),r=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(o,e.mode||"effect"),l="hide"===h,c="show"===h,u=e.direction||"up",d=e.distance,p=e.times||5,f=2*p+(c||l?1:0),m=e.duration/f,g=e.easing,v="up"===u||"down"===u?"top":"left",_="up"===u||"left"===u,b=o.queue(),y=b.length;for((c||l)&&r.push("opacity"),t.effects.save(o,r),o.show(),t.effects.createWrapper(o),d||(d=o["top"===v?"outerHeight":"outerWidth"]()/3),c&&(a={opacity:1},a[v]=0,o.css("opacity",0).css(v,_?2*-d:2*d).animate(a,m,g)),l&&(d/=Math.pow(2,p-1)),a={},a[v]=0,s=0;p>s;s++)n={},n[v]=(_?"-=":"+=")+d,o.animate(n,m,g).animate(a,m,g),d=l?2*d:d/2;l&&(n={opacity:0},n[v]=(_?"-=":"+=")+d,o.animate(n,m,g)),o.queue(function(){l&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}),y>1&&b.splice.apply(b,[1,0].concat(b.splice(y,f+1))),o.dequeue()}})(jQuery);
@@ -1,67 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Clip 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/clip-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.clip = function( o, done ) {
17
- // Create element
18
- var el = $( this ),
19
- props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
20
- mode = $.effects.setMode( el, o.mode || "hide" ),
21
- show = mode === "show",
22
- direction = o.direction || "vertical",
23
- vert = direction === "vertical",
24
- size = vert ? "height" : "width",
25
- position = vert ? "top" : "left",
26
- animation = {},
27
- wrapper, animate, distance;
28
-
29
- // Save & Show
30
- $.effects.save( el, props );
31
- el.show();
32
-
33
- // Create Wrapper
34
- wrapper = $.effects.createWrapper( el ).css({
35
- overflow: "hidden"
36
- });
37
- animate = ( el[0].tagName === "IMG" ) ? wrapper : el;
38
- distance = animate[ size ]();
39
-
40
- // Shift
41
- if ( show ) {
42
- animate.css( size, 0 );
43
- animate.css( position, distance / 2 );
44
- }
45
-
46
- // Create Animation Object:
47
- animation[ size ] = show ? distance : 0;
48
- animation[ position ] = show ? 0 : distance / 2;
49
-
50
- // Animate
51
- animate.animate( animation, {
52
- queue: false,
53
- duration: o.duration,
54
- easing: o.easing,
55
- complete: function() {
56
- if ( !show ) {
57
- el.hide();
58
- }
59
- $.effects.restore( el, props );
60
- $.effects.removeWrapper( el );
61
- done();
62
- }
63
- });
64
-
65
- };
66
-
67
- })(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.clip=function(e,i){var s,n,a,o=t(this),r=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(o,e.mode||"hide"),l="show"===h,c=e.direction||"vertical",u="vertical"===c,d=u?"height":"width",p=u?"top":"left",f={};t.effects.save(o,r),o.show(),s=t.effects.createWrapper(o).css({overflow:"hidden"}),n="IMG"===o[0].tagName?s:o,a=n[d](),l&&(n.css(d,0),n.css(p,a/2)),f[d]=l?a:0,f[p]=l?0:a/2,n.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){l||o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}})}})(jQuery);
@@ -1,65 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Drop 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/drop-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.drop = function( o, done ) {
17
-
18
- var el = $( this ),
19
- props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
20
- mode = $.effects.setMode( el, o.mode || "hide" ),
21
- show = mode === "show",
22
- direction = o.direction || "left",
23
- ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
24
- motion = ( direction === "up" || direction === "left" ) ? "pos" : "neg",
25
- animation = {
26
- opacity: show ? 1 : 0
27
- },
28
- distance;
29
-
30
- // Adjust
31
- $.effects.save( el, props );
32
- el.show();
33
- $.effects.createWrapper( el );
34
-
35
- distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]( true ) / 2;
36
-
37
- if ( show ) {
38
- el
39
- .css( "opacity", 0 )
40
- .css( ref, motion === "pos" ? -distance : distance );
41
- }
42
-
43
- // Animation
44
- animation[ ref ] = ( show ?
45
- ( motion === "pos" ? "+=" : "-=" ) :
46
- ( motion === "pos" ? "-=" : "+=" ) ) +
47
- distance;
48
-
49
- // Animate
50
- el.animate( animation, {
51
- queue: false,
52
- duration: o.duration,
53
- easing: o.easing,
54
- complete: function() {
55
- if ( mode === "hide" ) {
56
- el.hide();
57
- }
58
- $.effects.restore( el, props );
59
- $.effects.removeWrapper( el );
60
- done();
61
- }
62
- });
63
- };
64
-
65
- })(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.drop=function(e,i){var s,n=t(this),a=["position","top","bottom","left","right","opacity","height","width"],o=t.effects.setMode(n,e.mode||"hide"),r="show"===o,h=e.direction||"left",l="up"===h||"down"===h?"top":"left",c="up"===h||"left"===h?"pos":"neg",u={opacity:r?1:0};t.effects.save(n,a),n.show(),t.effects.createWrapper(n),s=e.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,r&&n.css("opacity",0).css(l,"pos"===c?-s:s),u[l]=(r?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+s,n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&n.hide(),t.effects.restore(n,a),t.effects.removeWrapper(n),i()}})}})(jQuery);
@@ -1,97 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Explode 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/explode-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.explode = function( o, done ) {
17
-
18
- var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,
19
- cells = rows,
20
- el = $( this ),
21
- mode = $.effects.setMode( el, o.mode || "hide" ),
22
- show = mode === "show",
23
-
24
- // show and then visibility:hidden the element before calculating offset
25
- offset = el.show().css( "visibility", "hidden" ).offset(),
26
-
27
- // width and height of a piece
28
- width = Math.ceil( el.outerWidth() / cells ),
29
- height = Math.ceil( el.outerHeight() / rows ),
30
- pieces = [],
31
-
32
- // loop
33
- i, j, left, top, mx, my;
34
-
35
- // children animate complete:
36
- function childComplete() {
37
- pieces.push( this );
38
- if ( pieces.length === rows * cells ) {
39
- animComplete();
40
- }
41
- }
42
-
43
- // clone the element for each row and cell.
44
- for( i = 0; i < rows ; i++ ) { // ===>
45
- top = offset.top + i * height;
46
- my = i - ( rows - 1 ) / 2 ;
47
-
48
- for( j = 0; j < cells ; j++ ) { // |||
49
- left = offset.left + j * width;
50
- mx = j - ( cells - 1 ) / 2 ;
51
-
52
- // Create a clone of the now hidden main element that will be absolute positioned
53
- // within a wrapper div off the -left and -top equal to size of our pieces
54
- el
55
- .clone()
56
- .appendTo( "body" )
57
- .wrap( "<div></div>" )
58
- .css({
59
- position: "absolute",
60
- visibility: "visible",
61
- left: -j * width,
62
- top: -i * height
63
- })
64
-
65
- // select the wrapper - make it overflow: hidden and absolute positioned based on
66
- // where the original was located +left and +top equal to the size of pieces
67
- .parent()
68
- .addClass( "ui-effects-explode" )
69
- .css({
70
- position: "absolute",
71
- overflow: "hidden",
72
- width: width,
73
- height: height,
74
- left: left + ( show ? mx * width : 0 ),
75
- top: top + ( show ? my * height : 0 ),
76
- opacity: show ? 0 : 1
77
- }).animate({
78
- left: left + ( show ? 0 : mx * width ),
79
- top: top + ( show ? 0 : my * height ),
80
- opacity: show ? 1 : 0
81
- }, o.duration || 500, o.easing, childComplete );
82
- }
83
- }
84
-
85
- function animComplete() {
86
- el.css({
87
- visibility: "visible"
88
- });
89
- $( pieces ).remove();
90
- if ( !show ) {
91
- el.hide();
92
- }
93
- done();
94
- }
95
- };
96
-
97
- })(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.explode=function(e,i){function s(){b.push(this),b.length===u*d&&n()}function n(){p.css({visibility:"visible"}),t(b).remove(),m||p.hide(),i()}var a,o,r,h,l,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f=t.effects.setMode(p,e.mode||"hide"),m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/d),_=Math.ceil(p.outerHeight()/u),b=[];for(a=0;u>a;a++)for(h=g.top+a*_,c=a-(u-1)/2,o=0;d>o;o++)r=g.left+o*v,l=o-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*v,top:-a*_}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:_,left:r+(m?l*v:0),top:h+(m?c*_:0),opacity:m?0:1}).animate({left:r+(m?0:l*v),top:h+(m?0:c*_),opacity:m?1:0},e.duration||500,e.easing,s)}})(jQuery);
@@ -1,30 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Fade 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/fade-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.fade = function( o, done ) {
17
- var el = $( this ),
18
- mode = $.effects.setMode( el, o.mode || "toggle" );
19
-
20
- el.animate({
21
- opacity: mode
22
- }, {
23
- queue: false,
24
- duration: o.duration,
25
- easing: o.easing,
26
- complete: done
27
- });
28
- };
29
-
30
- })( 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.fade=function(e,i){var s=t(this),n=t.effects.setMode(s,e.mode||"toggle");s.animate({opacity:n},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}})(jQuery);
@@ -1,76 +1,4 @@
1
- /*!
2
- * jQuery UI Effects Fold 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/fold-effect/
10
- *
11
- * Depends:
12
- * jquery.ui.effect.js
13
- */
14
- (function( $, undefined ) {
15
-
16
- $.effects.effect.fold = function( o, done ) {
17
-
18
- // Create element
19
- var el = $( this ),
20
- props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
21
- mode = $.effects.setMode( el, o.mode || "hide" ),
22
- show = mode === "show",
23
- hide = mode === "hide",
24
- size = o.size || 15,
25
- percent = /([0-9]+)%/.exec( size ),
26
- horizFirst = !!o.horizFirst,
27
- widthFirst = show !== horizFirst,
28
- ref = widthFirst ? [ "width", "height" ] : [ "height", "width" ],
29
- duration = o.duration / 2,
30
- wrapper, distance,
31
- animation1 = {},
32
- animation2 = {};
33
-
34
- $.effects.save( el, props );
35
- el.show();
36
-
37
- // Create Wrapper
38
- wrapper = $.effects.createWrapper( el ).css({
39
- overflow: "hidden"
40
- });
41
- distance = widthFirst ?
42
- [ wrapper.width(), wrapper.height() ] :
43
- [ wrapper.height(), wrapper.width() ];
44
-
45
- if ( percent ) {
46
- size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ];
47
- }
48
- if ( show ) {
49
- wrapper.css( horizFirst ? {
50
- height: 0,
51
- width: size
52
- } : {
53
- height: size,
54
- width: 0
55
- });
56
- }
57
-
58
- // Animation
59
- animation1[ ref[ 0 ] ] = show ? distance[ 0 ] : size;
60
- animation2[ ref[ 1 ] ] = show ? distance[ 1 ] : 0;
61
-
62
- // Animate
63
- wrapper
64
- .animate( animation1, duration, o.easing )
65
- .animate( animation2, duration, o.easing, function() {
66
- if ( hide ) {
67
- el.hide();
68
- }
69
- $.effects.restore( el, props );
70
- $.effects.removeWrapper( el );
71
- done();
72
- });
73
-
74
- };
75
-
76
- })(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.fold=function(e,i){var s,n,a=t(this),o=["position","top","bottom","left","right","height","width"],r=t.effects.setMode(a,e.mode||"hide"),h="show"===r,l="hide"===r,c=e.size||15,u=/([0-9]+)%/.exec(c),d=!!e.horizFirst,p=h!==d,f=p?["width","height"]:["height","width"],m=e.duration/2,g={},v={};t.effects.save(a,o),a.show(),s=t.effects.createWrapper(a).css({overflow:"hidden"}),n=p?[s.width(),s.height()]:[s.height(),s.width()],u&&(c=parseInt(u[1],10)/100*n[l?0:1]),h&&s.css(d?{height:0,width:c}:{height:c,width:0}),g[f[0]]=h?n[0]:c,v[f[1]]=h?n[1]:0,s.animate(g,m,e.easing).animate(v,m,e.easing,function(){l&&a.hide(),t.effects.restore(a,o),t.effects.removeWrapper(a),i()})}})(jQuery);