making a first mvc that can actually play stuff
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user