diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 00000000..babac6d0 --- /dev/null +++ b/LICENSE.txt @@ -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. \ No newline at end of file diff --git a/README b/README deleted file mode 100644 index 05526647..00000000 --- a/README +++ /dev/null @@ -1,46 +0,0 @@ -/** - * jQuery Raty - A Star Rating Plugin - http://wbotelhos.com/raty - * -------------------------------------------------------------------------- - * - * Licensed under The MIT License - * - * @version 0.4 - * @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. - * 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', // 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. - * }); - * - *
- * - * 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. - * - */ \ No newline at end of file diff --git a/README.txt b/README.txt new file mode 100644 index 00000000..d3f97938 --- /dev/null +++ b/README.txt @@ -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. + * }); + * + * + * + * 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. + * + */ \ No newline at end of file diff --git a/changelog.txt b/changelog.txt index 19ecaaed..447d7a94 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,13 @@ * jQuery Raty - A Star Rating Plugin - http://wbotelhos.com/raty * -------------------------------------------------------------------------- * + * 07.08.2010 + * - Now you can put a cancel button to cancel your rating; + * - Choose the cancel image off; + * - Choose the cancel image on; + * - Choose de left or right side position for the cancel button; + * - Change de hint of the cancel button. + * * 07.02.2010 * - Added support to display half star. * diff --git a/img/cancel-off.png b/img/cancel-off.png new file mode 100644 index 00000000..a3031f05 Binary files /dev/null and b/img/cancel-off.png differ diff --git a/img/cancel-on.png b/img/cancel-on.png new file mode 100644 index 00000000..08f24936 Binary files /dev/null and b/img/cancel-on.png differ diff --git a/index.html b/index.html index c232c639..287152a4 100644 --- a/index.html +++ b/index.html @@ -6,10 +6,9 @@