GitRepo
Responsive GitHub Repo Widget developed with VanillaJS
Install / Use
/learn @pinceladasdaweb/GitRepoREADME
GitRepo
Responsive GitHub Repo Widget developed with VanillaJS.
Motivation
I created a version of Vanilla JS based on the original of JoelSutherland.
Demo
Access the url and view in action.
How to install
You can download the lib:
Please, this lib don't have CDN yet, so you need to download and put it in your own site.
How to use
Loading the lib
Like I said, download the package and reference the JavaScript and CSS files manually.
Put the CSS in the head section of your HTML document:
<!-- Required CSS for the GitRepo lib -->
<link href="/path/to/gitrepo.min.css" rel="stylesheet" type="text/css" media="all">
Put the JavaScript before end of body tag:
<!-- Loading and initialize the GitRepo lib -->
<script src="/path/to/gitrepo.min.js"></script>
<script>GitRepo();</script>
In an AMD loader:
require(['/path/to/gitrepo.min'], function(GitRepo) {
GitRepo()
});
Everywhere you want a widget to be placed, add the following markup:
<div class="github-widget" data-repo="pinceladasdaweb/GitRepo"></div>
Rate Limiting
The rate limit allows you to make up to 60 requests per hour
Compatibility
|
|
|
|
--- | --- | --- | --- | --- |
IE 8+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
License
GitRepo is licensed under the MIT License.
