Login

jQuery Github Feed


Ini adalah jQuery plugin yang sangat sederhana untuk membuat widget repositori github, aktivitas dan gists dari 1 atau lebih akun github secara bersamaan.

Usage:

<!-- Include Octicons -->
<link href="//cdnjs.cloudflare.com/ajax/libs/octicons/2.0.2/octicons.min.css" rel="stylesheet">   

<!-- Custom Github Feed style -->
<link type="text/css" rel="stylesheet" href="src/github-feed.css" />   

<!-- by ClassName -->
<div class="anu" data-username="bachors"></div>
<div class="anu" data-username="facebook"></div>

<!-- by ID -->
<div id="unix" data-username="primer"></div>

<!-- Include jQuery -->
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>   

<!-- Include jQuery Github Feed-->
<script src="src/github-feed.js"></script>

<script>
$(document).ready(function(){  
 
   $(".anu").githubfeed(
     sort = "updated", // Can be one of created, updated, pushed, full_name.
     width = '100%', // width widget
     height = '400px' // height post
   );
       
   $("#unix").githubfeed(
     sort = "updated", // Can be one of created, updated, pushed, full_name.
     width = '350px', // width widget
     height = '400px' // height post
   );
});
</script>

Demo Fork me on GitHub



Contributor:

issues