Responsive GitHub Repo Widget developed with VanillaJS.
I created a version of Vanilla JS based on the original of JoelSutherland.
Access the url and view in action.
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.
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>
The rate limit allows you to make up to 60 requests per hour
IE 8+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
GitRepo is licensed under the MIT License.