Skip to content

Commit

Permalink
Add a password-group form element with a button to show/hide the pass…
Browse files Browse the repository at this point in the history
…word.
  • Loading branch information
tobiv committed Jan 26, 2021
1 parent 08bb5cc commit 5a941c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Beocreate2/beo-views/default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ <h1>Title</h1>
<p id="text-prompt">Text prompt.</p>
<form id="text-fields" action="javascript:;" onsubmit="beo.submitText();">
<input type="text" name="text-input" value="" id="text-input-plain" autocorrect="off" autocapitalize="off" placeholder="Placeholder">
<input type="password" name="password-input" id="text-input-password" placeholder="Password" value="" autocomplete="current-password">
<div id="password-group">
<input type="password" name="password-input" id="text-input-password" placeholder="Password" value="" autocomplete="current-password">
<div class="button symbol" id="text-input-password-reveal" onclick="beo.togglePasswordReveal();" style="-webkit-mask-image: url(common/symbols-black/eye.svg); mask-image: url(common/symbols-black/eye.svg);"></div>
</div>
<input type="submit" value="Submit" id="submit-text">
</form>
</div>
Expand Down

0 comments on commit 5a941c4

Please sign in to comment.