feat: support adjusting pop time
This commit is contained in:
parent
54d18f4968
commit
5914b85fc6
5 changed files with 37 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue