diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-07-24 23:00:59 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-07-24 23:00:59 -0400 |
commit | 7abeb4a35a0105b94e599de9970404c98790b4d9 (patch) | |
tree | 0cbd81329df21fcdbc5a896a0711657fc60958a1 /scripts/gui/input.js | |
parent | 50a1c6f8432b541d84a1326ae8515589440a3804 (diff) |
Clean up game element
Diffstat (limited to 'scripts/gui/input.js')
-rw-r--r-- | scripts/gui/input.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/gui/input.js b/scripts/gui/input.js index 0e0c7ba..032d168 100644 --- a/scripts/gui/input.js +++ b/scripts/gui/input.js @@ -48,6 +48,14 @@ class MakeInput { return el; } + static passwordInput (value, placeholder) + { + let el = MakeInput.createInput("password"); + el.setAttribute("placeholder", placeholder); + el.value = value; + return el; + } + static numberInput (value) { let el = MakeInput.createInput("number"); |