Skip to content

Instantly share code, notes, and snippets.

@SteveBenner
Forked from decause/coderwall_badge_markup.html
Last active October 5, 2016 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveBenner/207f5641fbe0bc865478 to your computer and use it in GitHub Desktop.
Save SteveBenner/207f5641fbe0bc865478 to your computer and use it in GitHub Desktop.
/ This partial allows you to render the Coderwall badges of specified user
/
ruby:
username = 'your-coderwall-username'
orientation = 'horizontal' # can be 'vertical' or 'horizontal'
/ Place the following tags in the HEAD section of your web page (omit jQuery if already present, of course)
link href="http://coderwall.com/stylesheets/jquery.coderwall.css" media="all" rel="stylesheet" type="text/css"
script src="https://code.jquery.com/jquery-2.1.1.min.js"
script src="http://coderwall.com/javascripts/jquery.coderwall.js"
/ Any arbitrary element can act as a container for rendering the badges in, as long as it has these attributes:
/ .coderwall data-coderwall-username=username data-coderwall-orientation=orientation
@SteveBenner
Copy link
Author

See the Pen Coderwall badges by Stephen Benner (@SteveBenner) on CodePen.

<script async src="//codepen.io/assets/embed/ei.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment