-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (97 loc) · 3.42 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>AAGAC</title>
<style>
body {
font-family: Verdana;
color: #141414;
background-color: #f0f0f0;
margin: auto auto auto auto;
width: 80%;
}
div {
padding: 15px;
text-align: center;
align-items: center;
border: 1px solid #f0f0f0;
width: 100%;
margin: auto auto auto auto;
min-height: 200px;
}
.content {
background-color: #55f5f5;
}
</style>
</head>
<body>
<div>
<img src="questionpaper_files/logo.png">
<h3>UG/PG - April/May 2023 Examinations</h3>
<h4>Enter your Registration Number And Date Of Birth</h4>
</div>
<div align="center" class="content">
<form name="frm" onsubmit="submitForm(event)">
<br>
<b>Registration Number :</b> <input type="text" name="regNum" id="regNum" maxlength="20" value=""
required="">
<br>
<br>
<b>Date Of Birth :</b> <input type="text" name="dob" id="dob" maxlength="20" value="" required="">
<br>
<br>
<i>You should enter your D.O.B in DD-MM-YYYY format</i>
<br>
<br>
<input type="submit" name="submit" value="Submit">
</form>
</div>
<br>
<br>
<br>
<hr>
<center>
<iframe width="892" height="502"
src="https://www.youtube.com/embed/jAM7e8o3OrY"
title="Thiruvalluvar University Admission2023-24 (Tamil Version)" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen></iframe>
</center>
<br>
<center><b>The Guide to login sample</b></center>
<br>
<hr>
<center>
<div>
<h3>Arignar Anna Government Arts & Science College</h3>
<h5>Affiliated to</h5>
<h3>Thiruvalluvar University Vellore</h3>
</div>
</center>
<div style="text-align:center;padding:10px;margin-top:100px;">
<h5>Copyright tvu.edu.in</h5>
</div>
<script>
function submitForm(event) {
event.preventDefault();
// In a real scenario, you would send a request to the server for authentication.
// For simplicity, we'll use hardcoded values here.
const validCredentials = [
{ regNum: "20120U18030", dob: "15-11-2003" },
{ regNum: "20120U18044", dob: "13-04-2003" },
// Add more valid credentials as needed
];
const regNumInput = document.getElementById("regNum").value;
const dobInput = document.getElementById("dob").value;
const isValid = validCredentials.some(cred => cred.regNum === regNumInput && cred.dob === dobInput);
if (isValid) {
alert("Login successful! Displaying exam results..."); // Replace with your logic to display results.
window.location.href = `students_result.html?regNum=${encodeURIComponent(regNumInput)}&dob=${encodeURIComponent(dobInput)}`;
} else {
alert("Invalid username or password. Please try again.");
}
}
</script>
</body>
</html>