blob: 3d783c63e07b2bdb67feac97d1f133d8aed91b64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { e } from "./helper.ts"
export let username: string | undefined = undefined;
export let password: string | undefined = undefined;
export function pw_modal() {
const inp_name = e("input", {type: "text", placeholder: "Username"})
const inp_pw = e("input", {type: "password", placeholder: "Password"})
const login_btn = e("button", {
onclick: () => {
username = inp_name.value
password = inp_pw.value
}
}, "Login")
return e("dialog", {},
e("form", {method: "dialog"},
inp_name,
inp_pw,
login_btn,
)
)
}
|