Yeah baby

This commit is contained in:
Wout Schellaert 2018-04-27 02:13:05 +02:00
parent 8b9107f809
commit 1474cd118f
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,6 @@
$ '.send'
.click ->
$context = $ this
$.ajax "https://kelder.zeus.ugent.be/messages",
type: "POST"
data: $ '.chatbox'

View file

@ -4,6 +4,7 @@ title: Cammie
---
<% content_for :scripts do %>
<%= asset :js, :cammie %>
<%= asset :js, :message %>
<% end %>
<section id="cammie-section">
@ -66,4 +67,14 @@ title: Cammie
</button>
</div>
</nav>
<div class="columns">
<div class="field has-addons ">
<div class="field control">
<input class="input chatbox" type="text" placeholder="Zeus is de max!">
</div>
<a class="button send control">
Send to kelder
</a>
</div>
<div>
</section>