-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (46 loc) · 1.84 KB
/
index.html
File metadata and controls
46 lines (46 loc) · 1.84 KB
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
<title>Result SSPS</title>
<body>
<div class="rbox">
<img src="logo.jpg" alt="logo ss" width="015%">
<h1>Result - Half Yearly Examination</h1>
<p>Class 8th</p>
<br>
<label for="name">Name: </label>
<input type="text" name="name" id="name" required><br>
<label for="roll">Roll No.: </label>
<input type="number" name="roll" id="roll" required><br>
<button onclick="result()">Submit</button>
<br>
<br>
<div id="output"><b></b></div>
<footer>
<p>© S.S. Public School <br> +91 9997041517 | sspublicschool@gmail.com</p>
</footer>
</div>
</body>
<style>
body{background-color: aliceblue; font-family: sans-serif; position: absolute; top: 20%; left: 20%;}
input,label{margin: 10px;}
input{padding: 5px; border-radius: 10px; border: 1px solid black;}
.rbox{background-color: white; padding: 20px; border-radius: 10px; box-shadow: 5px 5px 5px gray;}
button{ padding: 10px; border-radius: 10px; border: 2px solid black; font-family: sans-serif;}
button:hover{ background-color: black; color: white;}
</style>
<script>
function result(){
x= document.getElementById("name").value
y= document.getElementById("roll").value
if(x=="MANAV JAISWAL" && y==111000){
document.location = "https://muditvij.github.io/resultssps/result_manav.html"
}
else if(x=="SHANTANU SHAH" && y==111002){
document.location = "https://muditvij.github.io/resultssps/result_shantanu.html"
}
else if(x=="AYUSH SHARMA" && y==111001){
document.location = "https://muditvij.github.io/resultssps/result_ayush.html"
}
else{
document.getElementById("output").innerHTML = "Enter valid credentials..."
}
}
</script>