-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
588 lines (528 loc) · 30.1 KB
/
index.html
File metadata and controls
588 lines (528 loc) · 30.1 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
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
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sistem Operasi - IF25-12007</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
<style>
:root {
--primary-color: #2563eb;
--secondary-color: #1e40af;
--bg-color: #0f172a;
--card-bg: #1e293b;
--text-color: #f8fafc;
--text-muted: #94a3b8;
--accent-color: #38bdf8;
--border-color: rgba(255, 255, 255, 0.05); /* Added for border consistency */
}
[data-theme="light"] {
--bg-color: #f0f9ff;
--card-bg: #ffffff;
--text-color: #1e293b;
--text-muted: #64748b;
--border-color: rgba(0, 0, 0, 0.1);
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
margin: 0;
padding: 0;
min-height: 100vh;
background-image:
radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
radial-gradient(at 0% 100%, rgba(56, 189, 248, 0.15) 0px, transparent 50%);
transition: background-color 0.3s ease, color 0.3s ease;
}
.theme-toggle {
position: absolute;
top: 2rem;
right: 2rem;
background: var(--card-bg);
border: 1px solid var(--border-color);
color: var(--text-color);
padding: 0.5rem;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}
.theme-toggle:hover {
transform: scale(1.1);
background-color: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
.container {
width: 100%;
max-width: 1200px;
padding: 2rem;
margin: 0 auto;
}
header {
text-align: center;
margin-bottom: 3rem;
animation: fadeInDown 0.8s ease-out;
}
h1 {
font-size: 3rem;
font-weight: 700;
margin: 0 0 0.5rem 0;
background: linear-gradient(135deg, #60a5fa, #38bdf8);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -0.02em;
}
.course-code {
font-size: 1.25rem;
color: var(--text-muted);
font-weight: 300;
background: rgba(255, 255, 255, 0.05);
padding: 0.25rem 1rem;
border-radius: 9999px;
display: inline-block;
margin-bottom: 1rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.description {
color: var(--text-muted);
margin-top: 1rem;
font-size: 1.1rem;
line-height: 1.6;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
animation: fadeInUp 0.8s ease-out 0.2s backwards;
}
.featured-pdf {
background-color: var(--card-bg);
border-radius: 1rem;
padding: 1.25rem;
margin-top: 2rem;
border: 1px solid var(--border-color);
margin-bottom: 1.5rem;
animation: fadeInUp 0.8s ease-out 0.1s backwards;
}
.featured-pdf.is-hidden {
display: none;
}
.featured-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
margin-bottom: 0.75rem;
flex-wrap: wrap;
}
.featured-header h2 {
margin: 0;
font-size: 1.2rem;
}
.featured-header p {
margin: 0.2rem 0 0 0;
color: var(--text-muted);
font-size: 0.9rem;
}
.pdf-actions {
display: flex;
gap: 0.6rem;
}
.pdf-actions a {
text-decoration: none;
color: var(--text-color);
border: 1px solid var(--border-color);
background: rgba(56, 189, 248, 0.08);
padding: 0.45rem 0.7rem;
border-radius: 8px;
font-size: 0.85rem;
transition: all 0.2s ease;
}
.pdf-actions a:hover {
border-color: rgba(56, 189, 248, 0.4);
transform: translateY(-1px);
}
.pdf-embed {
width: 100%;
height: 70vh;
min-height: 500px;
border: 1px solid var(--border-color);
border-radius: 0.8rem;
background: #0b1220;
}
.card {
background-color: var(--card-bg);
border-radius: 1rem;
padding: 1.5rem;
transition: all 0.3s ease;
text-decoration: none;
color: inherit;
border: 1px solid var(--border-color);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
transform: translateX(-100%);
transition: 0.5s;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
border-color: rgba(56, 189, 248, 0.3);
}
.card:hover::before {
transform: translateX(100%);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1rem;
}
.chapter-tag {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--accent-color);
background: rgba(56, 189, 248, 0.1);
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-weight: 600;
}
.arrow-icon {
opacity: 0;
transform: translateX(-10px);
transition: all 0.3s ease;
color: var(--accent-color);
}
.card:hover .arrow-icon {
opacity: 1;
transform: translateX(0);
}
.card h2 {
margin: 0;
font-size: 1.5rem;
font-weight: 600;
color: var(--text-color);
}
.card p {
color: var(--text-muted);
font-size: 0.95rem;
line-height: 1.5;
margin: 0.5rem 0 0 0;
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
footer {
margin-top: 4rem;
text-align: center;
color: var(--text-muted);
font-size: 0.875rem;
opacity: 0.6;
}
</style>
</head>
<body>
<div class="container">
<header>
<div class="course-code">IF25-12007</div>
<h1>Sistem Operasi</h1>
<p class="description">Course materials and presentation slides for the Operating Systems course.</p>
</header>
<div class="grid">
<a href="2_Book_Translate/main.pdf" class="card">
<div class="card-header">
<span class="chapter-tag" style="color: #10b981; background: rgba(16, 185, 129, 0.1);">Book</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="color: #10b981;"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>Terjemahan Buku (OSTEP)</h2>
<p>Operating Systems: Three Easy Pieces (OSTEP) translated into Indonesian.</p>
</a>
<div class="card" style="position: relative;">
<a href="week0_pdf.html" class="week-link" data-preview-url="1_Slides/week0_slide.pdf" data-preview-title="Week 0 - Review Arsitektur Komputer" style="text-decoration: none; color: inherit; display: block; flex-grow: 1;">
<div class="card-header">
<span class="chapter-tag">Week 0</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>Review Arsitektur Komputer</h2>
<p>Computer Architecture Organization, Von Neumann, & Instruction Cycle.</p>
</a>
<!-- PDF Download Button -->
<a href="1_Slides/week0_slide.pdf" target="_blank" title="Download PDF"
style="position: absolute; bottom: 1.5rem; right: 1.5rem; padding: 8px; color: var(--text-muted); background: var(--card-bg); border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10;">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
</a>
</div>
<div class="card" style="position: relative;">
<a href="week1_pdf.html" class="week-link" data-preview-url="1_Slides/week1_slide.pdf" data-preview-title="Week 1 - Pengenalan Sistem Operasi" style="text-decoration: none; color: inherit; display: block; flex-grow: 1;">
<div class="card-header">
<span class="chapter-tag">Week 1</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>Pengenalan Sistem Operasi</h2>
<p>Fundamental concepts, virtualization, concurrency, persistence, and history of operating systems.</p>
</a>
<!-- PDF Download Button -->
<a href="1_Slides/week1_slide.pdf" target="_blank" title="Download PDF"
style="position: absolute; bottom: 1.5rem; right: 1.5rem; padding: 8px; color: var(--text-muted); background: var(--card-bg); border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10;">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
</a>
</div>
<div class="card" style="position: relative;">
<a href="week2_pdf.html" class="week-link" data-preview-url="1_Slides/week2_slide.pdf" data-preview-title="Week 2 - Process & OS Structure" style="text-decoration: none; color: inherit; display: block; flex-grow: 1;">
<div class="card-header">
<span class="chapter-tag">Week 2</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>Process & OS Structure</h2>
<p>Program vs process, process state, context switch, PCB, mode user-kernel, dan system call.</p>
</a>
<!-- PDF Download Button -->
<a href="1_Slides/week2_slide.pdf" target="_blank" title="Download PDF"
style="position: absolute; bottom: 1.5rem; right: 1.5rem; padding: 8px; color: var(--text-muted); background: var(--card-bg); border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10;">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
</a>
</div>
<div class="card" style="position: relative;">
<a href="week3_pdf.html" class="week-link" data-preview-url="1_Slides/week3_slide.pdf" data-preview-title="Week 3 - CPU Scheduling" style="text-decoration: none; color: inherit; display: block; flex-grow: 1;">
<div class="card-header">
<span class="chapter-tag">Week 3</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>CPU Scheduling</h2>
<p>Penjadwalan CPU: algoritma FIFO, SJF, STCF, Round Robin, dan Multi-Level Feedback Queue (MLFQ).</p>
</a>
<!-- PDF Download Button -->
<a href="1_Slides/week3_slide.pdf" target="_blank" title="Download PDF"
style="position: absolute; bottom: 1.5rem; right: 1.5rem; padding: 8px; color: var(--text-muted); background: var(--card-bg); border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10;">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
</a>
</div>
<div class="card" style="position: relative;">
<a href="week4_pdf.html" class="week-link" data-preview-url="1_Slides/week4_slide.pdf" data-preview-title="Week 4 - CPU Scheduling MLFQ" style="text-decoration: none; color: inherit; display: block; flex-grow: 1;">
<div class="card-header">
<span class="chapter-tag">Week 4</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>CPU Scheduling - MLFQ</h2>
<p>Contoh soal dan penyelesaian step-by-step untuk Multi-Level Feedback Queue (MLFQ) dan perbandingan algoritma penjadwalan.</p>
</a>
<!-- PDF Download Button -->
<a href="1_Slides/week4_slide.pdf" target="_blank" title="Download PDF"
style="position: absolute; bottom: 1.5rem; right: 1.5rem; padding: 8px; color: var(--text-muted); background: var(--card-bg); border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10;">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
</a>
</div>
<div class="card" style="position: relative;">
<a href="#" class="week-link" data-preview-url="1_Slides/week5_slide.pdf" data-preview-title="Week 5 - Virtual Memory" style="text-decoration: none; color: inherit; display: block; flex-grow: 1;">
<div class="card-header">
<span class="chapter-tag">Week 5</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>Virtual Memory</h2>
<p>Address space, translasi alamat, segmentasi, dan free-space management.</p>
</a>
<a href="1_Slides/week5_slide.pdf" target="_blank" title="Download PDF"
style="position: absolute; bottom: 1.5rem; right: 1.5rem; padding: 8px; color: var(--text-muted); background: var(--card-bg); border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10;">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
</a>
</div>
<div class="card" style="position: relative;">
<a href="#" class="week-link" data-preview-url="1_Slides/week6_slide.pdf" data-preview-title="Week 6 - Manajemen Memori" style="text-decoration: none; color: inherit; display: block; flex-grow: 1;">
<div class="card-header">
<span class="chapter-tag">Week 6</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>Manajemen Memori</h2>
<p>Fragmentasi memori, algoritma alokasi, dan konsep dasar paging.</p>
</a>
<a href="1_Slides/week6_slide.pdf" target="_blank" title="Download PDF"
style="position: absolute; bottom: 1.5rem; right: 1.5rem; padding: 8px; color: var(--text-muted); background: var(--card-bg); border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10;">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
</a>
</div>
<div class="card" style="position: relative;">
<a href="#" class="week-link" data-preview-url="1_Slides/week7_slide.pdf" data-preview-title="Week 7 - Manajemen Memori 2" style="text-decoration: none; color: inherit; display: block; flex-grow: 1;">
<div class="card-header">
<span class="chapter-tag">Week 7</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>Manajemen Memori 2</h2>
<p>Paging, page tables, dan teknik optimisasi memori virtual.</p>
</a>
<a href="1_Slides/week7_slide.pdf" target="_blank" title="Download PDF"
style="position: absolute; bottom: 1.5rem; right: 1.5rem; padding: 8px; color: var(--text-muted); background: var(--card-bg); border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10;">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
</a>
</div>
<div class="card" style="position: relative;">
<a href="#" class="week-link" data-preview-url="1_Slides/week7_additional_paging.pdf" data-preview-title="Week 7 - Slide Tambahan: Paging" style="text-decoration: none; color: inherit; display: block; flex-grow: 1;">
<div class="card-header">
<span class="chapter-tag">Week 7</span>
<svg class="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</div>
<h2>Slide Tambahan - Paging</h2>
<p>Materi tambahan tentang paging dan optimisasi memori virtual.</p>
</a>
<a href="1_Slides/week7_additional_paging.pdf" target="_blank" title="Download PDF"
style="position: absolute; bottom: 1.5rem; right: 1.5rem; padding: 8px; color: var(--text-muted); background: var(--card-bg); border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10;">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7 10 12 15 17 10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
</a>
</div>
<!-- Future chapters can be added here -->
<!--
<a href="#" class="card" style="opacity: 0.5; pointer-events: none;">
<div class="card-header">
<span class="chapter-tag">Chapter 2</span>
</div>
<h2>Process Management</h2>
<p>Coming soon...</p>
</a>
-->
</div>
<section class="featured-pdf is-hidden" id="pdf-preview">
<div class="featured-header">
<div>
<h2 id="preview-title">Preview Slide</h2>
<p id="preview-desc">Preview muncul setelah blok week diklik.</p>
</div>
<div class="pdf-actions">
<a id="preview-open" href="#" target="_blank">Buka Tab Baru</a>
<a id="preview-download" href="#" download>Unduh PDF</a>
</div>
</div>
<iframe id="preview-frame" class="pdf-embed" src="" title="PDF Preview"></iframe>
</section>
<footer>
© 2026 lectura.id/course/os - Institut Teknologi Sumatera
</footer>
</div>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle Dark Mode">
<!-- Sun Icon -->
<svg class="sun-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display: none;"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
<!-- Moon Icon -->
<svg class="moon-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
</button>
<script>
const toggleBtn = document.getElementById('themeToggle');
const sunIcon = toggleBtn.querySelector('.sun-icon');
const moonIcon = toggleBtn.querySelector('.moon-icon');
const html = document.documentElement;
// Check localStorage or default to dark
const savedTheme = localStorage.getItem('theme') || 'dark';
applyTheme(savedTheme);
function applyTheme(theme) {
html.setAttribute('data-theme', theme);
localStorage.setItem('theme', theme);
if (theme === 'light') {
sunIcon.style.display = 'none';
moonIcon.style.display = 'block';
} else {
sunIcon.style.display = 'block';
moonIcon.style.display = 'none';
}
}
toggleBtn.addEventListener('click', () => {
const currentTheme = html.getAttribute('data-theme');
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
applyTheme(newTheme);
});
const previewSection = document.getElementById('pdf-preview');
const previewTitle = document.getElementById('preview-title');
const previewDesc = document.getElementById('preview-desc');
const previewFrame = document.getElementById('preview-frame');
const previewOpen = document.getElementById('preview-open');
const previewDownload = document.getElementById('preview-download');
document.querySelectorAll('.week-link').forEach(link => {
link.addEventListener('click', (e) => {
e.preventDefault();
const pdfUrl = link.dataset.previewUrl;
const title = link.dataset.previewTitle || 'Preview Slide';
previewTitle.textContent = title;
previewDesc.textContent = 'Cocok untuk preview cepat sebelum membuka halaman penuh.';
previewFrame.src = `${pdfUrl}#view=FitH`;
previewOpen.href = pdfUrl;
previewDownload.href = pdfUrl;
previewSection.classList.remove('is-hidden');
previewSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
});
});
</script>
</body>
</html>