drnic / github-badges

GitHub Blog Badges for Everyone

This URL has Read+Write access

carlosbrando (author)
Tue May 06 17:21:31 -0700 2008
commit  07e66cc1a55fd19379dc6de0a6306598451b848f
tree    677f52c9fb982857a87080c6ac139c4b131e1cdd
parent  024672d007539646b12ff0f192aa7e5956c52978
name age message
file .gitignore Tue May 06 17:01:50 -0700 2008 Added .DS_Store to .gitignore file. [carlosbrando]
file History.txt Loading commit data...
file License.txt Fri Apr 25 19:25:25 -0700 2008 initial import [drnic]
file README.markdown
file Rakefile Mon May 05 21:33:01 -0700 2008 1.2.0 - fixed check for blackness [drnic]
directory config/ Sat Apr 26 03:38:37 -0700 2008 update website with git src [drnic]
directory lib/ Fri Apr 25 19:25:25 -0700 2008 initial import [drnic]
directory script/ Sat Apr 26 02:58:06 -0700 2008 tests for launcher; clean up dist task; website [drnic]
directory src/
directory tasks/ Sat Apr 26 02:58:06 -0700 2008 tests for launcher; clean up dist task; website [drnic]
directory test/
directory website/
README.markdown

Github Badges

Want to show off your projects on github to world? Then a sexy badge on your blog would be awesome.

Its still under development, but here is a screenshot of the unit tests + the sample badge below.

github badge: new look-n-feel

Live Demo

See the project website: http://drnicjavascript.rubyforge.org/github_badge

Usage

It is expected that to use the widget, you will copy + paste + modify the following snippet into your blog sidebar.

<div id="github-badge"></div>
<script type="text/javascript" charset="utf-8">
  GITHUB_USERNAME="drnic";
  GITHUB_LIST_LENGTH=10;
  GITHUB_HEAD="div"; // e.g. change to "h2" for wordpress sidebars
  GITHUB_THEME="white"; // try 'black'
</script>
<script src="http://drnicjavascript.rubyforge.org/github_badge/dist/github-badge-launcher.js" type="text/javascript"></script>

Black background? If your site has a black background the badge will automatically attempt to use the black_badge.css theme. If it doesn't trigger for your site add the GITHUB_THEME='black' code to the configuration above.

Website

http://drnicjavascript.rubyforge.org/github_badge

Author

Dr Nic Williams, drnicwilliams@gmail.com