summaryrefslogtreecommitdiff
path: root/misc/ui/jquery.effects.explode.min.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-21 03:47:32 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-21 03:47:32 +0000
commitc4f529917391bc0ea2aabcca99b2bf64c41470aa (patch)
tree2d778a0d4c79b7a06a863db4eeb3c892cb83133e /misc/ui/jquery.effects.explode.min.js
parentb0be4e7234a77ea7649f3188751adcccb1d83399 (diff)
downloadbrdo-c4f529917391bc0ea2aabcca99b2bf64c41470aa.tar.gz
brdo-c4f529917391bc0ea2aabcca99b2bf64c41470aa.tar.bz2
#679036 by marvil07, mfer, Rob Loach, et al: Upgrade to jQuery UI 1.8.
Diffstat (limited to 'misc/ui/jquery.effects.explode.min.js')
-rw-r--r--misc/ui/jquery.effects.explode.min.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/ui/jquery.effects.explode.min.js b/misc/ui/jquery.effects.explode.min.js
new file mode 100644
index 000000000..d1e447b2e
--- /dev/null
+++ b/misc/ui/jquery.effects.explode.min.js
@@ -0,0 +1,15 @@
+// $Id$
+
+/*
+ * jQuery UI Effects Explode 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Explode
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(a){a.effects.explode=function(b){return this.queue(function(){var k=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 l=h.offset();l.top-=parseInt(h.css("marginTop"),10)||0;l.left-=parseInt(h.css("marginLeft"),10)||0;var g=h.outerWidth(true);var c=h.outerHeight(true);for(var f=0;f<k;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/k)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/e,height:c/k,left:l.left+d*(g/e)+(b.options.mode=="show"?(d-Math.floor(e/2))*(g/e):0),top:l.top+f*(c/k)+(b.options.mode=="show"?(f-Math.floor(k/2))*(c/k):0),opacity:b.options.mode=="show"?0:1}).animate({left:l.left+d*(g/e)+(b.options.mode=="show"?0:(d-Math.floor(e/2))*(g/e)),top:l.top+f*(c/k)+(b.options.mode=="show"?0:(f-Math.floor(k/2))*(c/k)),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("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery); \ No newline at end of file