Skip to content

Commit

Permalink
added provisions for password field
Browse files Browse the repository at this point in the history
  • Loading branch information
DutchessNicole committed Apr 12, 2024
1 parent 301d6a1 commit 6d6c117
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,12 @@
sInput.setAttribute("maxlength", data[i].maxlen);
sInput.setAttribute("size", (data[i].maxlen > 20 ? 20 : data[i].maxlen));
}
else if (data[i].type == "p")
{
sInput.setAttribute("type", "password");
sInput.setAttribute("maxlength", data[i].maxlen);
sInput.setAttribute("size", (data[i].maxlen > 20 ? 20 : data[i].maxlen));
}
else if (data[i].type == "f")
{
sInput.setAttribute("type", "number");
Expand Down

0 comments on commit 6d6c117

Please sign in to comment.