La til epost knapp

This commit is contained in:
Trygve
2025-10-28 23:46:42 +01:00
parent 4cc7ff821c
commit fdddbbb0ef
8 changed files with 46 additions and 7 deletions

View File

@@ -24,7 +24,7 @@
</nav>
<h2>Sett dato og tid startskuddet gikk:</h2>
<form action="/api/config.php" method="POST">
<form action="/api/config.php" method="POST" hx-boost="true" hx-target="#updated" hx-swap="show:none">
<input style="display: none;" type="text" id="password" name="password" required>
<label>
Dato og tid
@@ -32,7 +32,7 @@
</label>
<button type="submit">Oppdater</button>
</form>
<div id="updated"></div>
</div>
<script>
function log_out(){
@@ -57,5 +57,6 @@
console.log(xmlHttpReq.response)
</script>
<script src="/lib/htmx.min.js"></script>
</body>
</html>