More stuff for login and editor

This commit is contained in:
Caleb Gardner
2024-11-09 11:32:16 -06:00
parent 6896266055
commit 18aa193fe7
7 changed files with 51 additions and 15 deletions
+1
View File
@@ -0,0 +1 @@
<p>THIS IS A POGGIES EDITOR. SAY WOW!</p>
+3 -8
View File
@@ -1,14 +1,9 @@
<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">
<div id="invisiblePusher" hx-push-url="/editor"></div>
<form id="loginForm" onsubmit="login(event)">
<label for="username">Username:</label>
<input name="username" id="usernameInput"></input>
<label for="password">Password:</label>
<input name="password" type="password" id="passwordInput"></input>
<p id="formResult"></p>
<button id="loginButton" type="submit">Login</button>
</form>