The easiest way to use the jokes in your website, is by using the JavaScript API, a jQuery plugin. You can download the plugin at http://code.icndb.com, the most recent versions are available at http://code.icndb.com/jquery.icndb.min.js (minified production version) or http://code.icndb.com/jquery.icndb.js (developer version with comments).

The plugin provides the following methods:

  • $.icndb.getRandomJoke()
  • $.icndb.getRandomJokes()
  • $.icndb.getNumberOfJokes()
  • $.icndb.getCategories()

For documentation, look into the developer version of the code.

Want to contribute? Fork me on:  

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Set your Twitter account name in your settings to use the TwitterBar Section.