Masking Password After A Delay – YouShallPass

Category: Form , Javascript | January 18, 2018
Author: source2git
Views Total: 1,317
Official Page: Go to website
Last Update: January 18, 2018
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));

You Might Be Interested In:

Leave a Reply