-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsample_2.html
More file actions
24 lines (21 loc) · 1.02 KB
/
sample_2.html
File metadata and controls
24 lines (21 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
password: <input type="password" name="pw1" id="pw1" /><br />
confirm: <input type="password" name="pw2" id="pw2" /><br />
<input type="button" id="btn_genpw" value="generate password" /> <input type="text" id="genpw" />
<input type="button" id="btn_copy" value="copy" /><br />
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.0.min.js" /></script>
<script type="text/javascript" src="//crypto-js.googlecode.com/svn/tags/3.1.2/build/components/core-min.js" /></script>
<script type="text/javascript" src="//crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/sha256.js" /></script>
<script type="text/javascript" src="password_generator_server_random.php" /></script>
<script type="text/javascript" src="jquery.generatepassword.js" /></script>
<script type="text/javascript">
$('#btn_genpw').generatePassword({
output : ['#genpw'],
pwchars : '0-9A-Za-z',
pwlen : 16
});
$('#btn_copy').click( function() {
var pw = $('#genpw').val();
$('#pw1').val( pw );
$('#pw2').val( pw );
});
</script>