feat: support adjusting pop time

This commit is contained in:
insects 2025-03-12 13:08:05 +01:00
parent 54d18f4968
commit 5914b85fc6
5 changed files with 37 additions and 0 deletions

View file

@ -19,6 +19,12 @@ function checkPwd() {
btn.setAttribute("hx-post", `${oldUrl}&pwd=${pwd}`);
});
const forms = document.querySelectorAll(".action-form");
forms.forEach(form => {
const oldUrl = form.getAttribute("action");
form.setAttribute("action", `${oldUrl}&pwd=${pwd}`);
});
const pwd_el = document.getElementById("password");
pwd_el.innerHTML = pwd;
}