Messing around with blog editor
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user