-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
66 lines (61 loc) · 2.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> CGPA Calculator </title>
<!-- Link Styles Section -->
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="wrapper">
<img class="content-img" src="images/logo.png" alt="Datasoft_tech Logo..">
<h1>CGPA Calculator</h1>
<div class="form-row">
<div class="col">
<input id="course-code" class="form-control" type="text" placeholder="Course Code">
</div>
<div class="col">
<input id="unit-load" class="form-control" type="number" placeholder="Unit Load" min="1" max="10">
</div>
<div class="col">
<select id="grade" class="form-control">
<option value="">Grade</option>
<option value="5">A</option>
<option value="4">B</option>
<option value="3">C</option>
<option value="2">D</option>
<option value="1">E</option>
<option value="0">F</option>
</select>
</div>
<div class="col">
<input id="add" class="btn btn-primary" type="button" value="Add">
</div>
</div>
<table id="table" class="table table-bordered display-none">
<thead>
<tr>
<th>Course Code</th>
<th>Unit Load</th>
<th>Grade</th>
</tr>
</thead>
<tbody id="tbody">
</tbody>
<tfoot id="tfoot">
</tfoot>
</table>
<div class="row">
<div class="col">
<input id="calc-gp" class="btn btn-success display-none" type="button" value="Calc CGP">
</div>
<div class="col">
<input id="clear" class="btn btn-warning display-none" type="button" value="Clear">
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>