Created
April 24, 2013 16:48
-
-
Save mohitsethi/5453636 to your computer and use it in GitHub Desktop.
coderwall
This file contains hidden or 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
| {% if site.coderwall_user %} | |
| <section class="well"> | |
| <ul class="nav"> | |
| <li class="nav-header">Coderwall Badges</li> | |
| </ul> | |
| <div id="coderwall_badges"></div> | |
| <a href="http://coderwall.com/{{site.coderwall_user}}">@{{site.coderwall_user}}</a> on coderwall | |
| <script type="text/javascript"> | |
| $(document).ready(function(){ | |
| $.getJSON("http://coderwall.com/{{site.coderwall_user}}.json?callback=?", function(data){ | |
| for(var i = 0; i < data.data.badges.length ; i++){ | |
| var badge = data.data.badges[i]; | |
| var badge_tag = $("<img />"); | |
| badge_tag.attr("src",badge.badge); | |
| badge_tag.css("width","50%"); | |
| $("#coderwall_badges").append(badge_tag); | |
| } | |
| }); | |
| }); | |
| </script> | |
| </section> | |
| {% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment