Skip to content

nfort/jquery.thumbs.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
            }
        });
})