-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTML_Basics.html
171 lines (168 loc) · 6.12 KB
/
HTML_Basics.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<html>
<head>
<title>Naga Sai Rohith Devarasetty</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<style>
table, th, td {
border: 2px solid black;
border-collapse: collapse;
}
h3 {
color: black;
}
a[target^=_]{
text-decoration: none;
}
li.hidden{
display: none;
}
span.iron{
position:fixed;
bottom: 0;
right: 0;
width: 250px;
background-color: antiquewhite;
padding: 10px;
text-align: center;
opacity: 0.8;
border: 3px solid white;
outline: cornflowerblue solid 5px;
}
img{
float: left;
}
.right{
text-align: right;
}
.left{
text-align: left;
}
th{
background-color: grey;
}
tr:nth-child(even) {
background-color: lightgray;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand bg-dark navbar-dark">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="HTML_Basics.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="form.html">Register</a>
</li>
<li class="nav-item">
<a class="nav-link" href="details.html">Personal Details</a>
</li>
</ul>
</nav>
<div class="jumbotron jumbotron-fluid">
<div class="container text-center">
<img src="Tony Stark.jpg" alt="Tony" height="100" width="70">
<h1>Naga Sai Rohith Devarasetty</h1>
</div>
</div>
<div class="container-fluid">
<div class="card-deck">
<div class="card bg-light">
<div class="card-body">
<h4 class="card-title">College </h4>
<div class="card-text">Deemed to be University</div>
</div>
</div>
<div class="card bg-light">
<div class="card-body">
<h4 class="card-title">Course</h4>
<div class="card-text"> Bachellors of Technology</div>
</div>
</div>
<div class="card bg-light">
<div class="card-body">
<h4 class="card-title">Stream </h4>
<a href="courses.html" target="_blank" class="card-link">Computer Science Engineering</a></li>
</div>
</div>
<li class="hidden"><h3>About :</h3> Iam Iron Man.</li>
</div>
<div class="marks">
<h3 style="margin-top: 30px;">Acadamic Marks</h3>
<table id="marks">
<tr>
<th>Subject Name</th>
<th>Obt. Marks</th>
<th>Max Marks</th>
</tr>
<tr>
<td class="left">MICROPROCESSORS & INTERFACING</td>
<td class="right">89</td>
<td class="right">100</td>
</tr>
<tr>
<td class="left">OPERATIONS RESEARCH FOR COMPUTER SCIENCE ENGINEERS</td>
<td class="right">94</td>
<td class="right">100</td>
</tr>
<tr>
<td class="left">ARTIFICIAL INTELLIGENCE</td>
<td class="right">86</td>
<td class="right">100</td>
</tr>
<tr>
<td class="left">DATA MINING TECHNIQUES</td>
<td class="right">74</td>
<td class="right">80</td>
</tr>
<tr>
<td class="left">COMPUTER NETWORKS</td>
<td class="right">77</td>
<td class="right">80</td>
</tr>
<tr>
<td class="left">DATA MINING TECHNIQUES LAB COMPONENT</td>
<td class="right">19</td>
<td class="right">20</td>
</tr>
<tr>
<td class="left">COMPUTER NETWORKS LAB COMPONENT</td>
<td class="right">20</td>
<td class="right">20</td>
</tr>
<tr>
<td class="left">STATISTICS USING PYTHON</td>
<td class="right">94</td>
<td class="right">100</td>
</tr>
<tr>
<td class="left">Total</td>
<td class="right"><span id="total"></span></td>
</tr>
<tr>
<td class="left">Average</td>
<td class="right"><span id="avg"></span></td>
</tr>
</table><br>
<button type="button" onclick="total()" class="btn btn-secondary btn-sm" style="margin-left: 3px;">Total</button>
<span id="iron">Iam Iron Man</span>
</div>
<script>
function total(){
var table = document.getElementById("marks"), sumVal = 0;
for(var i = 1; i < table.rows.length-3; i++)
{
sumVal = sumVal + parseInt(table.rows[i].cells[1].innerHTML);
}
document.getElementById("total").innerHTML = sumVal;
var avg=sumVal/table.rows.length-3;
document.getElementById("avg").innerHTML=avg;
}
</script>
</body>
</html>