-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.html
89 lines (69 loc) · 2.99 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Password Generator</title>
<link rel="icon" type="image" href="1.png">
<link rel="stylesheet" href="index.css">
</head>
<body>
<main>
<div class="container">
<section>
<h1>Generate a<br><span>random password</span></h1>
<h3 class="light-text">Never use an insecure password again.</h3>
</section>
<section>
<div class="slider">
<span>Length: </span>
<div class="range-wrap">
<div class="range-value" id="rangeV"></div>
<input id="range" type="range" min="4" max="12" value="8" step="1">
</div>
</div>
</section>
<section>
<div class="options">
<label for="passwordLowercase" class="toggler-wrapper " >
<input checked type="checkbox" id="passwordLowercase" name="passwordLowercase">
<div class="toggler-slider">
<div class="toggler-knob"></div></div><br><h4>Lowercase letters</h4>
</label>
<label for="passwordUppercase" class="toggler-wrapper " >
<input checked type="checkbox" id="passwordUppercase" name="passwordUppercase">
<div class="toggler-slider">
<div class="toggler-knob"></div></div><br><h4>Uppercase letters</h4>
</label>
<label for="passwordSymbols" class="toggler-wrapper ">
<input checked type="checkbox" id="passwordSymbols" name="passwordSymbols">
<div class="toggler-slider">
<div class="toggler-knob"></div></div><br><h4>Symbols</h4>
</label>
<label for="passwordNumbers" class="toggler-wrapper ">
<input checked type="checkbox" id="passwordNumbers" name="passwordNumbers">
<div class="toggler-slider">
<div class="toggler-knob"></div></div><br><h4>Numbers</h4>
</label>
</div>
</section>
<button class="btn">
<svg width="14" height="18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.3.046A1 1 0 0 1 9 1v5h4a1 1 0 0 1 .82 1.573l-7 10A1 1 0 0 1 5 17v-5H1a1 1 0 0 1-.82-1.573l7-10A1 1 0 0 1 8.3.047Z" fill="#fff"/>
</svg>
<span>Generate</span>
</button>
<section>
<div id = "password-div" class="randomPassword">
<input type="text" value="" id="myInput" onclick="copyToClipboard()" readonly>
<div id="copy-instruction" class="light-text">Click on password to copy!</div>
</div>
<p id="clipboard-toast" class="clipboardToast light-text copyToClipboard">Copied to clipboard</p>
</section>
</div>
<a class="viewOnGitHub" href="https://github.com/uday03meh/password-generator" target="_blank">View On GitHub</a>
</main>
<script src="index.js"></script>
</body>
</html>