RunCodeRun Badge

Get Version

0.1.0

What

Show off the integration status of your RunCodeRun projects! Like the badge above, but customized for your own projects.

Installation

Sample HTML to paste into your blog sidebar:

<div id="runcoderun-badge"></div>
<script type="text/javascript" charset="utf-8">
  RUNCODERUN = {
    username: 'relevance'
  };
</script>
<script src="http://thinkrelevance.rubyforge.org/runcoderun_badge/dist/runcoderun-badge-launcher.js" type="text/javascript"></script>

A full outline of available options:

<div id="runcoderun-badge"></div>
<script type="text/javascript" charset="utf-8">
  RUNCODERUN = {
    username:    "relevance",
    list_length: 10,
    head:        "div",    // e.g. change to "h2" for wordpress sidebars
    theme:       "white",  // try 'black'
    title:       "My projects",
    show_all:    "Show all",
  };
</script>
<script src="http://thinkrelevance.rubyforge.org/runcoderun_badge/dist/runcoderun-badge-launcher.js" type="text/javascript"></script>

Only RUNCODERUN.username is a required pre-set property. The others above show the defaults, and can be changed by being specified.

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 theme: 'black' code to the configuration above. (Or if you don’t like the black theme and want to force it back to white, add theme: 'white'.)

Source code

You can fetch the source from:

git clone git://github.com/relevance/runcoderun-badges.git

License

This code is free to use under the terms of the MIT license.

Contact

Comments are welcome. Send an email to Glenn Vanderburg.

Glenn Vanderburg, 16th October 2008
Theme extended from Paul Battley