From c4f529917391bc0ea2aabcca99b2bf64c41470aa Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 21 Mar 2010 03:47:32 +0000 Subject: #679036 by marvil07, mfer, Rob Loach, et al: Upgrade to jQuery UI 1.8. --- misc/ui/jquery.effects.bounce.min.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 misc/ui/jquery.effects.bounce.min.js (limited to 'misc/ui/jquery.effects.bounce.min.js') diff --git a/misc/ui/jquery.effects.bounce.min.js b/misc/ui/jquery.effects.bounce.min.js new file mode 100644 index 000000000..28978a32a --- /dev/null +++ b/misc/ui/jquery.effects.bounce.min.js @@ -0,0 +1,15 @@ +// $Id$ + +/* + * jQuery UI Effects Bounce 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/Bounce + * + * Depends: + * jquery.effects.core.js + */ +(function(a){a.effects.bounce=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||"up";var c=b.options.distance||20;var d=b.options.times||5;var g=b.duration||250;if(/show|hide/.test(k)){l.push("opacity")}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 c=b.options.distance||(f=="top"?e.outerHeight({margin:true})/3:e.outerWidth({margin:true})/3);if(k=="show"){e.css("opacity",0).css(f,p=="pos"?-c:c)}if(k=="hide"){c=c/(d*2)}if(k!="hide"){d--}if(k=="show"){var h={opacity:1};h[f]=(p=="pos"?"+=":"-=")+c;e.animate(h,g/2,b.options.easing);c=c/2;d--}for(var j=0;j