开源软件名称:bachors/jQuery-Github-Feed
开源软件地址:https://github.com/bachors/jQuery-Github-Feed
开源编程语言:
JavaScript
76.8%
开源软件介绍:jQuery-Github-Feed
This is a small and simple jQuery plugin to make github repositories, activity and gists widget from multiple accounts.
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>
|
请发表评论