-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (75 loc) · 3.07 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Link to Font Awesome CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Link to Toastify CSS -->
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
<!-- Custom styles -->
<link rel="stylesheet" href="src/styles/styles.css">
<title>Password Generator</title>
</head>
<body>
<div id="container">
<!-- Password generation illustration -->
<img src="src/images/illustration.svg" id="password_img" alt="">
<!-- Title -->
<h1 id="title">Generate Password</h1>
<!-- Password display container -->
<div id="password_container">
<span id="password"></span>
<!-- Copy button -->
<button id="copy">
<i class="fa-solid fa-copy"></i>
</button>
</div>
<!-- Password options -->
<div id="password_items">
<!-- Password length input -->
<div class="item">
<input id="size" name="size" type="number">
<label for="size">
Password Length
</label>
</div>
<!-- Uppercase letter checkbox -->
<div class="item">
<input type="checkbox" name="include_uppercase" id="include_uppercase">
<label for="include_uppercase">
Include Uppercase Letter
</label>
</div>
<!-- Lowercase letter checkbox -->
<div class="item">
<input type="checkbox" name="include_lowercase" id="include_lowercase">
<label for="include_lowercase">
Include Lowercase Letter
</label>
</div>
<!-- Number checkbox -->
<div class="item">
<input type="checkbox" name="include_number" id="include_number">
<label for="include_number">
Include Number
</label>
</div>
<!-- Special character checkbox -->
<div class="item">
<input type="checkbox" name="include_special_character" id="include_special_character">
<label for="include_special_character">
Include Special Character
</label>
</div>
<!-- Generate password button -->
<button id="generate">
Generate Password
</button>
</div>
</div>
<!-- Script tags for Toastify and custom script -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
<script src="src/javascript/script.js"></script>
</body>
</html>