making a first mvc that can actually play stuff

This commit is contained in:
2023-07-19 01:14:18 +02:00
parent a2a767c42f
commit 10bbbb2f82
5 changed files with 100 additions and 71 deletions

View File

@@ -3,12 +3,14 @@
<head>
<title>Play</title>
<script>
function play() {
fetch("/play/1");
function play(hash) {
fetch("/play/" + hash);
}
</script>
</head>
<body>
<button onclick="play()">Play</button>
{% for clip in clips %}
<button onclick="play('{{clip.hash}}')">{{clip.file_name}}</button><br />
{% endfor %}
</body>
</html>