go-pkg/mercury/public/index.html

43 lines
1.2 KiB
HTML
Raw Normal View History

2024-01-22 16:00:58 -07:00
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/htmx.org@1.9.10" integrity="sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC" crossorigin="anonymous"></script>
<title>Mercury</title>
</head>
<body>
Mercury
<form
hx-get="/v1/mercury-index"
hx-target="#index-results">
@ <input
id="search-index"
name="space"
type="text"
placeholder="Search...">
<button type="submit">Search</button>
</form>
<pre id="index-results"></pre>
<form
hx-get="/v1/mercury-config"
hx-target="#config-results">
@ <input
id="space-config"
name="space"
type="text"
placeholder="Space...">
<button type="submit">Load</button>
</form>
<pre id="config-results"></pre>
<form
hx-post="/v1/mercury-config"
hx-target="#space-saved">
<textarea name="content"></textarea>
<button type="submit">Save</button>
</form>
<pre id="space-saved"></pre>
</body>
</html>