summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-11-02 16:32:36 -0800
committerRose Hogenson <rosehogenson@posteo.net>2025-11-02 16:39:14 -0800
commitd087f7d33e083a4f70a98d3a4cbfa636c7c173e6 (patch)
tree0a01a671593275f565e5e5f60281bc055a39a307 /templates
parent5f031c4e1f63ea6a8e9aec33005943f6cdd3cae2 (diff)
downloadroseh.moe-d087f7d33e083a4f70a98d3a4cbfa636c7c173e6.tar.zst
Remove server sent events
Diffstat (limited to 'templates')
-rw-r--r--templates/wormhole.html.template32
1 files changed, 17 insertions, 15 deletions
diff --git a/templates/wormhole.html.template b/templates/wormhole.html.template
index 4d67a98..5703949 100644
--- a/templates/wormhole.html.template
+++ b/templates/wormhole.html.template
@@ -1,19 +1,21 @@
{{define "head"}}
- <script src="/static/htmx.min.js"></script>
- <script src="/static/htmx-ext-sse.js"></script>
<title>Wormhole</title>
{{end}}
-<div
- hx-ext="sse"
- sse-connect="/wormhole/{{.Hole}}/ready">
- <form
- hx-post="/wormhole/{{.Hole}}"
- hx-trigger="sse:ready"
- enctype="multipart/form-data">
- <label for="file-input">1. Choose file</label>
- <input id="file-input" type="file" name="file">
- </form>
-</div>
-
-<p>2. Visit this URL <a href="{{.Self}}/wormhole/{{.Hole}}">{{.Self}}/wormhole/{{.Hole}}</a></p>
+<form
+ method="post"
+ enctype="multipart/form-data">
+ <ol>
+ <li>
+ <label for="file-input">Choose file</label>
+ <input id="file-input" type="file" name="file">
+ </li>
+ <li>
+ <p>Visit this URL <a href="/wormhole/{{.Hole}}">{{.Self}}/wormhole/{{.Hole}}</a></p>
+ </li>
+ <li>
+ <label for="submit">Click here:</label>
+ <input id="submit" type="submit" value="Upload">
+ </li>
+ </ol>
+</form>