Dribbble.jsFork me on github
Dribbble.js is a single file, library agnositc script for adding your recent Dribbble shots to your website. Dribbble.js is written in "old fashioned" JavaScript and doesn't need jQuery or other such libraries to operate, and can therefore be dropped into any site and just work. Below is an example of to implement Dribbble.js on your website
<script src="scripts/dribbble.js" type="text/javascript"></script>
<scripttype="text/javascript">
getShotsForID('tim', 'shots');
</script>
The paramets for getShotsForID are as follows
getShotsForID (dribble user id or username, element ID to add the shots to, number of shots)
For a more detailed example, check out the source of this page and the script file itself.
Loading…