Yeah baby
This commit is contained in:
parent
8b9107f809
commit
1474cd118f
2 changed files with 17 additions and 0 deletions
6
content/assets/scripts/message.coffee
Normal file
6
content/assets/scripts/message.coffee
Normal file
|
@ -0,0 +1,6 @@
|
|||
$ '.send'
|
||||
.click ->
|
||||
$context = $ this
|
||||
$.ajax "https://kelder.zeus.ugent.be/messages",
|
||||
type: "POST"
|
||||
data: $ '.chatbox'
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue