-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (67 loc) · 2.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap"
rel="stylesheet"
/>
</head>
<body>
<main>
<div class="container">
<div class="form-container">
<div class="header">
<img src="logo.PNG" alt="logo" />
<h2>Sign in</h2>
<p>Use your Google Account</p>
</div>
<form
id="email-form"
onsubmit="return emailCheck()"
action="./pass.html"
>
<div class="form-first-line">
<div class="input-group">
<input type="email" id="email" class="input-area" required />
<label for="email" class="label">Email</label>
</div>
</div>
<div class="warning" id="warningMsg" style="display: none;">
<img src="./warning-icon.PNG" class="warning-icon" />
<span class="warning-text"> Enter the correct Admin email </span>
</div>
<p class="signin-text">Forgot email?</p>
<p class="username-suggestion-text">
Not your computer? Use Guest mode to sign in privately.
</p>
<p class="signin-text">Learn more</p>
<br />
<p class="signin-text">Create Account</p>
<input type="submit" value="Next" class="btn" />
</form>
</div>
</div>
</main>
<script>
const adminEmail = "[email protected]",
warningMsg = document.getElementById("warningMsg"),
emailForm = document.getElementById("email-form");
function emailCheck() {
let inputEmail = document.getElementById("email").value;
if (inputEmail == adminEmail) {
return true;
} else {
warningMsg.style.display = "block";
document.querySelector(".label").style.display = "none";
document.getElementById("email").style.borderColor = "red";
return false;
}
}
</script>
</body>
</html>