Forked from decause/coderwall_badge_markup.html
Last active
October 5, 2016 14:27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the Pen Coderwall badges by Stephen Benner (@SteveBenner) on CodePen.
<script async src="//codepen.io/assets/embed/ei.js"></script>