Tuesday, 22 October 2013

( function($) { $.fn.link2progress = function(seconds, callback){ this.each(function(){ var $this = jQuery(this); progreso = 100; timeprogress = seconds*1000; $this.animate({ width: progreso+'%' }, { duration: timeprogress, complete: function(scope, i, elem){ if (callback) { callback.call(this, i, elem ); }; } }); }); } })(jQuery);

No comments:

Post a Comment