-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
39 lines (35 loc) · 1.43 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
<!-- Ivan Cotacte -->
<!-- https://github.com/ivancotacte -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GWA Calculator</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" />
<title>GWA Calculator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container" id="container">
<h1>GWA Calculator</h1>
<div id="inputFields">
<div class="inputField">
<input type="text" class="subjectInput" placeholder="Subject">
<input type="number" class="unitsInput" pattern="\d*" placeholder="Units">
<input type="number" class="gradeInput" pattern="\d*\.?\d*" placeholder="Grade">
</div>
</div>
<div class="button-container">
<button onclick="addInputField()">Add</button>
<button id="resetButton" onclick="resetFields()">Reset</button>
</div>
<button onclick="calculateGWA()">Calculate GWA</button>
<p>GWA: <span id="resultLabel">0.00</span></p>
</div>
<script src="script.js"></script>
</body>
</html>