-
Notifications
You must be signed in to change notification settings - Fork 0
/
signIn.js
65 lines (50 loc) · 1.94 KB
/
signIn.js
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
<!DOCTYPE html>
<html>
<head>
<title>Sign Up Form</title>
<link rel="stylesheet" href="/styles.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<video autoplay muted loop>
<source src="video.mp4" type="video/mp4">
</video>
<div class="overlay">
<div class="headFromSignUp">
<h3>Your Course Mate</h3>
</div>
<div class="upper">
<div class="emailAddress">
<input type="text" id="email" placeholder="Enter your email">
</div>
<div class="password">
<input type="password" id="password" placeholder="Enter your password">
</div>
</div>
<div class="lowerPart">
<button onClick="login()" id="login"> Login </button>
<button id="createAccount"><a href="/SignUp ">Create Your Account</a></button>
</div>
<div class="forgetPasswordlower">
<button id="forgetPassword"><a href="#">Forget your password ?</a></button>
</div>
</div>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous">
</script>
<script>
function login()
{
let id= $('#email').val()
let password = $('#password').val()
if (id=='admin' && password=='admin'){
window.location.href="/adminContent"
}else{
window.location.href="/index"
}
}
</script>
</body>
</html>