From 7abeb4a35a0105b94e599de9970404c98790b4d9 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 24 Jul 2022 23:00:59 -0400 Subject: Clean up game element --- scripts/gui/input.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/gui/input.js') 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"); -- cgit v1.2.3