First test of sound commands through web interface
This commit is contained in:
1 parent
9b8d1ead08
commit
0ffa002ba9
3 files changed
+50
-4
No files matched your search
+12
-3
@@ -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 }}
|
||||
Reference in new issue
Block a user