jQuery Raty - A Star Rating Plugin
Version
@version 2.7.1
@since 2010.06.11
@author Washington Botelho
@doc wbotelhos.com/raty
Dependencies
Usage with Image
- jquery.raty.js
- star-off.png
- star-on.png
<script src="jquery.raty.js"></script>
<div></div>
$('div').raty();
Usage with Font
- jquery.raty.js
- jquery.raty.[eot|svg|ttf|woff]
- jquery.raty.css
<link rel="stylesheet" href="jquery.raty.css">
<script src="jquery.raty.js"></script>
<div></div>
$('div').raty({ starType: 'i' });
Bower Install
bower install raty
See bower.io for more information.
Options
cancel : false
cancelClass : 'raty-cancel'
cancelHint : 'Cancel this rating!'
cancelOff : 'cancel-off.png'
cancelOn : 'cancel-on.png'
cancelPlace : 'left'
click : undefined
half : false
halfShow : true
hints : ['bad', 'poor', 'regular', 'good', 'gorgeous']
iconRange : undefined
mouseout : undefined
mouseover : undefined
noRatedMsg : 'Not rated yet!'
number : 5
numberMax : 20
path : undefined
precision : false
readOnly : false
round : { down: .25, full: .6, up: .76 }
score : undefined
scoreName : 'score'
single : false
space : true
starHalf : 'star-half.png'
starOff : 'star-off.png'
starOn : 'star-on.png'
target : undefined
targetFormat: '{score}'
targetKeep : false
targetScore : undefined
targetText : ''
targetType : 'hint'
starType : 'img'
Functions
$('div').raty('score');
$('div').raty('score', number);
$('div').raty('click', number);
$('div').raty('readOnly', boolean);
$('div').raty('cancel', boolean);
$('div').raty('reload');
$('div').raty('set', { option: value });
$('div').raty('destroy');
$('div').raty('move', number);
Contributors
Check it out
Licence
The MIT License
Love it!
Via PayPal or Gittip. Thanks! (: