File: README.md

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Slim GitHub JS API   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Slim GitHub JS API
Retrieve data of Github profiles and repositories
Author: By
Last change: Update of README.md
Date: 3 years ago
Size: 1,346 bytes
 

Contents

Class file image Download

Github jQuery API

Overview

This class allows you to retrieve basic information from your GitHub account.

Example

  • HTML Code:

    <!-- Include the jQuery library --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

    <!-- Include this Sound plugin --> <script src="http://your-site.com/static/js/Git.js"></script>

    <section role="main" class="center" id="git" data-gituser="pH-7"> <section> <header> <h2>Repositories</h2> </header> <p id="bio"></p> </section>

    <section> <header> <h2>Repositories</h2> </header> <ul id="repos" data-queryurl="?sort=updated"></ul> </section>

    <section> <header> <h2>Gists</h2> </header> <ul id="gists" data-queryurl="?sort=updated"></ul> </section> </section>

  • JS Code:

    // Retrieve information from GitHub jQuery(document).ready(function($) { Git.Git().repos().gist().bio(); });

Author

Pierre-Henry Soria

License

MIT License