-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpuc1.html
403 lines (369 loc) · 18.4 KB
/
puc1.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
<!doctype html>
<html lang="en" dir="ltr">
<!-- *****************
Powered by HeproAI - IT Solutions company
website : https://heproai.com/
website for open source projects details : https://opensource.heproai.com/
HeproAI's Open Source Projects
Free to use : https://github.com/heproai/
NO need to license this project
Developed and designed by " Team HeproAI "
******************-->
<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">
<title>Penbyte - PUC-1</title>
<link rel="stylesheet" href="css/plugin.min.css">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon.svg">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PEG551NQ3N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-PEG551NQ3N');
</script>
<!-- Icons -->
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css">
</head>
<body class="layout-light side-menu">
<div class="mobile-search">
</div>
<div class="mobile-author-actions"></div>
<header class="header-top">
<nav class="navbar navbar-light">
<div class="navbar-left">
<div class="logo-area">
<a class="navbar-brand" href="index.html">
<img class="dark" src="img/logo-black.svg" alt="logo">
<img class="light" src="img/logo-white.svg" alt="logo">
</a>
<a href="#" class="sidebar-toggle">
<img class="svg" src="img/svg/align-center-alt.svg" alt="img"></a>
</div>
</div>
<button class="btn btn-primary btn-default btn-rounded "><span>₹</span><a href="https://imjo.in/kF7cMF"
target="_blank" style="color: #fff;">Donate</a>
</button>
</nav>
</header>
<main class="main-content">
<!-- Nav bar starts -->
<div class="sidebar-wrapper">
<div class="sidebar sidebar-collapse" id="sidebar">
<div class="sidebar__menu-group">
<ul class="sidebar_nav">
<li>
<a href="index.html" class="active">
<span class="nav-icon uil uil-estate"></span>
<span class="menu-text">Home</span>
</a>
</li>
<li class="has-child">
<a href="#" class>
<span class="nav-icon uil uil-book-open"></span>
<span class="menu-text">Content</span>
<span class="toggle-icon"></span>
</a>
<ul>
<li class>
<a href="puc1.html">PUC - 1</a>
</li>
<li class>
<a href="puc2.html">PUC - 2</a>
</li>
<li class>
<a href="cse.html">CSE</a>
</li>
<li class>
<a href="ece.html">ECE</a>
</li>
<li class>
<a href="EEE.html">EEE</a>
</li>
<li class>
<a href="mech.html">MECH</a>
</li>
<li class>
<a href="civil.html">CIVIL</a>
</li>
<li class>
<a href="chemical.html">CHEMICAL</a>
</li>
<li class>
<a href="metallurgy.html">METALLURGY</a>
</li>
</ul>
</li>
<li>
<a href="Courses.html" class>
<span class="nav-icon uil uil-books"></span>
<span class="menu-text">Courses</span>
</a>
</li>
<li>
<a href="team.html" class>
<span class="nav-icon uil uil-users-alt"></span>
<span class="menu-text">Our Team</span>
</a>
</li>
<li class>
<a href="support.html">
<span class="nav-icon uil uil-headphones"></span>
<span class="menu-text">Support Center</span>
</a>
</li>
<li>
<a href="changelog.html" class>
<span class="nav-icon uil uil-arrow-growth"></span>
<span class="menu-text">Changelog</span>
<span class="badge badge-info-10 menuItem rounded-pill">1.14.9</span>
</a>
</li>
<li class>
<a href="pp.html">
<span class="nav-icon uil uil-exclamation-circle"></span>
<span class="menu-text">Privacy Policy</span>
</a>
</li>
<li class>
<a href="tc.html">
<span class="nav-icon uil uil-question-circle"></span>
<span class="menu-text">Terms & Conditions</span>
</a>
</li>
<li>
<a href="about.html" class>
<span class="nav-icon uil uil-bookmark"></span>
<span class="menu-text">About</span>
</a>
</li>
<!-- <li class>
<a href="sign-up.html">
<span class="nav-icon uil uil-sign-out-alt"></span>
<span class="menu-text">Sign Up</span>
</a>
</li> -->
</ul>
</div>
</div>
</div>
<!-- Nav bar Ends -->
<!-- Main content Starts-->
<div class="contents">
<div class="demo3 mb-25 t-thead-bg">
<div class="container-fluid">
<div class="row ">
<div class="col-lg-12">
<div class="breadcrumb-main">
<h4 class="text-capitalize breadcrumb-title">Pre University Course - 1</h4>
<div class="breadcrumb-action justify-content-center flex-wrap">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#"><i
class="uil uil-estate"></i>Home</a></li>
<li class="breadcrumb-item active" aria-current="page">PUC - 1</li>
</ol>
</nav>
</div>
</div>
</div>
<!--********** Content Place -->
<div class="col-12 mb-25">
<div class="card border-0 px-25 pb-10 h-100">
<div class="card-header px-0 border-0">
<h6>Content For<span style="color: #ff6600; font-size: larger;">PUC-1</span></h6>
<div class="card-extra">
<ul class="card-tab-links nav-tabs nav" role="tablist">
<li>
<a class="active" href="#" data-bs-toggle="tab"
id="semOneTab" role="tab" aria-selected="true">Sem - 1</a>
</li>
<li>
<a href="#" data-bs-toggle="tab" id="semTwoTab"
role="tab" aria-selected="true">Sem - 2</a>
</li>
</ul>
</div>
</div>
<div class="card-body p-0">
<div class="tab-content">
<div class="tab-pane fade active show" id="t_selling-today222" role="tabpanel"
aria-labelledby="t_selling-today222-tab">
<div class="selling-table-wrap selling-table-wrap--source">
<div class="table-responsive">
<table class="table table--default table-borderless">
<div id="data-container"></div>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Main content End-->
<!-- Footer Section -->
<footer class="footer-wrapper">
<div class="footer-wrapper__inside">
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<div class="footer-copyright">
<p><span>©
<script>
document.write(new Date().getFullYear())
</script>
Penbyte. Powered by </span><a href="https://www.heproai.com/">HeproAI</a></p>
</div>
</div>
<div class="col-md-6">
<div class="footer-menu text-end">
<ul>
<li>
<a class="color-facebook hover-facebook wh-38 fs-16 rounded-circle"
href="https://www.facebook.com/heproai" target="_blank"><i
class="lab la-facebook-f"></i></a></li>
</li>
<li>
<a class="color-instagram hover-instagram wh-38 fs-16 rounded-circle"
href="https://whatsapp.com/channel/0029Va53Lsu4CrfoKRq6B10Q"
target="_blank"><i class="lab la-whatsapp"></i></a></li>
</li>
<li>
<a class="color-instagram hover-instagram wh-38 fs-16 rounded-circle"
href="https://www.instagram.com/penbyte.in/" target="_blank"><i
class="lab la-instagram"></i></a></li>
</li>
<li>
<a class="color-twitter hover-twitter wh-38 fs-16 rounded-circle"
href="https://twitter.com/penbyte/" target="_blank"><i
class="lab la-twitter"></i></a></li>
</li>
<li>
<a class="color-ruby hover-ruby wh-38 fs-16 rounded-circle"
href="https://www.linkedin.com/company/penbyte/" target="_blank"><i
class="lab la-linkedin"></i></a></li>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- Footer Ended -->
</main>
<div id="overlayer">
<div class="loader-overlay">
<div class="dm-spin-dots spin-lg">
<span class="spin-dot badge-dot dot-primary"></span>
<span class="spin-dot badge-dot dot-primary"></span>
<span class="spin-dot badge-dot dot-primary"></span>
<span class="spin-dot badge-dot dot-primary"></span>
</div>
</div>
</div>
<!-- Javascript -->
<script src="js/plugins.min.js"></script>
<script src="js/script.min.js"></script>
<!-- Fetching Data From JSON Starts -->
<script>
// Function to calculate time difference and return a formatted string
function getTimeDifference(lastUpdate) {
const currentDate = new Date();
const updateDate = new Date(lastUpdate);
const timeDifference = currentDate - updateDate;
const secondsDifference = Math.floor(timeDifference / 1000);
const minutesDifference = Math.floor(secondsDifference / 60);
const hoursDifference = Math.floor(minutesDifference / 60);
const daysDifference = Math.floor(hoursDifference / 24);
if (daysDifference === 0) {
return 'Today';
} else if (daysDifference === 1) {
return '1 day ago';
} else if (daysDifference <= 7) {
return `${daysDifference} days ago`;
} else if (daysDifference <= 15) {
return '1 week ago';
} else if (daysDifference <= 30) {
return '2 weeks ago';
} else if (daysDifference <= 90) {
const months = Math.floor(daysDifference / 30);
return `${months} month${months > 1 ? 's' : ''} ago`;
} else if (daysDifference <= 365) {
const months = Math.floor(daysDifference / 30);
const years = Math.floor(months / 12);
return `${years} year${years > 1 ? 's' : ''} ago`;
} else {
return 'More than a year ago';
}
}
// Function to fetch JSON data
function fetchData(sem) {
fetch('./Content/Puc_1.json')
.then(response => response.json())
.then(data => {
const semData = data[sem];
// Process the data
const dataContainer = document.getElementById('data-container');
dataContainer.innerHTML = ''; // Clear previous data
const table = document.createElement('table');
table.className = 'table-auto w-full';
const thead = document.createElement('thead');
thead.innerHTML = `
<tr>
<th>Subject Names</th>
<th class="px-4 py-2">Status</th>
<th class="px-4 py-2">Last Update</th>
<th>Subject code</th>
<th>Author</th>
</tr>
`;
const tbody = document.createElement('tbody');
semData.forEach(item => {
const row = document.createElement('tr');
const status = (item.link === '#') ? 'Unavailable' : 'Available';
// Add conditional class based on status
const statusClass = (status === 'Unavailable') ? 'unavailable' : 'available';
const lu = getTimeDifference(item.lastupdate);
row.innerHTML = `
<td>
<div>
<span><a href="${item.link}" target="_black">${item.name}</a></span>
</div>
</td>
<td class="px-4 py-2 status ${statusClass}">${status}</td>
<td class="px-4 py-2">${lu}</td>
<td class="px-4 py-2">${item.scode}</td>
<td class="px-4 py-2">${item.author}</td>
`;
tbody.appendChild(row);
});
table.appendChild(thead);
table.appendChild(tbody);
dataContainer.appendChild(table);
})
.catch(error => console.error('Error fetching data:', error));
}
// By default, fetch and display Semester One data
fetchData('semOne');
// Event listeners for tabs
document.getElementById('semOneTab').addEventListener('click', () => {
fetchData('semOne');
});
document.getElementById('semTwoTab').addEventListener('click', () => {
fetchData('semTwo');
});
</script>
<!-- Fetching Data From JSON Ended -->
</body>
</html>