stop function

This commit is contained in:
2023-07-19 01:20:13 +02:00
parent 10bbbb2f82
commit cb0272b790
2 changed files with 14 additions and 1 deletions

View File

@@ -6,11 +6,17 @@
function play(hash) {
fetch("/play/" + hash);
}
function stop() {
fetch("/stop");
}
</script>
</head>
<body>
{% for clip in clips %}
<button onclick="play('{{clip.hash}}')">{{clip.file_name}}</button><br />
{% endfor %}
<button onclick="stop()">Stop.</button>
</body>
</html>