From 06cc8a514aa22b6825d695eea7e3b9cd137c4677 Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 3 Oct 2016 14:41:36 +0200 Subject: [PATCH] fix some more stuff --- content/assets/scripts/gamification.coffee | 8 +++ content/index.erb | 71 ++++++++-------------- 2 files changed, 35 insertions(+), 44 deletions(-) create mode 100644 content/assets/scripts/gamification.coffee diff --git a/content/assets/scripts/gamification.coffee b/content/assets/scripts/gamification.coffee new file mode 100644 index 0000000..33d55b8 --- /dev/null +++ b/content/assets/scripts/gamification.coffee @@ -0,0 +1,8 @@ +$ -> + $.getJSON 'https://zeus.ugent.be/game/top4/show.json', (data) -> + str = "
    " + for x in data + str += "
  1. #{x.github_name} (#{x.score} Z$)
  2. " + str += "
" + + $('#gamification-coders').html(str) diff --git a/content/index.erb b/content/index.erb index 149c909..f3d059e 100644 --- a/content/index.erb +++ b/content/index.erb @@ -19,36 +19,36 @@
-
- -
-
@@ -63,29 +63,11 @@
-

- Numero uno: @werthen -

-

- Numero dos: @myncke -

-

- Numero tres: @iepoev -

-

- Numero quatro: @becousae -

-
-
-
-
-
- GITHUB -
-
-
-
- GITHUB +
@@ -93,3 +75,4 @@
+<%= asset :js, :gamification %>