-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
260 lines (243 loc) · 8.86 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#5d6b9c" />
<title>CGPA Result Forecaster</title>
<!--FONT-->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap"
rel="stylesheet"
/>
<!-- FAVICON -->
<link
rel="shortcut icon"
href="./images/calculator-logo-72.png"
type="image/x-icon"
/>
<!--STYLESHEET-->
<link rel="stylesheet" href="./css/style.css" />
<!--MANIFEST-->
<link rel="manifest" href="manifest.json" />
<link rel="apple-touch-icon" href="images/calculator-logo.png" />
</head>
<body>
<noscript>JavaScript is required to use this page</noscript>
<main class="container">
<div class="bg"></div>
<div class="title">
<h1>CGPA Result Forecaster</h1>
<p>
Calculate your GPA and CGPA score then from your current score
forecast the average estimate score to end up with a 1st, 2nd
upper/lower class.
</p>
<button class="help">Need help?</button>
</div>
<div class="overall-output">
<div>
<div class="error" aria-label="hidden">
<p>Please fill all input field</p>
</div>
<section class="calc__main">
<div class="calc__main__heading">
<h2>
<span class="semester">1st</span> Semester -
<span class="level">1</span>00L
</h2>
<div>
<label for="numAdd">Enter Number of courses to be added:</label>
<input type="number" name="numAdd" class="numAdd" value="2" />
</div>
</div>
<div class="display">
<div class="display__heading">
<h3>Course Code</h3>
<h3>Credit Unit</h3>
<h3>Grade</h3>
</div>
<div class="display__output">
<div class="display__output__container">
<input
type="text"
name="courseCode"
class="courseCode"
placeholder="e.g. Course 1"
/>
<select class="creditUnit">
<option value="0">0</option>
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<select class="grade">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
<option value="E">E</option>
<option value="F">F</option>
</select>
</div>
<div class="display__output__container">
<input
type="text"
name="courseCode"
class="courseCode"
placeholder="e.g. Course 1"
/>
<select class="creditUnit">
<option value="0">0</option>
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<select class="grade">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
<option value="E">E</option>
<option value="F">F</option>
</select>
</div>
</div>
</div>
<div class="cal__btns">
<button class="add">Add</button>
<button class="calculate">Calculate</button>
<button class="undo">Undo</button>
</div>
</section>
<section class="calc__display">
<div>
<h3>Total Unit</h3>
<p class="totalUnit">0</p>
</div>
<div>
<h3>GPA</h3>
<p class="gpaScore">0</p>
</div>
<div>
<h3>CGPA</h3>
<p class="cgpaScore">0</p>
</div>
</section>
<section class="resultContinue result__continue">
<h4>Would you like to calculate for another level?</h4>
<div>
<button class="yesBtn">Yes</button>
<button class="noBtn">No - Forecast Score</button>
</div>
</section>
<section
class="displayResult display__result modalResult-bg"
></section>
<div class="modal-bg">
<div class="modal">
<h2>Please fill the form</h2>
<p id="formError"></p>
<form action="/" method="GET">
<div>
<label for="name">Name:</label>
<input
type="text"
name="name"
id="name"
placeholder="First name"
required
autocomplete="name"
/>
</div>
<div>
<label for="years">Years of Program:</label>
<input
type="number"
name="years"
id="years"
placeholder="4 years"
required
/>
</div>
<button type="submit" class="submitBtn">Submit</button>
</form>
</div>
</div>
<div id="modal">
<div class="guide-modal">
<button aria-label="close modal" class="cancelBtn">
×
</button>
<div class="modal__content">
<h2>How to use <span>CGPA Result Forecaster</span></h2>
<ul>
<li>
<b>☆</b> Add the number of columns you want (i.e. the
number of courses you want to calculate for) by clicking on
the <kbd>Enter</kbd> key or the <span>Add</span> button.
</li>
<li>
<b>☆</b> Enter the course code for your respective
courses.
</li>
<li>
<b>☆</b> Select the corresponding credit units and
grades score.
</li>
<li>
<b>☆</b> Click on <span>Calculate</span> to calculate
your GPA and CGPA. You should now see your GPA and CGPA
displayed below.
</li>
<li>
<b>☆</b>
If you wish to undo the current calculation, click on the
<span>Undo</span> button.
</li>
<li>
<b>☆</b> After calculation, a pop up will appear.
</li>
<li>
<b>☆</b> If you want to calculate your GPA/CGPA for
another semester, simply click on <span>Yes</span>, else
click on <span>No - Forecast Score</span> to display your
average score to end up with a 1st, 2nd upper/lower class.
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
<p>
Developed and Designed by
<a href="https://github.com/jomefavourite" target="_blank" noreferrer
>Jome Favourite</a
>
and
<a href="https://github.com/ivioje" target="_blank" noreferrer
>Eboreime Rhoda</a
>
</p>
</footer>
<script src="main.js"></script>
</body>
</html>