aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/lib/ui/minified/effects.explode.min.js
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2009-01-18 23:27:21 +0000
committerrub <rub@piwigo.org>2009-01-18 23:27:21 +0000
commit436679af447c53d3ed654ec16fdde03e2064bd95 (patch)
tree96eefb969b24aa475aeb9310ff1691a09bc5187f /template-common/lib/ui/minified/effects.explode.min.js
parent65c701a5a33df1f47adca51b9086762511ee0e23 (diff)
Update jQuery UI lib with jquery.ui-1.5.3.zip
Change files tree in order to have the same of UI. Add too effects files js git-svn-id: http://piwigo.org/svn/trunk@3102 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template-common/lib/ui/minified/effects.explode.min.js')
-rw-r--r--template-common/lib/ui/minified/effects.explode.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/template-common/lib/ui/minified/effects.explode.min.js b/template-common/lib/ui/minified/effects.explode.min.js
new file mode 100644
index 000000000..3cbf3be12
--- /dev/null
+++ b/template-common/lib/ui/minified/effects.explode.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.explode=function(B){return this.queue(function(){var I=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;var E=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;B.options.mode=B.options.mode=="toggle"?(A(this).is(":visible")?"hide":"show"):B.options.mode;var H=A(this).show().css("visibility","hidden");var J=H.offset();J.top-=parseInt(H.css("marginTop"))||0;J.left-=parseInt(H.css("marginLeft"))||0;var G=H.outerWidth(true);var C=H.outerHeight(true);for(var F=0;F<I;F++){for(var D=0;D<E;D++){H.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-D*(G/E),top:-F*(C/I)}).parent().addClass("effects-explode").css({position:"absolute",overflow:"hidden",width:G/E,height:C/I,left:J.left+D*(G/E)+(B.options.mode=="show"?(D-Math.floor(E/2))*(G/E):0),top:J.top+F*(C/I)+(B.options.mode=="show"?(F-Math.floor(I/2))*(C/I):0),opacity:B.options.mode=="show"?0:1}).animate({left:J.left+D*(G/E)+(B.options.mode=="show"?0:(D-Math.floor(E/2))*(G/E)),top:J.top+F*(C/I)+(B.options.mode=="show"?0:(F-Math.floor(I/2))*(C/I)),opacity:B.options.mode=="show"?1:0},B.duration||500)}}setTimeout(function(){B.options.mode=="show"?H.css({visibility:"visible"}):H.css({visibility:"visible"}).hide();if(B.callback){B.callback.apply(H[0])}H.dequeue();A(".effects-explode").remove()},B.duration||500)})}})(jQuery) \ No newline at end of file