-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
41 lines (38 loc) · 1.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>loginPage</title>
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<link rel="stylesheet" href="styles/styleLoginPage.css">
</head>
<body background="imagesUsed/bgLogin.jpeg">
<div class="loginRightDiv">
<h1><b>Hello SSTCian!</b></h1>
<h2>Welcome back, kindly fill in the details to login.</h2>
<div id="loginDetails">
<p class="box"><span><img id="username_logo" src="styles/imagesUsed/username.png" alt="" srcset=""></span><span id="asterick_username">*</span>
<input type="text" name="" class="detailBox" id="usernameBox" placeholder="Username - AAAA"></p>
<p class="box"><span><img id="password_logo" src="styles/imagesUsed/password.png" alt="" srcset=""></span><span id="asterick_password">*</span>
<input type="password" name="" class="detailBox" id="passwordBox" placeholder="Password - 3b1i"></p>
<select name="" class="detailBox" id="sessionBox">
<option value="" selected>Jul 2022 (New Session)</option>
<option value="">Jun 2022 (Old Session)</option>
</select>
<p><input type="submit" class="detailBox" id="loginButton" value="Login in"></p>
</div>
</div>
<script type="text/javascript">
document.getElementById("loginButton").onclick = function() {
if((document.getElementById("usernameBox").value=="AAAA") && document.getElementById("passwordBox").value=="3b1i") {
location.href = "assets/dashboardWithNav.html";
}
else {
alert("Wrong Password, Please try again!");
}
}
</script>
</body>
</html>