Libraryless. Click here for Pure Java version (2188L/14K).
1 | // first element of params can be the value |
2 | static S hpasswordfield(S name, O... params) { |
3 | O value = ""; |
4 | if (odd(l(params))) { |
5 | value = params[0]; |
6 | params = dropFirst(params); |
7 | } |
8 | params = html_massageAutofocusParam(params); |
9 | ret tag("input", "", |
10 | concatArrays(new O[] {"type", "password", "name", name, "value", value}, params)); |
11 | } |
12 | |
13 | static S hpasswordfield(S name) { |
14 | ret hpasswordfield(name, ""); |
15 | } |
Began life as a copy of #1003087
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1021829 |
Snippet name: | hpasswordfield - make HTML password input field |
Eternal ID of this version: | #1021829/4 |
Text MD5: | a99775aa26fac85dc5b0e3ed38c976b9 |
Transpilation MD5: | 5afeda098ad198104bbd65f727e168c2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-29 00:14:59 |
Source code size: | 432 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 322 / 417 |
Version history: | 3 change(s) |
Referenced in: | [show references] |