aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/coderwall-js.html
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2015-02-11 08:27:57 -0800
committerJustin Mayer <entroP@gmail.com>2015-02-11 08:27:57 -0800
commit6d75bfd22189216e76b36ab620cc03e7b33abc60 (patch)
treebcc3dd68c9b8e032e3814f3d8eb44961f590e488 /pelican-bootstrap3/templates/includes/coderwall-js.html
parent8f89902a272ae424d70b101b9c9d7d4a300e6649 (diff)
parent549530fd62121a39c83ac5e79058f50639353fea (diff)
downloadpelican-themes-6d75bfd22189216e76b36ab620cc03e7b33abc60.tar.gz
Merge pull request #276 from higebu/feature/coderwall
pelican-bootstrap3: Add support for coderwall badges
Diffstat (limited to 'pelican-bootstrap3/templates/includes/coderwall-js.html')
-rw-r--r--pelican-bootstrap3/templates/includes/coderwall-js.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/coderwall-js.html b/pelican-bootstrap3/templates/includes/coderwall-js.html
new file mode 100644
index 0000000..1e3a9d5
--- /dev/null
+++ b/pelican-bootstrap3/templates/includes/coderwall-js.html
@@ -0,0 +1,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 %}