aboutsummaryrefslogblamecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/coderwall-js.html
blob: 1e3a9d5139cf1afaa84ec962da6d3ca58218cd90 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                                       
{% if CODERWALL_USER %}
	<script type="text/javascript">
	$(document).ready(function(){
		$.getJSON("http://coderwall.com/{{ 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>
{% endif %}