diff --git a/ext-lib/jquery.spin.js b/ext-lib/jquery.spin.js new file mode 100755 index 0000000..2c2c8da --- /dev/null +++ b/ext-lib/jquery.spin.js @@ -0,0 +1,16 @@ +// taken from: http://fgnass.github.com/spin.js/ +$.fn.spin = function(opts) { + this.each(function() { + var $this = $(this), + data = $this.data(); + + if (data.spinner) { + data.spinner.stop(); + delete data.spinner; + } + if (opts !== false) { + data.spinner = new Spinner($.extend({color: $this.css('color')}, opts)).spin(this); + } + }); + return this; +}; diff --git a/index.html b/index.html index 6f83e5f..9595956 100755 --- a/index.html +++ b/index.html @@ -12,6 +12,7 @@ +