Sha256: 1448b90d6ec925a64802e4ef83e526144fa98f3c98b404ea1f4a0456223d1c09
Contents?: true
Size: 1.48 KB
Versions: 9
Compression:
Stored size: 1.48 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1339771360.104783:@value{ I"length:EFiÿI"digest; F"%baf560610129abec989e9f8b75fc81dfI"source; FI"ÿ/* You can now create a spinner using any of the variants below: $("#el").spin(); // Produces default Spinner using the text color of #el. $("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el. $("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color). $("#el").spin({ ... }); // Produces a Spinner using your custom settings. $("#el").spin(false); // Kills the spinner. */ (function($) { $.fn.spin = function(opts, color) { var presets = { "tiny": { lines: 8, length: 2, width: 2, radius: 3 }, "small": { lines: 8, length: 4, width: 3, radius: 5 }, "large": { lines: 10, length: 8, width: 4, radius: 8 } }; if (Spinner) { return this.each(function() { var $this = $(this), data = $this.data(); if (data.spinner) { data.spinner.stop(); delete data.spinner; } if (opts !== false) { if (typeof opts === "string") { if (opts in presets) { opts = presets[opts]; } else { opts = {}; } if (color) { opts.color = color; } } data.spinner = new Spinner($.extend({color: $this.css('color')}, opts)).spin(this); } }); } else { throw "Spinner class not available."; } }; })(jQuery); ; FI" _version; F"%a56e299f2a1533d05670872f69b40e31
Version data entries
9 entries across 9 versions & 1 rubygems