add upload spinner; hopefully fix github actions

This commit is contained in:
WaveringAna 2025-01-19 23:04:49 -05:00
parent 6be6d3b15f
commit d9dd204221
5 changed files with 80 additions and 67 deletions

View file

@ -40,7 +40,7 @@
</form>
</nav>
</header>
<form hx-post="/" encType="multipart/form-data" hx-target="#embedder-list" hx-swap="innerHTML">
<form encType="multipart/form-data" hx-target="#embedder-list" hx-swap="innerHTML">
<div id="dropArea">
<p class="dragregion">Upload a file, copy paste, or drag n' drop into the dashed region</p>
<div id="gallery"></div>
@ -63,6 +63,12 @@
</p>
<p class="dragregion">Click the file to copy the url</p>
</div>
<div id="uploadProgressContainer" style="display:none;">
<p>Uploading: <span id="uploadPercent">0%</span></p>
<div style="width:100%; background:#333;">
<div id="uploadBar" style="width:0%; height:8px; background:#c00;"></div>
</div>
</div>
</form>
<section class="main">
<ul id="embedder-list" class="embedder-list" hx-get="/media-list" hx-trigger="load"></ul>