First test of sound commands through web interface

This commit is contained in:
da
2017-01-19 17:03:57 +01:00
parent 9b8d1ead08
commit 0ffa002ba9
3 changed files with 50 additions and 4 deletions
+12 -3
View File
@@ -1,3 +1,12 @@
{{ define "content" }}
<a href="/logout">Logout</a>
{{ end }}
{{ define "content" }}
<script type="text/javascript">
function playSound() {
var data = {
command: "!bsth",
soundname: "unmoeglich"
};
$.post("/playsound", data, function(data, success) {});
}
</script>
<a href="/logout">Logout</a><br/>
<a href="javascript:playSound()">Play sound</a> {{ end }}