Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Add a GitHub followers badge to your website!
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
gitfollow.js
test.html

README.md

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

Something went wrong with that request. Please try again.