GitXplorerGitXplorer
d

github-badges

public
104 stars
25 forks
6 issues

Commits

List of commits on branch master.
Unverified
3817cea2f7a7dd3265e3abbf98d709b6f1bbe871

bump website

ddrnic committed 15 years ago
Unverified
3648d88899a5022426a31ffa0c11938ceefc9fc6

bumped to 1.2.4

ddrnic committed 15 years ago
Unverified
a7010d93aa554a98103fa68bbef79e388b8d497a

if jquery is already installed the badge now works (was using the wrong $.getScript call for a callback)

ddrnic committed 15 years ago
Unverified
5a4183c9f81396dc98e86fbbdee879ea3c38e9f4

opening projects via badge link opens another window/tab

ddrnic committed 15 years ago
Unverified
d014b3c3ea8fc3e4b4d9d1ea7715cbbb8d8deabb

updae website

ddrnic committed 15 years ago
Unverified
826dc847d104a8cc3b84956c32a557c0c90780ad

updated to jQuery 1.3.2

ddrnic committed 15 years ago

README

The README file for this repository.

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'
  GITHUB_TITLE = "My projects"
  GITHUB_SHOW_ALL = "Show all"
</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