-
Notifications
You must be signed in to change notification settings - Fork 1
/
ResultCheckingSystem.html
129 lines (125 loc) · 3.35 KB
/
ResultCheckingSystem.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!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>Check Result</title>
<!-- Welcome to Sarfaraz's Coding Club -->
<style>
*{
margin: 0px;
padding: 0px;
}
.container{
width: 800px;
height: 300px;
margin: auto;
margin-top: 200px;
padding: 15px;
border: none;
border-radius: 10px;
box-shadow: 0px 0px 10px 2x gray;
background-color: black;
}
.container h3{
font-size: 25px;
color: white;
font-weight: bold;
text-transform: uppercase;
font-family: Verdana;
text-align: center;
margin-top: 10px;
}
.container p{
font-size: 13px;
color:aliceblue;
text-transform: capitalize;
font-family: verdana;
margin-top: -3px;
text-align: center;
}
.container input{
width: 90%;
height: 20px;
padding: 10px;
margin-top: 20px;
background-color: azure;
color: black;
font-weight: bold;
font-size: 18px;
margin-left: 15px;
border: none;
border-radius: 50px;
}
.container input::placeholder{
font-weight: 300;
}
.container button{
width: 40px;
height: 40px;
border: none;
border-radius: 100px;
background-color: white;
color: green;
font-size: 20px;
font-weight: bold;
}
.container button:hover{
color: white;
background-color: black;
border: 3px solid green;
}
.resultcontainer{
margin-top: 20px;
color: white;
font-size: 18px;
text-align: center;
font-family: verdana;
}
</style>
</head>
<body>
<div class="container">
<h3>Check Result Now</h3>
<p>Enter your name to get result</p>
<input type="text" id="sname" placeholder="Enter your name...">
<button onclick="resultshow()">✔</button>
<div class="resultcontainer">
</div>
</div>
</body>
<script>
function resultshow() {
var students = {
SARFARAZ: {
Bio: "98",
Physics: "99",
Chemistry: "78"
},
RIZWAN: {
Bio: "70",
Physics: "89",
Chemistry: "64"
},
HAIDER: {
Bio: "100",
Physics: "68",
Chemistry: "78"
}
};
var sname = document.getElementById("sname").value;
var input = sname.toUpperCase();
var show = students[input];
var showresult = document.getElementsByClassName("resultcontainer")[0];
if (show == undefined) {
showresult.innerHTML = "No Record Found!";
} else {
showresult.innerHTML = "Your Marks in Bio is " + show.Bio + "<br>";
showresult.innerHTML += "Your Marks in Physics is " + show.Physics + "<br>";
showresult.innerHTML += "Your Marks in Chemistry is " + show.Chemistry + "<br>";
}
}
</script>
</html>
<!-- Thanks for watching video Subscribe like and Share! -->