zeus.ugent.be/content/assets/scripts/gamification.coffee

21 lines
526 B
CoffeeScript
Raw Normal View History

2016-10-03 14:41:36 +02:00
$ ->
$.getJSON 'https://zeus.ugent.be/game/top4/show.json', (data) ->
2017-02-08 16:31:17 +01:00
str = "<table>"
2016-10-03 14:41:36 +02:00
for x in data
2017-02-08 16:31:17 +01:00
str += """
<tr>
<td class="picture">
<img class="coder-picture" src="#{x.avatar_url}">
</td>
<td class="name">
<a class="coder-name" href="#{x.github_url}">#{x.github_name}</a>
</td>
<td class="score">
#{x.score}
</td>
</tr>
"""
str += "</table>"
2016-10-03 14:41:36 +02:00
$('#gamification-coders').html(str)