added medium text boxes

This commit is contained in:
dogeystamp 2023-01-03 15:57:35 -05:00
parent c3653a45b6
commit 5c4f5c0a90
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 13 additions and 2 deletions

View File

@ -100,6 +100,13 @@ class Form extends InterfaceElement {
return this.appendElement(new FormElement(params));
}
createMediumTextBox(params) {
params.tag = document.createElement("textarea");
params.tag.classList.add("mediumbox")
dataTypeSupports(params, ["plaintext", "b64", "json-b64"]);
return this.appendElement(new FormElement(params));
}
createPasswordInput(params) {
params.tag = document.createElement("input");
params.tag.setAttribute("type", "password");

View File

@ -31,10 +31,14 @@ input {
}
input:not([type]), input[type=password] {
width: 20em;
font-family: monospace;
}
.mediumbox {
width: 20em;
height: 5em;
}
label, input, button, textarea {
display: block;
margin-top: 1em;
@ -56,7 +60,7 @@ input:focus, textarea:focus {
}
textarea:disabled, input:disabled {
opacity: 40%;
background: #ffffff33;
}
.checkbox-container {