chore: improved handler and improved login

This commit is contained in:
2023-09-18 13:50:03 +01:00
parent 1fd025e6d6
commit b22d64a568
7 changed files with 270 additions and 50 deletions

10
views/js/main.js Normal file
View File

@@ -0,0 +1,10 @@
function load() {
for (const elm of document.querySelectorAll("form > button")) {
elm.addEventListener('click', (e) => {
e.target.parentElement.classList.add("submitted");
});
}
}
window.onload = load;
htmx.on('htmx:afterSwap', load);