Last change
on this file since 12525 was
12525,
checked in by patdenice, 13 years ago
|
feature:2487
Update jQuery to 1.6.4 and jQuery UI to 1.8.16
|
File size:
951 bytes
|
Line | |
---|
1 | /* |
---|
2 | * jQuery UI Effects Pulsate 1.8.16 |
---|
3 | * |
---|
4 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) |
---|
5 | * Dual licensed under the MIT or GPL Version 2 licenses. |
---|
6 | * http://jquery.org/license |
---|
7 | * |
---|
8 | * http://docs.jquery.com/UI/Effects/Pulsate |
---|
9 | * |
---|
10 | * Depends: |
---|
11 | * jquery.effects.core.js |
---|
12 | */ |
---|
13 | (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, |
---|
14 | a.options.easing,function(){animateTo==0&&b.hide();a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()}).dequeue()})}})(jQuery); |
---|
Note: See
TracBrowser
for help on using the repository browser.