2018-08-19 18:51:20 +00:00
|
|
|
function createPassField(data) {
|
2018-07-29 03:55:02 +00:00
|
|
|
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);
|
|
|
|
}
|