Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 869 Bytes

README.md

File metadata and controls

40 lines (32 loc) · 869 Bytes

NPM

Simple jQuery plugin

npm version

Simple jQuery plugin rating.

Install

$ bower i jquery.thumbs.js

or

$ npm i jquery.thumbs.js  

You can see example in action

Simple example

$(function () {
        $('.js-rating-simple').thumbs();
})

Extended example

$(function () {
        $('.js-rating').thumbs({
            onLike: function (value) {
                console.log('Like ' + value);
            },
            onDislike: function(value) {
                console.log('Dislike ' + value)
            }
        });
})