Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

npm version

emotion-ratings

This plugin allows you to create ratings using emojis!

Preview:

emotion ratings

emotion ratings

Demo

Emotion Ratings

Installation

You can install emotion-ratings component using the npm package manager:

npm install --save emotion-ratings

Usage

  1. Include jQuery >=1.9:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  2. Include plugin's code:

    <script src="emotion-ratings.min.js"></script>
  3. Call the plugin:

     // the emotions can be an array 
     var emotionsArray = ['angry','disappointed','meh', 'happy', 'inLove'];
     // or a single one
     var emotionsArray = ['happy'];
     jQ("#element").emotionsRating({
     emotionSize: 30,
     bgEmotion: 'happy',
     emotions: emotionsArray,
     color: '#FF0066', //the color must be expressed with a css code
     initialRating: 4, //initialize the rating number
     disabled: true, //set if the rating can be changed or not, default is false
     onUpdate: function(value) {} //set value changed event handler
     });

Contribution

You can contribute by forking and doing a PR.

License

MIT License Β© Yanci Nerio

About

😠 😞 πŸ˜‘ 😊 😍 This plugin allows you to create ratings using emojis

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /