From aa8698f877029df2cbda41320e38595d02c97b26 Mon Sep 17 00:00:00 2001 From: Chris Fulljames Date: Mon, 20 Jan 2025 10:50:40 -0500 Subject: [PATCH] Minor upload page improvements --- templates/edit-song.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/templates/edit-song.html b/templates/edit-song.html index 7dfecec..63e02b7 100644 --- a/templates/edit-song.html +++ b/templates/edit-song.html @@ -6,10 +6,11 @@ {% if song %}
+

Edit Song

{% else %} +

Upload a New Song

{% endif %} -

Upload a new song


@@ -31,7 +32,12 @@
- + {% if song %} + + {% else %} + + {% endif %} +
@@ -44,6 +50,11 @@ document.getElementById("file-select").addEventListener("change", function(e) { songTitle.value = name.substring(0, name.length - 4); } }); + +function onUpload(event) { + var uploading = document.getElementById("uploading") + uploading.hidden = false; +} {% endblock %} -- 2.39.5