Skip to content

rauchg/gitfollow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

gitfollow

Gitfollow is a very simple JavaScript plugin that you can add to your websites to display your GitHub followers count.

By getting people to follow you, you'll drive more attention to your projects and get more people involved in contributing and commenting.

What does it look like?

The button uses beatiful and sexy CSS3 styling!

Screenshot

How to use

Place gitfollow in your header

<script src="gitfollow.js" type="text/javascript"></script>

Place a link with class="gitfollow" wherever you want your GitHub count to be rendered. Make sure the link points to your GitHub profile page.

<a href="http://github.com/Guille" class="gitfollow"></a>

If you want a smaller one try

<a href="http://github.com/Guille" class="gitfollow small"></a>

and that's it!

How it works

gitfollow utilizes the excellent GitHub API with the JSONP callback. Some neat things you can find in the code:

  • data: URI usage for the logo injection (which is really small)

  • HTML5 sessionStorage as a caching mechanism

  • CSS3 gradients, box-shadow, border-radius

gitfollow has been tested in Safari 4, Google Chrome (mac) and Firefox 3.5. It displays best in webkit-based browsers.

Credits

Authored by: Guillermo Rauch

GitHub logo: found here

Inspired by Retweet by John Resig

About

Add a GitHub followers badge to your website!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published