Functional web interface

This commit is contained in:
da
2017-01-19 22:49:17 +01:00
parent 0ffa002ba9
commit f0cff35bea
7 changed files with 81 additions and 98 deletions
+5 -5
View File
@@ -1,12 +1,12 @@
{{ define "content" }}
{{ define "sessionHandler" }}
<script type="text/javascript">
function playSound() {
function playSound(cmd, sndnm) {
var data = {
command: "!bsth",
soundname: "unmoeglich"
command: cmd,
soundname: sndnm
};
$.post("/playsound", data, function(data, success) {});
}
</script>
<a href="/logout">Logout</a><br/>
<a href="javascript:playSound()">Play sound</a> {{ end }}
{{ end }}