PassShark.js is a free and easy-to-implement password masking class developed using MooTools. Inspired and based on the excellent iPhone and iPod touch password dialogue.
window.addEvent('domready', function(){
new PassShark('sample_pass',{
interval: 200,
duration: 2000,
replacement: '%u25CF',
debug: false
});
});
#HTML
<head>
// 1_ Include MooTools-Core and MooTools-More* in your document head
<script type="text/javascript" charset="utf-8" src="Mootools-Core.js"></script>
<script type="text/javascript" charset="utf-8" src="Mootools-More.js"></script>
// 2_ Include the PassShark script in your document head
<script type="text/javascript" charset="utf-8" src="PassShark.js"></script>
</head>
<body>
[...]
<label for="sample_pass">Password</label> <!-- Label is optional but recommended -->
<input type="password" id="sample_pass" name="password" />
[...]
</body>
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus