-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.html
436 lines (390 loc) · 20.5 KB
/
home.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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<html>
<head>
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="css/navbar.css" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&display=swap" rel="stylesheet" />
<!-- Loading third party fonts -->
<link href="http://fonts.googleapis.com/css?family=Roboto:300,400,700|" rel="stylesheet" type="text/css">
<link href="fonts/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet" type="text/css">
</head>
<body style="background: rgb(131,58,180);" onload="getHomeInfo()">
<div class="overlay" id="overlay">
<div class="overlay__inner">
<div class="overlay__content"><span class="spinner"></span></div>
</div>
</div>
<div id="loading" class="overlay__inner" style="display: none;">
<div class="overlay__content"><span class="spinner"></span></div>
</div>
<div class="wrapper">
<header id="titlebar">
<div id="drag-region">
<div id="window-title">
</div>
<div id="window-controls">
<div class="winbutton" id="min-button">
<img class="icon"
srcset="icons/min-w-10.png 1x, icons/min-w-12.png 1.25x, icons/min-w-15.png 1.5x, icons/min-w-15.png 1.75x, icons/min-w-20.png 2x, icons/min-w-20.png 2.25x, icons/min-w-24.png 2.5x, icons/min-w-30.png 3x, icons/min-w-30.png 3.5x"
draggable="false" />
</div>
<div class="winbutton" id="max-button">
<img class="icon"
srcset="icons/max-w-10.png 1x, icons/max-w-12.png 1.25x, icons/max-w-15.png 1.5x, icons/max-w-15.png 1.75x, icons/max-w-20.png 2x, icons/max-w-20.png 2.25x, icons/max-w-24.png 2.5x, icons/max-w-30.png 3x, icons/max-w-30.png 3.5x"
draggable="false" />
</div>
<div class="winbutton" id="restore-button">
<img class="icon"
srcset="icons/restore-w-10.png 1x, icons/restore-w-12.png 1.25x, icons/restore-w-15.png 1.5x, icons/restore-w-15.png 1.75x, icons/restore-w-20.png 2x, icons/restore-w-20.png 2.25x, icons/restore-w-24.png 2.5x, icons/restore-w-30.png 3x, icons/restore-w-30.png 3.5x"
draggable="false" />
</div>
<div class="winbutton" id="close-button">
<img class="icon"
srcset="icons/close-w-10.png 1x, icons/close-w-12.png 1.25x, icons/close-w-15.png 1.5x, icons/close-w-15.png 1.75x, icons/close-w-20.png 2x, icons/close-w-20.png 2.25x, icons/close-w-24.png 2.5x, icons/close-w-30.png 3x, icons/close-w-30.png 3.5x"
draggable="false" />
</div>
</div>
</div>
</header>
<nav class="navbar" style="overflow: hidden;">
<ul class="navbar-nav">
<li class="logo">
<a href="#" class="nav-link">
<span id="class" style="text-align: center;" class="link-text logo-text">Welcome </span>
<svg aria-hidden="true" focusable="false" data-prefix="fad" data-icon="angle-double-right" role="img"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"
class="svg-inline--fa fa-angle-double-right fa-w-14 fa-5x">
<g class="fa-group">
<path fill="currentColor"
d="M224 273L88.37 409a23.78 23.78 0 0 1-33.8 0L32 386.36a23.94 23.94 0 0 1 0-33.89l96.13-96.37L32 159.73a23.94 23.94 0 0 1 0-33.89l22.44-22.79a23.78 23.78 0 0 1 33.8 0L223.88 239a23.94 23.94 0 0 1 .1 34z"
class="fa-secondary"></path>
<path fill="currentColor"
d="M415.89 273L280.34 409a23.77 23.77 0 0 1-33.79 0L224 386.26a23.94 23.94 0 0 1 0-33.89L320.11 256l-96-96.47a23.94 23.94 0 0 1 0-33.89l22.52-22.59a23.77 23.77 0 0 1 33.79 0L416 239a24 24 0 0 1-.11 34z"
class="fa-primary"></path>
</g>
</svg>
</a>
</li>
<li class="nav-item" >
<a href="#" class="nav-link">
<svg width="2em" height="2em" viewBox="0 0 16 16" class="bi bi-book-fill" fill="currentColor"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z" />
</svg>
<span class="link-text">Subjects</span>
<span class="caret-dropdown"></span>
</a>
<ul class="sub-nav">
<li ><a href='#settings'>English</a></li>
<li><a href='#settings'>Chemistry</a></li>
<li><a href='#settings'>Physics</a></li>
<li><a href='#settings'>Biology</a></li>
<li><a href='#settings'>Maths</a></li>
</ul>
</li>
<li class="nav-item">
<a href="#" class="nav-link">
<svg width="2em" height="2em" viewBox="0 0 16 16" class="bi bi-newspaper" fill="currentColor"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M0 2.5A1.5 1.5 0 0 1 1.5 1h11A1.5 1.5 0 0 1 14 2.5v10.528c0 .3-.05.654-.238.972h.738a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 1 1 0v9a1.5 1.5 0 0 1-1.5 1.5H1.497A1.497 1.497 0 0 1 0 13.5v-11zM12 14c.37 0 .654-.211.853-.441.092-.106.147-.279.147-.531V2.5a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0-.5.5v11c0 .278.223.5.497.5H12z" />
<path
d="M2 3h10v2H2V3zm0 3h4v3H2V6zm0 4h4v1H2v-1zm0 2h4v1H2v-1zm5-6h2v1H7V6zm3 0h2v1h-2V6zM7 8h2v1H7V8zm3 0h2v1h-2V8zm-3 2h2v1H7v-1zm3 0h2v1h-2v-1zm-3 2h2v1H7v-1zm3 0h2v1h-2v-1z" />
</svg>
<span class="link-text">Tests</span>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">
<svg width="2em" height="2em" viewBox="0 0 16 16" class="bi bi-journal-text" fill="currentColor"
xmlns="http://www.w3.org/2000/svg">
<path
d="M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z" />
<path
d="M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z" />
<path fill-rule="evenodd"
d="M5 10.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z" />
</svg>
<span class="link-text">Assignments</span>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">
<svg width="2em" height="2em" viewBox="0 0 16 16" class="bi bi-bell-fill" fill="currentColor"
xmlns="http://www.w3.org/2000/svg">
<path
d="M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zm.995-14.901a1 1 0 1 0-1.99 0A5.002 5.002 0 0 0 3 6c0 1.098-.5 6-2 7h14c-1.5-1-2-5.902-2-7 0-2.42-1.72-4.44-4.005-4.901z" />
</svg>
<span class="link-text">Announcement</span>
</a>
</li>
<li class="nav-item" id="themeButton">
<a href="#" class="nav-link">
<svg class="theme-icon" id="lightIcon" aria-hidden="true" focusable="false" data-prefix="fad"
data-icon="moon-stars" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"
class="svg-inline--fa fa-moon-stars fa-w-16 fa-7x">
<g class="fa-group">
<path fill="currentColor"
d="M320 32L304 0l-16 32-32 16 32 16 16 32 16-32 32-16zm138.7 149.3L432 128l-26.7 53.3L352 208l53.3 26.7L432 288l26.7-53.3L512 208z"
class="fa-secondary"></path>
<path fill="currentColor"
d="M332.2 426.4c8.1-1.6 13.9 8 8.6 14.5a191.18 191.18 0 0 1-149 71.1C85.8 512 0 426 0 320c0-120 108.7-210.6 227-188.8 8.2 1.6 10.1 12.6 2.8 16.7a150.3 150.3 0 0 0-76.1 130.8c0 94 85.4 165.4 178.5 147.7z"
class="fa-primary"></path>
</g>
</svg>
<svg class="theme-icon" id="solarIcon" aria-hidden="true" focusable="false" data-prefix="fad"
data-icon="sun" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"
class="svg-inline--fa fa-sun fa-w-16 fa-7x">
<g class="fa-group">
<path fill="currentColor"
d="M502.42 240.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.41-94.8a17.31 17.31 0 0 0-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4a17.31 17.31 0 0 0 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.41-33.5 47.3 94.7a17.31 17.31 0 0 0 31 0l47.31-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3a17.33 17.33 0 0 0 .2-31.1zm-155.9 106c-49.91 49.9-131.11 49.9-181 0a128.13 128.13 0 0 1 0-181c49.9-49.9 131.1-49.9 181 0a128.13 128.13 0 0 1 0 181z"
class="fa-secondary"></path>
<path fill="currentColor" d="M352 256a96 96 0 1 1-96-96 96.15 96.15 0 0 1 96 96z" class="fa-primary">
</path>
</g>
</svg>
<svg class="theme-icon" id="darkIcon" aria-hidden="true" focusable="false" data-prefix="fad"
data-icon="sunglasses" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"
class="svg-inline--fa fa-sunglasses fa-w-18 fa-7x">
<g class="fa-group">
<path fill="currentColor"
d="M574.09 280.38L528.75 98.66a87.94 87.94 0 0 0-113.19-62.14l-15.25 5.08a16 16 0 0 0-10.12 20.25L395.25 77a16 16 0 0 0 20.22 10.13l13.19-4.39c10.87-3.63 23-3.57 33.15 1.73a39.59 39.59 0 0 1 20.38 25.81l38.47 153.83a276.7 276.7 0 0 0-81.22-12.47c-34.75 0-74 7-114.85 26.75h-73.18c-40.85-19.75-80.07-26.75-114.85-26.75a276.75 276.75 0 0 0-81.22 12.45l38.47-153.8a39.61 39.61 0 0 1 20.38-25.82c10.15-5.29 22.28-5.34 33.15-1.73l13.16 4.39A16 16 0 0 0 180.75 77l5.06-15.19a16 16 0 0 0-10.12-20.21l-15.25-5.08A87.95 87.95 0 0 0 47.25 98.65L1.91 280.38A75.35 75.35 0 0 0 0 295.86v70.25C0 429 51.59 480 115.19 480h37.12c60.28 0 110.38-45.94 114.88-105.37l2.93-38.63h35.76l2.93 38.63c4.5 59.43 54.6 105.37 114.88 105.37h37.12C524.41 480 576 429 576 366.13v-70.25a62.67 62.67 0 0 0-1.91-15.5zM203.38 369.8c-2 25.9-24.41 46.2-51.07 46.2h-37.12C87 416 64 393.63 64 366.11v-37.55a217.35 217.35 0 0 1 72.59-12.9 196.51 196.51 0 0 1 69.91 12.9zM512 366.13c0 27.5-23 49.87-51.19 49.87h-37.12c-26.69 0-49.1-20.3-51.07-46.2l-3.12-41.24a196.55 196.55 0 0 1 69.94-12.9A217.41 217.41 0 0 1 512 328.58z"
class="fa-secondary"></path>
<path fill="currentColor"
d="M64.19 367.9c0-.61-.19-1.18-.19-1.8 0 27.53 23 49.9 51.19 49.9h37.12c26.66 0 49.1-20.3 51.07-46.2l3.12-41.24c-14-5.29-28.31-8.38-42.78-10.42zm404-50l-95.83 47.91.3 4c2 25.9 24.38 46.2 51.07 46.2h37.12C489 416 512 393.63 512 366.13v-37.55a227.76 227.76 0 0 0-43.85-10.66z"
class="fa-primary"></path>
</g>
</svg>
<span onclick="signOut()" class="link-text">Sign Out</span>
</a>
</li>
</ul>
</nav>
<main>
<h1 id="welcome-msg">Welcome Back Student,</h1>
<div class="card2 fade-in one">
<div class="container">
<div class="flex-container">
<div onclick="setdata1()">
<div class="card">
<div id="card1" >
<h4 id="subject1" class="due-sub"><b>Jane Doe</b></h4>
<p id="topic1" class="due-topic">Interior Designer</p>
<p id="type1" class="due-type">Interior Designer</p>
</div>
<p id="day1" class="due-day">5 Days left</p>
</div>
</div>
<div>
<div class="card" onclick="setdata2()">
<div id="card2" >
<h4 id="subject2" class="due-sub"><b>Jane Doe</b></h4>
<p id="topic2" class="due-topic">Interior Designer</p>
<p id="type2" class="due-type">Interior Designer</p>
</div>
<p id="day2" class="due-day">5 Days left</p>
</div>
</div>
<div>
<div class="card" onclick="setdata3()">
<div id="card3" >
<h4 id="subject3" class="due-sub"><b>Jane Doe</b></h4>
<p id="topic3" class="due-topic">Interior Designer</p>
<p id="type3" class="due-type">Interior Designer</p>
</div>
<p id="day3" class="due-day">5 Days left</p>
</div>
</div>
<div>
<div class="card" onclick="setdata4()">
<div id="card4" >
<h4 id="subject4" class="due-sub"><b>Jane Doe</b></h4>
<p id="topic4" class="due-topic">Interior Designer</p>
<p id="type4" class="due-type">Interior Designer</p>
</div>
<p id="day4" class="due-day">5 Days left</p>
</div>
</div>
<div id="hid-card" onclick="setdata5()">
<div class="card">
<div id="card5" >
<h4 id="subject5" class="due-sub"><b>Jane Doe</b></h4>
<p id="topic5" class="due-topic">Interior Designer</p>
<p id="type5" class="due-type">Interior Designer</p>
</div>
<p id="day5" class="due-day">6 Days left</p>
</div>
</div>
</div>
</div>
</div>
<div id="test-card" class="card2 fade-in two">
<div class="container">
<div class="flex-container">
<div>
<h5 id="testSubject" style="font-size: 2.7em;color: #fafafa;margin-top: 5px;"> Chemistry Test</h5>
<h6 id="testTopic" style="font-size: 2.2em;color: #ffffff;margin-top: 15px;"> P-Block Element</h6>
<h6 id="testMarks" style="font-size: 2em;color: #ffffff;margin-top: 15px;"> 20 Marks</h6>
</div>
<div>
<div class="countdown-container">
<h1 class="countdown-title" style="color: white;">Starting in:</h1>
<ul>
<li class="countdown-li" style="color: white;"><span class="countdown-time" id="days" style="color: white;"></span>days</li>
<li class="countdown-li" style="color: white;"><span class="countdown-time" id="hours" style="color: white;"></span>Hours</li>
<li class="countdown-li" style="color: white;"><span class="countdown-time" id="minutes" style="color: white;"></span>Minutes</li>
<li class="countdown-li" style="color: white;"><span class="countdown-time" id="seconds" style="color: white;"></span>Seconds</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="card2 fade-in three" style="height: 300px;">
<div class="container">
<div class="flex-container">
<div style=" width: 50%;">
<div class="anouncement">
Announcement
</div>
<div class="message-container">
<ul class="message-ul">
<li class="message-li">
<h2 id="title1" class="message-h2">Online Class to Resume</h2>
<p id="message1" class="message-p">Online Classes will Start on November 16th after the holidays </p>
</li>
<li class="message-li">
<h2 id="title2" class="message-h2">Split Test 2021</h2>
<p id="message2" class="message-p">Split Test has been announced for Chemistry on April 18th</p>
</li>
<li class="message-li">
<h2 id="title3" class="message-h2">Sports Day upcoming </h2>
<p id="message3" class="message-p">Sports Day is on 12-3-2021 Students please prepare</p>
</li>
<li class="message-li">
<h2 id="title4" class="message-h2">UCEED Coaching Classes</h2>
<p id="message4" class="message-p">Elective UCEED Preperation Classes available from 20-11-2020</p>
</li>
<li class="message-li">
<h2 id="title5" class="message-h2">Doubt Classes</h2>
<p id="message5" class="message-p">Doubt Classes will aviable on evenings commencing today</p>
</li>
<!-- <li class="message-li">
<h2 id="sender6" class="message-h2">Head line 6</h2>
<p id="message6" class="message-p">News detail just a line jhghdsbd hsdssdhjhdjshdjsahdjs</p>
</li>
<li class="message-li">
<h2 id="sender7" class="message-h2">Head line 7</h2>
<p id="message7" class="message-p">News detail just a line jhghdsbd hsdssdhjhdjshdjsahdjs</p>
</li>
<li class="message-li">
<h2 id="sender8" class="message-h2">Head line 8</h2>
<p id="message8" class="message-p">News detail just a line jhghdsbd hsdssdhjhdjshdjsahdjs</p>
</li>
-->
</ul>
</div>
</div>
<div style="width: fit-content;">
<div class="an-line">
</div>
</div>
<div >
<table class="graph">
<caption>Your performance</caption>
<thead>
<tr>
<th scope="col">Test</th>
<th scope="col">Percent</th>
</tr>
</thead><tbody>
<tr style="height:85%">
<th scope="row">Test 1</th>
<td><span>85%</span></td>
</tr>
<tr style="height:23%">
<th scope="row">Test 2</th>
<td><span>23%</span></td>
</tr>
<tr style="height:7%">
<th scope="row">Test 3</th>
<td><span>7%</span></td>
</tr>
<tr style="height:38%">
<th scope="row">Test 4</th>
<td><span>38%</span></td>
</tr>
<tr style="height:35%">
<th scope="row">Test 5</th>
<td><span>35%</span></td>
</tr>
<tr style="height:30%">
<th scope="row">Test 6</th>
<td><span>30%</span></td>
</tr>
<tr style="height:5%">
<th scope="row">Test 7</th>
<td><span>5%</span></td>
</tr>
<tr style="height:20%">
<th scope="row">Test 8</th>
<td><span>20%</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>
</div>
<script>
require('./renderer.js');
</script>
<script src="home.js"></script>
<script>
</script>
<script src="vendor/jquery/jquery-3.2.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(function(){
var tickerLength = $('.message-container .message-ul .message-li').length;
var tickerHeight = $('.message-container .message-ul .message-li').outerHeight();
$('.message-container ul li:last-child').prependTo('.message-container .message-ul');
$('.message-container .message-ul').css('marginTop',-tickerHeight);
function moveTop(){
$('.message-container .message-ul').animate({
top : -tickerHeight
},1000, function(){
$('.message-container .message-ul .message-li:first-child').appendTo('.message-container .message-ul ');
$('.message-container .message-ul').css('top','');
});
}
setInterval( function(){
moveTop();
}, 3000);
});
</script>
<script>
$(".nav-item a").click(function () {
$(this).parent(".nav-item").children("ul").slideToggle("100");
$('.caret-dropdown').toggleClass('active');
});
// $(".nav-item ul").mouseleave(function(){
// $(this).parent(".nav-item").children("ul").slideToggle("-100");
// });
$(".navbar").mouseleave(function(){
$(".nav-item ul").slideUp("100");
$('.caret-dropdown').removeClass('active');
$('.caret-dropdown').hide();
});
$(".navbar").mouseover(function(){
$('.caret-dropdown').show();
});
$(document).ready(function(){
$(".nav-item ul").hide();
});
</script>
</body>
</html>