Initial deploy

This commit is contained in:
Fergal Moran
2015-10-05 20:14:33 +01:00
parent 3ad11b011d
commit 7e6db3bf61
10 changed files with 177 additions and 204 deletions

View File

@@ -6,14 +6,14 @@ function getCookie(name) {
$(document).ready(function () {
var xsrf = getCookie("_xsrf");
$('#play_audio').click(function () {
$.post("/a/play", {
$.post("/a/play", JSON.stringify({
_xsrf: xsrf,
audio_file: $('#audio_file').val()
});
}), 'json');
});
$('#stop_audio').click(function () {
$.post("/a/stop", {
_xsrf: xsrf
});
}, 'json');
});
});