16 lines
309 B
JavaScript
16 lines
309 B
JavaScript
window.onload = () => {
|
|
document.getElementById('username').focus();
|
|
}
|
|
|
|
function showPasswd() {
|
|
let x = document.getElementById("password");
|
|
if(x.type == "password"){
|
|
x.type = "text";
|
|
y.type = "text";
|
|
} else {
|
|
x.type = "password";
|
|
y.type = "password";
|
|
}
|
|
}
|
|
|