-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (46 loc) · 1.67 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
<!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="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;800&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="parent">
<div class="container">
<h1>Password Generator</h1>
<div class="result-div">
<p id="generated-pass"></p>
</div>
<button id="clipboard-btn">Copy to Clipboard</button>
<div class="slider-div">
<h2 id="header2">Password Length : <span id="length-val"></span></h2>
<input type="range" min="0" max="30" value="15" class="slider" id="length" oninput="document.getElementById('length').innerHTML = this.value">
<output id="output"></output>
</div>
<div class="user-setting">
<label>Include upper-case letters</label>
<input type="checkbox" id="uppercase" checked="checked"/>
</div>
<div class="user-setting">
<label>Include lower-case letters</label>
<input type="checkbox" id="lowercase" checked="checked"/>
</div>
<div class="user-setting">
<label>Include numbers</label>
<input type="checkbox" id="num" checked="checked"/>
</div>
<div class="user-setting">
<label>Include special characters</label>
<input type="checkbox" id="specials" checked="checked"/>
</div>
<button id="generate-pass">Generate Password</button>
</div>
</div>
</body>
<script src="script.js"></script>
</html>