This commit is contained in:
Fergal Moran
2015-09-22 22:02:19 +01:00
commit 4f831b18fc
51 changed files with 21093 additions and 0 deletions

19
static/js/app.js Normal file
View File

@@ -0,0 +1,19 @@
function getCookie(name) {
var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
return r ? r[1] : undefined;
}
$(document).ready(function () {
var xsrf = getCookie("_xsrf");
$('#play_audio').click(function () {
$.post("/a/play", {
_xsrf: xsrf,
audio_file: $('#audio_file').val()
});
});
$('#stop_audio').click(function () {
$.post("/a/stop", {
_xsrf: xsrf
});
});
});

4
static/js/jquery.js vendored Normal file

File diff suppressed because one or more lines are too long