forked from wbotelhos/raty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
311 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2010 Washington Botelho dos Santos | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/** | ||
* jQuery Raty - A Star Rating Plugin - http://wbotelhos.com/raty | ||
* -------------------------------------------------------------------------- | ||
* | ||
* jQuery Raty is a plugin that generates a customizable star rating automatically. | ||
* | ||
* Licensed under The MIT License | ||
* | ||
* @version 0.5 | ||
* @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({ | ||
* cancelHint: 'cancel this rate!', // The hint information. | ||
* cancelOff: 'cancel-off.png' // Name of the cancel image off. | ||
* cancelOn: 'cancel-on.png' // Name of the cancel image on. | ||
* cancelPlace: 'left', // Position of the cancel button. | ||
* 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. | ||
* showCancel: false, // If will be showed a button to cancel the rate. | ||
* showHalf: false, // Active the half star. | ||
* starHalf: 'star-half.png', // The image of the half star. | ||
* start: 0, // Start with a score value. | ||
* starOff: 'star-off.png', // Name of the star image on. | ||
* starOn: 'star-on.png' // Name of the star image on. | ||
* //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. | ||
* | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.