Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krol44/rating
javascript star rating
https://github.com/krol44/rating
Last synced: about 2 months ago
JSON representation
javascript star rating
- Host: GitHub
- URL: https://github.com/krol44/rating
- Owner: krol44
- Created: 2015-05-28T14:50:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-11T08:49:11.000Z (almost 9 years ago)
- Last Synced: 2023-03-02T03:46:41.208Z (almost 2 years ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
demo - http://krol44.com/rating/index.html
### start
```js
$('#rating').rating({
title: ['Хуже не бывает', 'Ужасно', 'Очень плохо', 'Плохо', 'Более-менее', 'Нормально', 'Хорошо', 'Отлично', 'Великолепно', 'Шедевр!'],
click: function(d) {
console.log('click', d);
},
move: function(d) {
console.log('move', d);
},
mouseOut: function(d) {
console.log('mouseOut', d);
},
loaded: function(d) {
console.log('loaded', d);
}
});
```### setting
```js
quantity: 5,
half: 'yes',
starOn: '/external/img/star-on.png',
starOnSet: '/external/img/star-on-set.png',
starOff: '/external/img/star-off.png',
starHalf: '/external/img/star-half.png',
starHalfSet: '/external/img/star-half-set.png',
setScore: undefined,
lock: 'no',
title: ['Appalling', 'Horrible', 'Very Bad', 'Bad', 'Average', 'Fine', 'Good', 'Very Good', 'Great', 'Masterpiece!'],
click: function(){},
move: function(){},
mouseOut: function(){},
loaded: function(){}
```