Use the github-widget
class and create an attribute called data-repo
:
<div class="github-widget" data-repo="jquery-boilerplate/boilerplate"></div>
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
Include this jQuery plugin:
<script src="jquery.github.repos.min.js"></script>
Call the plugin:
<script>
$('.github-repos').githubRepos();
</script>
And that's it \o/
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- v0.3 January 13, 2013
- Added live demo
- Replaced single images for a sprite
- Added minified version
- v0.2 September 11, 2012
- Code wrapped into a jQuery plugin
- Demonstration page created
- v0.1 September 10, 2012
- Initial commit