diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-21 03:47:32 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-21 03:47:32 +0000 |
commit | c4f529917391bc0ea2aabcca99b2bf64c41470aa (patch) | |
tree | 2d778a0d4c79b7a06a863db4eeb3c892cb83133e /misc/ui/jquery.effects.shake.min.js | |
parent | b0be4e7234a77ea7649f3188751adcccb1d83399 (diff) | |
download | brdo-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.shake.min.js')
-rw-r--r-- | misc/ui/jquery.effects.shake.min.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/ui/jquery.effects.shake.min.js b/misc/ui/jquery.effects.shake.min.js new file mode 100644 index 000000000..077eec62f --- /dev/null +++ b/misc/ui/jquery.effects.shake.min.js @@ -0,0 +1,15 @@ +// $Id$ + +/* + * jQuery UI Effects Shake 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/Shake + * + * Depends: + * jquery.effects.core.js + */ +(function(a){a.effects.shake=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.effects.setMode(e,b.options.mode||"effect");var n=b.options.direction||"left";var c=b.options.distance||20;var d=b.options.times||3;var g=b.duration||b.options.duration||140;a.effects.save(e,l);e.show();a.effects.createWrapper(e);var f=(n=="up"||n=="down")?"top":"left";var p=(n=="up"||n=="left")?"pos":"neg";var h={},o={},m={};h[f]=(p=="pos"?"-=":"+=")+c;o[f]=(p=="pos"?"+=":"-=")+c*2;m[f]=(p=="pos"?"-=":"+=")+c*2;e.animate(h,g,b.options.easing);for(var j=1;j<d;j++){e.animate(o,g,b.options.easing).animate(m,g,b.options.easing)}e.animate(o,g,b.options.easing).animate(h,g/2,b.options.easing,function(){a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}});e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);
\ No newline at end of file |