23 lines
605 B
JavaScript
23 lines
605 B
JavaScript
function createPassField(data) {
|
|
insertArea.innerHTML = "";
|
|
var passField = document.createElement("INPUT");
|
|
var submitBttn = document.createElement("BUTTON");
|
|
passField.id = "PASSWD";
|
|
passField.type = "password";
|
|
passField.placeholder = "Password...";
|
|
submitBttn.innerHTML = "Submit";
|
|
|
|
passField.onkeyup = (eve) => {
|
|
if (eve.key == "Enter") {
|
|
getDir("./");
|
|
}
|
|
};
|
|
|
|
submitBttn.onclick = () => {
|
|
getDir("./");
|
|
};
|
|
|
|
insertArea.appendChild(passField);
|
|
insertArea.appendChild(submitBttn);
|
|
}
|