chore: improved handler and improved login
This commit is contained in:
10
views/js/main.js
Normal file
10
views/js/main.js
Normal 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);
|
||||
Reference in New Issue
Block a user