-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsyllabus.html
335 lines (310 loc) · 12.7 KB
/
syllabus.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/dashboard.css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Sharp" rel="stylesheet" />
<link rel="icon" href="resources\PRERP_SA.png" type="image/x-icon" />
<title>PRERP - Syllabus</title>
</head>
<body>
<div class="container">
<aside>
<div class="top">
<div class="logo">
<a href="dashboard.html"><img src="resources\PRERP_SA.png" alt="" />
</a>
<h1>PR<span class="title">ERP</span></h1>
<div class="close" id="close-btn">
<span class="material-icons-sharp"> close </span>
</div>
</div>
<div class="sidebar">
<a href="dashboard.html"><span class="material-icons-sharp"> grid_view </span>
<h3>Dashboard</h3>
</a>
<a href="profile.html"><span class="material-icons-sharp"> person </span>
<h3>Profile</h3>
</a>
<a href="attendance.html"><span class="material-icons-sharp"> calendar_month </span>
<h3>Attendance</h3>
</a>
<a href="assignment.html"><span class="material-icons-sharp"> assignment </span>
<h3> Assignment</h3>
</a>
<a href="timetable.html"><span class="material-icons-sharp"> calendar_month </span>
<h3>Timetable</h3>
</a>
<a href="syllabus.html" class="active"><span class="material-icons-sharp">
summarize
</span>
<h3>Syllabus</h3>
</a>
<a href="clubactivities.html"><span class="material-icons-sharp">
groups
</span>
<h3>Club Activities</h3>
</a>
<a href="examtimetable.html"><span class="material-icons-sharp"> calendar_month </span>
<h3>Exam Timetable</h3>
</a>
<a href="result.html"><span class="material-icons-sharp"> summarize </span>
<h3>Result</h3>
</a>
<a href="feedback.html"><span class="material-icons-sharp"> forum </span>
<h3>Feedback</h3>
</a>
<a href="updatepassword.html"><span class="material-icons-sharp">
manage_accounts
</span>
<h3>Update Password</h3>
</a>
<a href="index.html" onclick="return confirm('Are you sure you want to Logout?')"><span
class="material-icons-sharp"> logout </span>
<h3 class="logout">Logout</h3>
</a>
</div>
</div>
</aside>
<main>
<h1>Syllabus</h1>
<div class="date">
<!-- <input type="date" value="2022-08-26" /> -->
<label for="date">26 / 08 / 2022</label>
</div>
<!-- <div class="insights">
<div class="attendance">
<span class="material-icons-sharp"> calendar_month </span>
<div class="middle">
<div class="left">
<h3>Total Attendance</h3>
<h1 id="totattendance"></h1>
</div>
<div class="progress">
<svg>
<circle cx="38" cy="38" r="36"></circle>
</svg>
<div class="number">
<p id="totattendance1"></p>
</div>
</div>
</div>
<small class="text-muted"></small>
</div>
<div class="csp">
<span class="material-icons-sharp"> analytics </span>
<div class="middle">
<div class="left">
<h3>Current Semester Percentage</h3>
<h1 id="currsemper"></h1>
</div>
<div class="progress">
<svg>
<circle cx="38" cy="38" r="36"></circle>
</svg>
<div class="number">
<p id="currsemper1"></p>
</div>
</div>
</div>
<small class="text-muted">This semester</small>
</div>
<div class="op">
<span class="material-icons-sharp"> assessment </span>
<div class="middle">
<div class="left">
<h3>Overall Percentage</h3>
<h1 id="overallper"></h1>
</div>
<div class="progress">
<svg>
<circle cx="38" cy="38" r="36"></circle>
</svg>
<div class="number">
<p id="overallper1"></p>
</div>
</div>
</div>
<small class="text-muted">All semesters</small>
</div>
</div> -->
<div class="recent-activity">
<center>
<embed src="/resources/BCU-BCA-2019-Syllabus-1.pdf" type="" width="1200" height="800">
</center>
</div>
</main>
<div class="right">
<div class="top">
<button id="menu-btn">
<span class="material-icons-sharp"> menu </span>
</button>
<div class="theme-toggler" id="theme">
<span class="material-icons-sharp active" id="themeToggler"> light_mode </span>
<span class="material-icons-sharp" id="themeToggler"> dark_mode </span>
</div>
<div class="profile">
<div class="info">
<p>Hey, <b id="user"></b></p>
<small class="text-muted">Student</small>
</div>
<a href="profile.html">
<div class="profile-photo">
<img src="resources\download.webp" alt="avatar" />
</div>
</a>
</div>
</div>
<div class="recent-updates">
<h2>Recent Updates</h2>
<div class="updates">
<div class="update">
<div class="profile-photo">
<img src="..\resources\848351_cup_512x512.png" alt="avatar" />
</div>
<div class="message">
<p><b>XACTITUDE 2022</b> at Kristu Jayanti College.</p>
<small class="text-muted">Team TECHNOZIA won the overalls.</small>
</div>
</div>
<div class="update">
<div class="profile-photo">
<img src="..\resources\848351_cup_512x512.png" alt="avatar" />
</div>
<div class="message">
<p><b># 2022</b> at Charan's Degree College..</p>
<small class="text-muted">Team TECHNOZIA won the overalls.</small>
</div>
</div>
<div class="update">
<div class="profile-photo">
<img src="..\resources\848351_cup_512x512.png" alt="avatar" />
</div>
<div class="message">
<p><b>SYNTAXIA 2022</b> at St. Joseph's College.</p>
<small class="text-muted">Team TECHNOZIA won the overalls.</small>
</div>
</div>
</div>
</div>
<div class="upcoming-events">
<h2>Upcoming Events</h2>
<div class="update">
<div class="icon">
<span class="material-icons-sharp"> event </span>
</div>
<div class="right">
<div class="info">
<h3>Prefinals</h3>
<small class="text-muted">From 2nd August, 2022.</small>
</div>
<h5 class="success">Lab Prefinals.</h5>
<h3>
Attendance is mandatory.
</h3>
</div>
</div>
<div class="update">
<div class="icon">
<span class="material-icons-sharp"> event </span>
</div>
<div class="right">
<div class="info">
<h3>Fees Payment Reminder</h3>
<small class="text-muted">By 20th Augus, 2022.</small>
</div>
<h5 class="danger">
Students with outstanding payment won't be given their hallticket.
</h5>
<h3>
Everyone should pay their fees within the date.
</h3>
</div>
</div>
<div class="update">
<div class="icon">
<span class="material-icons-sharp"> event </span>
</div>
<div class="right">
<div class="info">
<h3>Practical Finals</h3>
<small class="text-muted">From 24th August, 2022.</small>
</div>
<h5 class="success">
All the best to appearing students.
</h5>
<h3>
Everyone is requested to be in uniform and carry their hallticket and ID card.
</h3>
</div>
</div>
<script src="../js/index.js"></script>
<script type="module">
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.9.1/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.9.1/firebase-analytics.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyBaBKqVSNg1X9YhByu-Eq-jsll5Rr3ZSBo",
authDomain: "theprerp.firebaseapp.com",
projectId: "theprerp",
storageBucket: "theprerp.appspot.com",
messagingSenderId: "965186345528",
appId: "1:965186345528:web:00d25bf1b43ad61d86e4cd",
measurementId: "G-VQKKY7Q88B",
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
import {
getDatabase,
ref,
get,
set,
child,
update,
remove,
} from "https://www.gstatic.com/firebasejs/9.9.1/firebase-database.js";
const db = getDatabase();
let userid = document.getElementById('user');
let logout = document.getElementById('logout');
var currentuser = null;
function username() {
let keepLoggedIn = localStorage.getItem("keepLoggedIn");
if (keepLoggedIn == "yes")
currentuser = JSON.parse(localStorage.getItem('user'));
else
currentuser = JSON.parse(sessionStorage.getItem('user'));
}
function signout() {
sessionStorage.removeItem('user');
localStorage.removeItem('user');
localStorage.removeItem('keepLoggedIn');
window.location = "index.html";
}
window.onload = function () {
username();
if (currentuser != null) {
user.innerText = currentuser.name;
var totpresent = ((currentuser.sub1present) + (currentuser.sub2present) + (currentuser.sub3present) + (currentuser.sub4present) + (currentuser.sub5present) + (currentuser.sub6present) + (currentuser.sub7present));
var totclass = ((currentuser.sub1tot) + (currentuser.sub2tot) + (currentuser.sub3tot) + (currentuser.sub4tot) + (currentuser.sub5tot) + (currentuser.sub6tot) + (currentuser.sub7tot));
totattendance.innerText = ((totpresent / totclass) * 100).toFixed(2) + "%";
totattendance1.innerText = ((totpresent / totclass) * 100).toFixed(2) + "%";
var midterm = ((Number(currentuser.securedmarks1) + Number(currentuser.securedmarks2) + Number(currentuser.securedmarks3) + Number(currentuser.securedmarks4) + Number(currentuser.securedmarks5)) / (Number(currentuser.totalmarks1) + Number(currentuser.totalmarks2) + Number(currentuser.totalmarks3) + Number(currentuser.totalmarks4) + Number(currentuser.totalmarks5)) * 100).toFixed(2);
var prefinals = ((Number(currentuser.psecuredmarks1) + Number(currentuser.psecuredmarks2) + Number(currentuser.psecuredmarks3) + Number(currentuser.psecuredmarks4) + Number(currentuser.psecuredmarks5)) / (Number(currentuser.ptotalmarks1) + Number(currentuser.ptotalmarks2) + Number(currentuser.ptotalmarks3) + Number(currentuser.ptotalmarks4) + Number(currentuser.ptotalmarks5)) * 100).toFixed(2);
currsemper.innerText = ((Number(midterm) + Number(prefinals)) / 2).toFixed(2) + "%";
currsemper1.innerText = ((Number(midterm) + Number(prefinals)) / 2).toFixed(2) + "%";
overallper.innerText = currentuser.overallper + "%";
overallper1.innerText = currentuser.overallper + "%";
}
}
</script>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"
integrity="sha512-E8QSvWZ0eCLGk4km3hxSsNmGWbLtSCSUcewDQPQWZF6pEU8GlT8a5fF32wOl1i8ftdMhssTrF/OhyGWwonTcXA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</html>