-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
277 lines (253 loc) · 12.3 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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./css/main.css">
<link rel="stylesheet" href="./css/mediaQuery.css">
<link rel="shortcut icon" href="./images/Logo_color.png" type="image/x-icon">
<title>GCal</title>
</head>
<body>
<div id="overlay"></div>
<header>
<nav>
<div id="menu-icon">
<button class="menu-icon"><img src="./images/menu.svg" alt="open menu"></button>
</div>
</nav>
<div id="gpa-display">
<input type="hidden" id="gpaId">
<input type="hidden" id="gpaMode" value="university">
<p><img src="./images/Logo.svg" width="50" height="50"></p>
<h1>GCal</h1>
</div>
<center><span id="notify"></span></center>
</header>
<button id="add-new-row">+</button>
<main>
<!-- MODE CHOOSER POPUP -->
<dialog id="mode-popup">
<button class="close-pop"><img class="close" src="./images/cancel_color.svg" alt="close mode popup"></button>
<form>
<h5>Calculate GP for</h5>
<ul>
<li>
<label for="uni" class="container">
<input type="radio" id="uni" name="mode" value="university">University
<span class="checkmark"></span>
</label>
</li>
<li>
<label for="poly" class="container">
<input type="radio" id="poly" name="mode" value="polytechnic">Polytechnic
<span class="checkmark"></span>
</label>
</li><br>
</ul>
<button type="submit" class="ip_btn" id="proceed-btn">Proceed</button>
</form>
</dialog>
<!-- SAVE POPUP -->
<dialog id="save-popup">
<button class="close-pop"><img class="close" src="./images/cancel_color.svg" alt="close mode popup"></button>
<form>
<div id="input-group">
<img src="./images/fountain-pen-close-up.svg" alt="Edit GP name">
<input type="text" placeholder=" Edit GP name" id="gpName" required>
</div>
<p>Saved GPAs will be deleted if you clear app cache</p>
<input type="submit" class="ip_btn" id="save-btn" value="Save">
</form>
</dialog>
<!-- UPDATE POPUP -->
<dialog id="update-popup">
<button class="close-pop"><img src="./images/cancel_color.svg" alt="close mode popup"></button>
<form>
<div id="input-group">
<img src="./images/fountain-pen-close-up.svg" alt="Edit GP name">
<input type="text" placeholder="Edit GP name" id="gpEditName" required>
</div>
<p>Saved GPAs will be deleted if you clear app cache</p>
<input type="submit" class="ip_btn" id="update-btn" value="Update">
</form>
</dialog>
<!-- OFF CANVAS SECTION -->
<section id="off-canvas">
<button id="close-menu" class="menu-icon"><img class="close" src="./images/cancel.svg" alt="close-menu" width="28" height="28"></button>
<div id="logo-part">
<img src="./images/Logo.svg" alt="">
</div>
<div id="menu-list-container">
<ul>
<li id="showSavedGpBtn"><button><img src="./images/Group.svg" alt="my GPAs"><span class="span"> My GPAs</span></button></li>
<li id="showCalcArea"><button><img src="./images/calculator.svg" width="25" height="25" alt="my GPAs"><span class="span"> Calculate GP</span></button></li>
<li id="about_btn"><button><img src="./images/question.svg" alt="about GCal"><span class="span"> About GCAL</span></button></li>
<li id="not-available"><button><img src="./images/download.svg" alt="download GCal"><span> Download GCAL<sub>Pro</sub></span></button></li>
</ul>
</div>
<div id="off-canvas-footer"></div>
</section>
<!-- FRONT PAGE SECTION -->
<section id="no-gp-yet">
<div>
<img src="./images/undraw_no_data_qbuo.svg" alt="no gp yet">
<p id="frontP">You've not calculated any GP yet</p>
<button id="showCalcAreaBtn">Calculate my GPA</button>
</div>
<div class="addField-container">
</div>
</section>
<!-- INPUT AND CALCULATE GP UNI AREA-->
<section id="calcAreaUni" data-shown="no">
<ul id="gpCalcUl" name="">
<li>
<input type="text" placeholder="Course Code" class="courseCode">
<input type="number" min="0" placeholder="Credit Unit" class="creditUnit">
<select name="grade" class="grade">
<option value="-1">Grade</option>
<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>
<button>remove</button>
</li>
<li>
<input type="text" placeholder="Course Code" class="courseCode">
<input type="number" min="0" placeholder="Credit Unit" class="creditUnit">
<select name="grade" class="grade">
<option value="-1">Grade</option>
<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>
<button>remove</button>
</li>
<li>
<input type="text" placeholder="Course Code" class="courseCode">
<input type="number" min="0" placeholder="Credit Unit" class="creditUnit">
<select name="grade" class="grade">
<option value="-1">Grade</option>
<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>
<button>remove</button>
</li>
</ul>
<center><button class="saveGpBtn">Save my GPA</button></center>
</section>
<!-- INPUT AND CALCULATE GP POLY AREA-->
<section id="calcAreaPoly" data-shown="no">
<ul id="gpCalcUlPoly">
<li>
<input type="text" placeholder="Course Code" class="courseCode">
<input type="number" min="0" placeholder="Credit Unit" class="creditUnit">
<select name="grade" class="grade">
<option value="-1">Grade</option>
<option value="A">A</option>
<option value="AB">AB</option>
<option value="B">B</option>
<option value="BC">BC</option>
<option value="C">C</option>
<option value="CD">CD</option>
<option value="D">D</option>
<option value="P">P</option>
<option value="F3">F3</option>
<option value="F2">F2</option>
<option value="F0">F0</option>
</select>
<button>remove</button>
</li>
<li>
<input type="text" placeholder="Course Code" class="courseCode">
<input type="number" min="0" placeholder="Credit Unit" class="creditUnit">
<select name="grade" class="grade">
<option value="-1">Grade</option>
<option value="A">A</option>
<option value="AB">AB</option>
<option value="B">B</option>
<option value="BC">BC</option>
<option value="C">C</option>
<option value="CD">CD</option>
<option value="D">D</option>
<option value="P">P</option>
<option value="F3">F3</option>
<option value="F2">F2</option>
<option value="F0">F0</option>
</select>
<button>remove</button>
</li>
<li>
<input type="text" placeholder="Course Code" class="courseCode">
<input type="number" min="0" placeholder="Credit Unit" class="creditUnit">
<select name="grade" class="grade">
<option value="-1">Grade</option>
<option value="A">A</option>
<option value="AB">AB</option>
<option value="B">B</option>
<option value="BC">BC</option>
<option value="C">C</option>
<option value="CD">CD</option>
<option value="D">D</option>
<option value="P">P</option>
<option value="F3">F3</option>
<option value="F2">F2</option>
<option value="F0">F0</option>
</select>
<button>remove</button>
</li>
</ul>
<center><button class="saveGpBtn">Save my GPA</button></center>
</section>
<!-- SHOW SAVED GPs -->
<section id="show-saved-gp">
<div id="search-container">
<img src="./images/Shape.svg" alt="Search">
<input type="text" placeholder="Search" id="search">
</div>
<div id="saved-gp">
<ul id="gpShowUl"></ul>
</div>
<div class="addField-container">
</div>
</section>
<!-- EDIT AND CALCULATE GP UNI AREA-->
<section id="editAreaUni" data-shown="no">
<ul id="gpEditUlUni"></ul>
<center><button class="updateGpBtn">Update my GPA</button></center>
</section>
<!-- EDIT AND CALCULATE GP POLY AREA-->
<section id="editAreaPoly" data-shown="no">
<ul id="gpEditUlPoly"></ul>
<center><button class="updateGpBtn">Update my GPA</button></center>
</section>
<!-- ABOUT SECTION -->
<section id="about">
<div id="abt_gcal">
<h5>GCal <span id="version">lite v1.0.0</span></h5>
<p>
An intuitive and simplistic grade point average calculator for students in different tertiary institutions.<br>
Redesigned from the ground up with a beautiful and user-friendly interface.<br><br>
GCALpro a more robust platform is in the pipeline.
</p><br>
<p><a href="https://fatherprada.com/blog/guide/how-to-calculate-gpa-and-cgpa/" target="_">How to match exam score to grades for University</a></p>
<p><a href="https://students.com.ng/calculation-of-cgpa-in-nigeria-polytechnics/" target="_">How to match exam scores to grades for Polytechnic</a></p>
</div>
<a id="abt_swisel" href="https://swisel.co">
©Swisel Enterprise 2019
</a>
</section>
</main>
<script type="text/javascript" src="js/bundle.js"></script></body>
</html>