Display your latest github repositories with lightweight and pure JavaScript! See demo
- Call
githubFeed.js
preferably right before the</body>
tag:
<script src="assets/js/githubFeed.js"></script>
- Add the code below into your HTML. The repositories will appear in this tag;
<div id="github-feeds"></div>
- Copy/paste code bellow and be happy! :D
GithubFeed.init({
username: 'username', //github username
container: '#github-feeds', //DOM element to bind
count: 3, //Number of repositories you'll want to show
order: 'desc', //Order to show
onComplete: function() {
console.log('Yeah!'); //Callback to execute after function init
}
});