-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
43 lines (41 loc) · 958 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Login Form</title>
<link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body>
<div class="login1">
<div class="login-rect">
<h1>Login</h1>
<form id="form">
<label for="email">Email</label>
<input type="email" id="email" required>
<label for="password">Password</label>
<input type="password" id="password" required>
<a href="">
<input type="submit" value="Login" onclick="auth()">
</a>
</form>
</div>
</div>
<script>
function auth()
{
var email = document.getElementById("email").value;
var password = document.getElementById("password").value;
if(email=="[email protected]" && password=="admin123")
{
window.location.assign("drawpad.html");
alert("Login Successfully");
}
else
{
alert("Invalid Information");
return;
}
}
</script>
</body>
</html>