-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdoc.html
83 lines (72 loc) · 2.94 KB
/
doc.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="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>log in</title>
<script type="text/javascript" src="/GGCat-IT-Projectjavascript/main.js"></script>
<link rel="stylesheet" href="/GGCat-IT-Projectcss/theam.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body id="bac">
<div id="head">
<h1 id="logo">Hello<span>Cinema.</span></h1>
<a class="active" href="/GGCat-IT-Projectlogin.html">log in</a>
<a href="/GGCat-IT-Project#">sign up</a>
<a href="/GGCat-IT-Project#">Home page</a>
<audio id="sou" autoplay muted loop src="/GGCat-IT-Projectmedia/a3tona.mp3" type="audio/mpeg"></audio>
</div>
<div id="L">
<h1>Log in</h1>
<form name="myform" action="index.html" method="post" target="_self" onsubmit=" validateForm()">
<label for="gmail">Gmail</label>
<input type="email" id="gmail" placeholder=" @gmail.com" required><br>
<label for="pass">Password</label>
<div>
<input name="fpass" type="password" id="pass" placeholder="Enter password" required>
<span class="show" id="showhide"> Display</span>
</div>
<input type="submit" value="Submit" id="sub">
</div>
</section>
<section id="footer">
<div class="social">
<a href="/GGCat-IT-Project#"><i class="fab fa-facebook-f"></i></a>
<a href="/GGCat-IT-Project#"><i class="fab fa-twitter"></i></a>
<a href="/GGCat-IT-Project#"><i class="fab fa-linkedin"></i></a>
<a href="/GGCat-IT-Project#"><i class="fab fa-tiktok"></i></a>
<a href="/GGCat-IT-Project#"><i class="fab fa-instagram"></i></a>
</div>
</section>
<div class="CRight">
<p>©Shimaa All Right Reserved</p>
</div>
</section>
</body>
</html>
<script>
const field_pass = document.getElementById('pass');
const field_show = document.getElementById('showhide');
function validateForm() {
let x = document.forms["myform"]["fpass"].value;
if (x.length >= 8 && x.length <= 16) {
}
else {
alert("Password must be minlength=8 maxlength=16");
}
}
function secret() {
if (field_pass.getAttribute("type") == "password") {
field_pass.type = "text";
field_show.textContent = "Hide";
field_show.style.color = "#3498db";
} else {
field_pass.type = "password";
field_show.textContent = "Display";
field_show.style.color = "#222"
}
}
field_show.addEventListener('click', secret);
</script>