Messing around with blog editor

This commit is contained in:
Caleb Gardner
2024-11-09 06:44:10 -06:00
parent 94633293f5
commit 6896266055
4 changed files with 59 additions and 15 deletions
View File
+14
View File
@@ -0,0 +1,14 @@
<script src="https://unpkg.com/htmx-ext-json-enc@2.0.1/json-enc.js"></script>
<script>
document.addEventListener("htmx:beforeOnLoad", function (e) {
console.log(e);
e.preventDefault();
});
</script>
<form id="loginForm" hx-post="https://api.darkstorm.tech/user/login">
<label for="username">Username:</label>
<input name="username" id="usernameInput"></input>
<label for="password">Password:</label>
<input name="password" type="password" id="passwordInput"></input>
<button id="loginButton" type="submit">Login</button>
</form>