-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (46 loc) · 1.69 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>visible mot de passe</title><link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar">
<span class="password-status">Mot de passe visible</span>
<ul class="nav-links">
<li><a href="https://www.cnil.fr/fr/comprendre-le-rgpd" target="_blank">RGPD</a></li>
<li><a href="https://www.anssi.fr" target="_blank">ANSSI</a></li>
<li><a href="https://www.cyber.gouv.fr" target="_blank">Cybermalveillance</a></li>
<li><a href="https://www.cert.ssi.gouv.fr" target="_blank">CERT-FR</a></li>
</ul>
</nav>
<form>
<div class="email-holder">
<label for="email">Email</label>
<input type="email" id="email" placeholder="Enter your email" required>
</div>
<div class="pass-holder">
<label for="pass">Password</label>
<input type="password" id="pass" placeholder="Enter your password" required>
</div>
<div>
<input type="checkbox" id="showPass" onclick="change()">
<label class="txt" for="showPass">Show Password</label>
</div>
<div>
<button type="submit">Submit</button>
</div>
</form>
<script>
function change(){
var pass = document.getElementById('pass');
if (pass.type == "password") {
pass.type= 'text';
}else{
pass.type= 'password';
}
}
</script>
</body>
</html>