Last Updated: February 25, 2016
·
1.24K
· timpietrusky

To gain kudos is to earn respect and recognition

I created Kudos Please, a one-element kudos widget with no dependencies.

How to use it


1. Add the CSS/JS to your page

2. Add the widget HTML

<div class="kudos" 
     data-amount="0" 
     data-url="domain.tld/my-awesome-article"></div>

3. Initialize the widget via JS

new KudosPlease({ 
  el : '.kudos',
  duration : 1500,
  persistent : true,
  status : {
    alpha: 'fontelico-emo-shoot',
    beta: 'fontelico-emo-shoot',
    gamma: 'fontelico-emo-beer'
  }  
});

Free API or host yourself


The amount of kudos for a specific url is saved in my backend, but you can also download it on GitHub and create your own: Kudos Please on GitHub

Examples


Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside