Repository navigation
Expand file tree
/
Copy pathscript1.js
More file actions
271 lines (259 loc) · 12.9 KB
/
Copy pathscript1.js
File metadata and controls
271 lines (259 loc) · 12.9 KB
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
const courses = {
'Structured Programming': {
class: [
{ title: "Class 1: Playlist", link:" https://youtu.be/0_8dOzwShtc?si=Ld93CNMFi4OV8bMp" },
{ title: "Class 2: C_10", link: "https://youtu.be/irqbmMNs2Bo?si=8823wMycrCK2aScx" },
{ title: "Class 3: C again", link: "https://youtube.com/playlist?list=PLdo5W4Nhv31a8UcMN9-35ghv8qyFWD9_S&si=ionBqhFP80n33pZN" },
],
notes: [
{ title: "C programming", link: "https://drive.google.com/file/d/1VouEbmz2Uf9pOxDxqcr6acfeLYll21PA/view?usp=sharing" },
{ title: "C more", link: "https://drive.google.com/file/d/1Db0Wg6Sw4w8hPLfr7JVNL68jac4HjcKt/view?usp=sharing" }
],
books: [
{ title: "Teach Yourself C", link: "https://example.com/teach-yourself-c" },
{ title: "Effective Java", link: "https://example.com/effective-java" }
// ],
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
]
},
'Discrete Mathematics': {
class: [
{ title: "Class: Playlist", link: "https://youtube.com/playlist?list=PLU6SqdYcYsfJ27O0dvuMwafS3X8CecqUg&si=-uRHCvMXPgAoCCVC" }
],
notes: [
{ title: "Discrete Mathematics Notes", link: "https://drive.google.com/file/d/1hkbJZjufwLg-7Sc9BSw_bN5LzzepMuWZ/view?usp=sharing" }
],
books: [
{ title: "Discrete Mathematics and Its Applications", link: "https://example.com/discrete-maths" },
{ title: "Introduction to Graph Theory", link: "https://example.com/graph-theory" }
]
//,
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
},
'Probability and Statistics for Engineers-I': {
class: [
{ title: "Class 1: All", link: "https://youtube.com/playlist?list=PLU6SqdYcYsfLRq3tu-g_hvkHDcorrtcBK&si=Orvqa3MMdG9PvsgI" }
],
notes: [
{ title: "Probability and Stats Notes", link: "https://drive.google.com/file/d/1B4hTbDBuTuInGK6UuhYdd9PB2F5bfGC6/view?usp=sharing" }
],
books: [
{ title: "Introduction to Probability", link: "https://example.com/probability-book" },
{ title: "Statistics for Engineers", link: "https://example.com/statistics-book" }
]
// ,
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
},
'Calculus and Analytical Geometry': {
class: [
{ title: "Class 1: Graph", link: "https://youtu.be/C9TSePo6FKI?si=yaYJD9qUvaa3OZzc" }
],
notes: [
{ title: "Math_1.1", link: "https://drive.google.com/file/d/10Y19LAAt2d9elbmDJj-8vuy3qENpyRvq/view?usp=sharing" },
{ title: "1st Assignment", link: "https://drive.google.com/file/d/10Y19LAAt2d9elbmDJj-8vuy3qENpyRvq/view?usp=sharing" },
{ title: "2nd Assignment", link: "https://drive.google.com/file/d/10Y19LAAt2d9elbmDJj-8vuy3qENpyRvq/view?usp=sharing" }
],
books: [
{ title: "Calculus: Early Transcendentals", link: "https://example.com/calculus-book" },
{ title: "Analytical Geometry", link: "https://example.com/analytical-geometry-book" }
]
// ,
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
},
'Soft Skill Communication': {
class: [
{ title: "Class 1: Communication Skill", link: "https://www.youtube.com/watch?v=ADJAcyTq1us&list=PLWPirh4EWFpFIElSxplDlEhRDZHkBD-0n" },
{ title: "Class 2: Improve speaking", link: "https://www.youtube.com/watch?v=icudf_w_pqU&pp=ygUZc29mdCBza2lsbHMgY29tbXVuaWNhdGlvbg%3D%3D" }
],
notes: [
{ title: "Communication Skill Notes", link: "https://drive.google.com/file/d/1J_LM9pdsNt40smtT-RRZYMHNs0xu6xBU/view?usp=sharing" },
]
// books: [
// { title: "Eloquent JavaScript", link: "https://example.com/eloquent-js" },
// { title: "Learning Web Design", link: "https://example.com/learning-web-design" }
// ],
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
},
'Technology and Society': {
class: [
{ title: "Class 1: Microsoft PowerPoint", link: "https://youtu.be/bcl6YoZQfDM?si=D9ytYTRlG4yHqVAD" },
{ title: "Class 2: Microsoft Word", link: "https://youtu.be/QXu9AGTIxrM?si=t9D6SGHMkiXu1q9H" },
{ title: "Class 3: Microsoft Excel", link: "https://youtu.be/tvph9RuZvUg?si=Fk62YdocMe_1aonK" }
],
notes: [
{ title: "Technology", link: "https://drive.google.com/file/d/10Y19LAAt2d9elbmDJj-8vuy3qENpyRvq/view?usp=sharing" }
],
// books: [
// { title: "Eloquent JavaScript", link: "https://example.com/eloquent-js" },
// { title: "Learning Web Design", link: "https://example.com/learning-web-design" }
// ],
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
},
'Introduction to Software Engineering': {
class: [
{ title: "Class: All", link: "https://youtube.com/playlist?list=PLxCzCOWd7aiEed7SKZBnC6ypFDWYLRvB2&si=if6Au-Y0Y7UqgKtY" }
],
notes: [
{ title: "Software Engineering Notes", link: "https://drive.google.com/file/d/183bIea5DkuwRrhtbIbuoOkCPelxMBgPC/view?usp=sharing" }
]
// books: [
// { title: "Eloquent JavaScript", link: "https://example.com/eloquent-js" },
// { title: "Learning Web Design", link: "https://example.com/learning-web-design" }
// ],
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
},
'Computer Organization': {
class: [
{ title: "Class: Playlist", link: "https://youtube.com/playlist?list=PL5Rc9H5eTGY6MHqCKAarxhxqT7nipKgun&si=iT7jjCi6fINpuMmB" }
],
notes: [
{ title: "Computer Organization Notes", link: "https://drive.google.com/file/d/1Q9AqPHQ7Gdz8qC203bsZi42Wxr1i9lSD/view?usp=sharing" }
],
// books: [
// { title: "Computer Organization and Design", link: "https://example.com/computer-org-design" },
// { title: "Computer Systems: A Programmer's Perspective", link: "https://example.com/computer-systems" }
// ],
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
},
'Bangla Literature': {
class: [
{ title: "Bengali ", link: "https://www.youtube.com/watch?v=NAnriECaP30&list=PLjpitam1EJN3o7ujU8pDxYb3kTVOyazge" },
{ title: "Postmaster", link: "https://youtu.be/Z5__gMAwiN4?si=3Cf5sNoaBdEHGbc-" }
],
notes: [
{ title: "Bangla Literature Notes - Part 1", link: "https://drive.google.com/file/d/1abc123abc123abc123/view?usp=sharing" },
{ title: "Bangla Literature Notes - Part 2", link: "https://drive.google.com/file/d/2xyz456xyz456xyz456/view?usp=sharing" }
],
books: [
{ title: "Rabindranath Tagore: A Biography", link: "https://example.com/tagore-biography" },
{ title: "The Essential Kazi Nazrul Islam", link: "https://example.com/nazrul-essentials" }
]
// ,
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
},
'History and Emergence of Bangladesh': {
class: [
{ title: "Class 1: The Language Movement", link: "https://youtu.be/DdqQrn7IG7I?si=vTH6uEL33VuBN1O-" },
{ title: "Class 2: Bangladesh Liberation War", link: "https://youtu.be/Ac6K72GL-_Q?si=_xQjJ5kWBXUlqsav" },
{ title: "Class 3: Bangladesh after Independence", link: "https://youtu.be/peLrksyhkew?si=3nMU3FQ9ToyVmbkF" },
{ title: "Class 4: History", link: "https://www.youtube.com/watch?v=_tQZ9J-P5Bo&list=PLToLm9SotZBEyD8hNML0Akhup7lyVO1LZ" },
]
// notes: [
// { title: "Bangladesh History Notes - Part 1", link: "https://drive.google.com/file/d/1hgb234hgb234hgb234/view?usp=sharing" },
// { title: "Bangladesh History Notes - Part 2", link: "https://drive.google.com/file/d/2dfg345dfg345dfg345/view?usp=sharing" }
// ],
// books: [
// { title: "Bangladesh Liberation War: A Historical Overview", link: "https://example.com/liberation-war-book" },
// { title: "The Emergence of Bangladesh", link: "https://example.com/emergence-bd" }
// ],
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
},
'Object Oriented Programming': {
class: [
{ title: "Class 1: Java", link: "https://www.youtube.com/watch?v=z7QwTMDQ88o&list=PLgH5QX0i9K3oAZUB2QXR-dZac0c9HNyRa" },
{ title: "Class 2: OOP Concepts in Java", link: "https://youtu.be/bSrm9RXwBaI?si=xdAHbD3CuupZ0Dsp" },
{ title: "Class 3: OOP Design Patterns", link: "https://example.com/oop-design-patterns" }
],
notes: [
{ title: "OOP Notes - Part 1", link: "https://drive.google.com/file/d/1xyz123abc123abc123/view?usp=sharing" },
{ title: "OOP Notes - Part 2", link: "https://drive.google.com/file/d/2abc456def456def456/view?usp=sharing" }
]
// books: [
// { title: "Object-Oriented Design & Programming in Java", link: "https://example.com/oop-java-book" },
// { title: "Design Patterns: Elements of Reusable Object-Oriented Software", link: "https://example.com/design-patterns-book" }
// ],
// question: [
// { title: "CT", link: "https://example.com/ct" },
// { title: "Main Exam", link: "https://example.com/main-exam" }
// ]
}
};
const subjectsList = document.getElementById('subjects-list');
const courseDetailsSection = document.getElementById('course-details');
const courseTitle = document.getElementById('course-title');
const classList = document.getElementById('class-list');
const notesList = document.getElementById('notes-list');
const booksList = document.getElementById('books-list');
const questionList = document.getElementById('question-list');
// Create the subject list dynamically
Object.keys(courses).forEach(subject => {
const subjectItem = document.createElement('li');
subjectItem.textContent = subject;
subjectItem.addEventListener('click', () => displayCourseDetails(subject));
subjectsList.appendChild(subjectItem);
});
// Function to display the course details
function displayCourseDetails(subject) {
const course = courses[subject];
courseTitle.textContent = subject;
classList.innerHTML = '';
notesList.innerHTML = '';
booksList.innerHTML = '';
questionList.innerHTML = '';
// Append class videos
course.class.forEach(item => {
const classItem = document.createElement('li');
const classLink = document.createElement('a');
classLink.href = item.link;
classLink.textContent = item.title;
classItem.appendChild(classLink);
classList.appendChild(classItem);
});
// Append notes
course.notes.forEach(item => {
const notesItem = document.createElement('li');
const notesLink = document.createElement('a');
notesLink.href = item.link;
notesLink.textContent = item.title;
notesItem.appendChild(notesLink);
notesList.appendChild(notesItem);
});
// Append books
course.books.forEach(item => {
const booksItem = document.createElement('li');
const booksLink = document.createElement('a');
booksLink.href = item.link;
booksLink.textContent = item.title;
booksItem.appendChild(booksLink);
booksList.appendChild(booksItem);
});
// Append questions
course.question.forEach(item => {
const questionItem = document.createElement('li');
const questionLink = document.createElement('a');
questionLink.href = item.link;
questionLink.textContent = item.title;
questionItem.appendChild(questionLink);
questionList.appendChild(questionItem);
});
courseDetailsSection.style.display = 'block';
}