forked from wbotelhos/raty
-
Notifications
You must be signed in to change notification settings - Fork 1
jQuery Raty - A Star Rating Plugin
gabrielbenz/raty
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
/** * jQuery Raty - A Star Rating Plugin - http://wbotelhos.com/raty * -------------------------------------------------------------------------- * * Licensed under The MIT License * * @version 0.2 * @since 11.06.2010 * @author Washington Botelho dos Santos * @link http://wbotelhos.com/raty * @twitter http://twitter.com/wbotelhos * @license http://www.opensource.org/licenses/mit-license.php MIT * @package jQuery Plugins * * Thanks to: * -------------------------------------------------------------------------- * @glbenz * @franciscosouza * * Usage (default values): * -------------------------------------------------------------------------- * $('div#star').raty({ * hintList: ['bad', 'poor', 'regular', 'good', 'gorgeous'], // A hint information for default 5 stars. * number: 5, // Number of star. * path: 'img, // Path of images. * readOnly: false, // read-only or not. * scoreName: 'score', // The name of target score. * start: 0, // Start with a score value. * starOff: 'star-off.png', // The image of the off star. * starOn: 'star-on.png', // The image of the on star. * //onClick: function() { alert('clicked!'); } // A default function can to be setted here. * }); * * <div id="star"></div> * * Public functions: * -------------------------------------------------------------------------- * $.fn.raty.start(3); // Starting the rating with 3 stars later. * $.fn.raty.readOnly(true); // Adjusts the rating for read-only later. * $.fn.raty.click(2); // Click in a star later. * * Should come after the current raty and before the anothers one. Because it takes the last called raty. * */
About
jQuery Raty - A Star Rating Plugin
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 100.0%