Masking Password After A Delay – YouShallPass

Category: Form , Javascript | October 2, 2022
Author:source2git
Views Total:125 views
Official Page:Go to website
Last Update:October 2, 2022
License:MIT

Preview:

Masking Password After A Delay – YouShallPass

Description:

YouShallPass is a small JavaScript library which automatically masks your password strings after a certain delay as you seen on the iPhone.

How to use it:

Download and link to the main JavaScript ‘YouShallPass.js’:

<script src="YouShallPass.js"></script>

Initialize the library and specify the masking pattern and delay time.

var ysp = new YouShallPass("*", 800);

Enable the password mask functionality on your text field.

<input type="text" id="passwd">
document.querySelector("#passwd").addEventListener('input', ysp.keyboardInputHandle.bind(ysp));

See Also:

You Might Be Interested In:


Leave a Reply