-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (122 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!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="stylesheet" href="style.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
body {
font-family: 'Roboto', sans-serif;
background-color: #f0f8ff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
color: #333;
}
h1 {
color: #0066cc;
font-size: 2.5em;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
table {
margin: 20px 0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
border-radius: 10px;
background-color: #ffffff;
}
td {
padding: 10px;
}
input[type="number"], input[type="checkbox"] + label {
width: 235px;
padding: 10px;
margin: 5px 0;
border: 1px solid #ccc;
border-radius: 5px;
transition: all 0.3s ease;
font-size: 1em;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
input[type="checkbox"] {
margin-left: 0;
}
input[type="checkbox"] + label {
display: inline-block;
margin-left: 10px;
cursor: pointer;
transition: color 0.3s ease;
font-size: 1em;
}
input[type="number"]:focus {
border-color: #0066cc;
box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
outline: none;
}
input[type="checkbox"]:checked + label {
color: #0066cc;
}
.passgen {
background-color: #4CAF50;
color: white;
border: none;
border-radius: 10px;
height: 50px;
width: 220px;
cursor: pointer;
font-size: 1.2em;
transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
margin-top: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.passgen:hover {
background-color: #45a049;
transform: scale(1.05);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.passgen:active {
background-color: #3e8e41;
}
.form-container {
display: flex;
flex-direction: column;
align-items: center;
}
.checkbox-container {
margin: 10px 0;
}
</style>
</head>
<body>
<script src="pass.js"></script>
<div class="container">
<h1>Password Generator</h1>
<table>
<tr>
<td class="label">Length of Password:</td>
<td>
<input type="number" id="length" />
</td>
</tr>
</table>
<div class="checkbox-group">
<input type="checkbox" id="spch" checked>
<label for="spch">Include Special Characters</label>
<br>
<input type="checkbox" id="num" checked>
<label for="num">Include Numbers</label>
<br>
<input type="checkbox" id="alph" checked>
<label for="alph">Include Alphabets</label>
</div>
<button class="passgen" onclick="passGenerate()">Generate Password</button>
</div>
</body>
</html>