Jon Aquino's Mental Garden

Engineering beautiful software jon aquino labs | personal blog

Saturday, August 22, 2009

js-kit for quickly adding comments / ratings to a website

I heart js-kit. To add a 5-star rating widget to Yubnub, I simply added the following to each page:
<div class="js-kit-rating" view="combo" path="(optional unique identifier goes here)"></div>
<script src="http://js-kit.com/ratings.js"></script>

Similarly, adding comments to each page was simply a matter of adding:
<div id="js-kit-comments" path="(optional unique identifier goes here)"></div>
<script src="http://js-kit.com/comments.js"></script>

Leave off the path="..." bit if you’re not going to use it.

0 Comments:

Post a Comment

<< Home