From 1474cd118f6bdd89a37a44c81900932b0a3791c6 Mon Sep 17 00:00:00 2001 From: Wout Schellaert Date: Fri, 27 Apr 2018 02:13:05 +0200 Subject: [PATCH] Yeah baby --- content/assets/scripts/message.coffee | 6 ++++++ content/cammie.erb | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 content/assets/scripts/message.coffee diff --git a/content/assets/scripts/message.coffee b/content/assets/scripts/message.coffee new file mode 100644 index 0000000..8b610ae --- /dev/null +++ b/content/assets/scripts/message.coffee @@ -0,0 +1,6 @@ +$ '.send' + .click -> + $context = $ this + $.ajax "https://kelder.zeus.ugent.be/messages", + type: "POST" + data: $ '.chatbox' diff --git a/content/cammie.erb b/content/cammie.erb index de0dfe2..64ca393 100644 --- a/content/cammie.erb +++ b/content/cammie.erb @@ -4,6 +4,7 @@ title: Cammie --- <% content_for :scripts do %> <%= asset :js, :cammie %> +<%= asset :js, :message %> <% end %>
@@ -66,4 +67,14 @@ title: Cammie +
+ +