root / drupal7 / misc / ui / jquery.effects.pulsate.min.js @ 76597ebf
1 | 85ad3d82 | Assos Assos | |
---|---|---|---|
2 | /*
|
||
3 | * jQuery UI Effects Pulsate 1.8.7
|
||
4 | *
|
||
5 | * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
||
6 | * Dual licensed under the MIT or GPL Version 2 licenses.
|
||
7 | * http://jquery.org/license
|
||
8 | *
|
||
9 | * http://docs.jquery.com/UI/Effects/Pulsate
|
||
10 | *
|
||
11 | * Depends:
|
||
12 | * jquery.effects.core.js
|
||
13 | */
|
||
14 | (function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c<times;c++){b.animate({opacity:animateTo},duration,a.options.easing);animateTo=(animateTo+1)%2}b.animate({opacity:animateTo},duration, |
||
15 | a.options.easing,function(){animateTo==0&&b.hide();a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()}).dequeue()})}})(jQuery); |