2018-11-23 23:46:40 +00:00
|
|
|
const createPassField = (data) => {
|
|
|
|
let passField = document.createElement("INPUT");
|
|
|
|
let submitBttn = document.createElement("BUTTON");
|
2018-07-29 03:55:02 +00:00
|
|
|
passField.id = "PASSWD";
|
|
|
|
passField.type = "password";
|
|
|
|
passField.placeholder = "Password...";
|
|
|
|
submitBttn.innerHTML = "Submit";
|
2018-11-23 23:46:40 +00:00
|
|
|
insertArea.innerHTML = "";
|
2018-07-29 03:55:02 +00:00
|
|
|
|
|
|
|
passField.onkeyup = (eve) => {
|
|
|
|
if (eve.key == "Enter") {
|
|
|
|
getDir("./");
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
submitBttn.onclick = () => {
|
|
|
|
getDir("./");
|
|
|
|
};
|
|
|
|
|
|
|
|
insertArea.appendChild(passField);
|
|
|
|
insertArea.appendChild(submitBttn);
|
|
|
|
}
|