Create an attribute called data-repo
:
<div data-repo="jquery-boilerplate/boilerplate"></div>
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
Include plugin's CSS and JS:
<link rel="stylesheet" href="assets/base.css">
<script src="jquery.github.min.js"></script>
Call the plugin:
$('[data-repo]').github();
And that's it \o/
Prefer a non-jquery version with pure JavaScript? No problem, @ricardobeat already did one :) Check his fork!
- 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.2.5 March 01, 2013
- Added Grunt and integrated it with Travis
- Added lint task
- Added minify task
- v0.2.4 January 17, 2013
- Renamed from
jquery-github-repos
tojquery-github
- Renamed from
- v0.2.3 January 17, 2013
- Added to jQuery Plugins Registry
- Updated to jQuery v1.9
- v0.2.2 January 15, 2013
- Fixed "Last commit" date
- Cached repo data using sessionStorage
- Added error message if API exceeds its limits
- v0.2.1 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
Built on top of jQuery Boilerplate