rating widget. demo
$ component install ramitos/rating
var rating = require('rating');
rating(function (el) {
document.getElementById('rating').appendChild(el)
});
callback
arguments:
- DOMElement
returns a new rating instance
returns the current rating number
MIT