Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 795 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 795 Bytes

Github Feed

Display your latest github repositories with lightweight and pure JavaScript! See demo

Basic usage

  1. Call githubFeed.js preferably right before the </body> tag:
<script src="assets/js/githubFeed.js"></script>
  1. Add the code below into your HTML. The repositories will appear in this tag;
<div id="github-feeds"></div>
  1. 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
	}
});