Nra commited on
Commit
24eb35e
·
verified ·
1 Parent(s): 100b71c

Create FA2_GEO_CH_05.html

Browse files
Files changed (1) hide show
  1. data/FA2_GEO_CH_05.html +460 -0
data/FA2_GEO_CH_05.html ADDED
@@ -0,0 +1,460 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Disaster Management Presentation</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap" rel="stylesheet">
9
+ <style>
10
+ body {
11
+ font-family: 'Inter', sans-serif;
12
+ margin: 0;
13
+ overflow: hidden; /* Prevent body scroll */
14
+ }
15
+
16
+ .slide {
17
+ /* Position all slides on top of each other */
18
+ position: absolute;
19
+ top: 0;
20
+ left: 0;
21
+ height: 100vh;
22
+ width: 100vw;
23
+ display: flex; /* Keep display flex for content centering */
24
+ flex-direction: column;
25
+ justify-content: center;
26
+ align-items: center;
27
+ padding: 2rem;
28
+ text-align: left;
29
+ background-color: #f8fafc; /* Slate 50 */
30
+ color: #1e293b; /* Slate 800 */
31
+
32
+ /* Add the transition for opacity */
33
+ opacity: 0;
34
+ transition: opacity 0.6s ease-in-out;
35
+ pointer-events: none; /* Disable interaction when hidden */
36
+ }
37
+
38
+ /* Active class for the current visible slide */
39
+ .slide.active {
40
+ opacity: 1;
41
+ pointer-events: auto; /* Enable interaction when visible */
42
+ }
43
+
44
+ /* Fixed the slide content to allow scrolling on smaller screens */
45
+ .slide-content {
46
+ max-width: 1000px;
47
+ width: 90%;
48
+ background: white;
49
+ padding: 2.5rem;
50
+ border-radius: 1.5rem;
51
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
52
+ min-height: 80%;
53
+ overflow-y: auto;
54
+ /* Ensure content is always visible */
55
+ }
56
+
57
+ .slide h2 {
58
+ font-size: 2.5rem;
59
+ font-weight: 800;
60
+ color: #0f172a; /* Slate 900 */
61
+ margin-bottom: 1rem;
62
+ }
63
+ .slide h3 {
64
+ font-size: 1.5rem;
65
+ font-weight: 700;
66
+ color: #334155; /* Slate 700 */
67
+ margin-top: 1rem;
68
+ }
69
+ .nav-button {
70
+ position: fixed;
71
+ bottom: 2rem;
72
+ right: 2rem;
73
+ padding: 0.75rem 1.5rem;
74
+ font-size: 1rem;
75
+ font-weight: 600;
76
+ cursor: pointer;
77
+ border: none;
78
+ border-radius: 9999px;
79
+ transition: all 0.2s ease;
80
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
81
+ z-index: 100; /* Ensure buttons are above slides */
82
+ }
83
+ #prevButton {
84
+ right: 10rem;
85
+ background-color: #94a3b8; /* Slate 400 */
86
+ color: white;
87
+ }
88
+ #nextButton {
89
+ background-color: #ef4444; /* Red 500 */
90
+ color: white;
91
+ }
92
+ #prevButton:hover:not(:disabled), #nextButton:hover:not(:disabled) {
93
+ transform: translateY(-2px);
94
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
95
+ }
96
+ #prevButton:disabled {
97
+ opacity: 0.5;
98
+ cursor: not-allowed;
99
+ }
100
+ .table-style {
101
+ width: 100%;
102
+ border-collapse: collapse;
103
+ margin-top: 1rem;
104
+ }
105
+ .table-style th, .table-style td {
106
+ border: 1px solid #e2e8f0;
107
+ padding: 0.75rem;
108
+ text-align: left;
109
+ }
110
+ .table-style th {
111
+ background-color: #f1f5f9; /* Slate 100 */
112
+ font-weight: 700;
113
+ color: #1e293b;
114
+ }
115
+
116
+ /* Mobile Adjustments */
117
+ @media (max-width: 768px) {
118
+ .slide-content {
119
+ padding: 1.5rem;
120
+ }
121
+ .slide h2 {
122
+ font-size: 1.8rem;
123
+ text-align: center;
124
+ }
125
+ .slide h3 {
126
+ font-size: 1.2rem;
127
+ }
128
+ .nav-button {
129
+ bottom: 1rem;
130
+ padding: 0.5rem 1rem;
131
+ }
132
+ #prevButton {
133
+ right: 7rem;
134
+ }
135
+ }
136
+ </style>
137
+ </head>
138
+ <body>
139
+
140
+ <!-- Slide Container -->
141
+ <div id="presentation-container">
142
+
143
+ <!-- Slide 1: Title Slide -->
144
+ <div class="slide" id="slide-1">
145
+ <div class="slide-content text-center flex flex-col justify-center items-center">
146
+ <h1 class="text-6xl font-extrabold text-red-600 mb-4">Disaster Management</h1>
147
+ <h2 class="text-4xl text-gray-700 mb-8">Understanding Natural and Man-Made Crises</h2>
148
+ <p class="text-2xl mt-8">Nature, Classification, and Impact</p>
149
+ <p class="text-xl mt-4 text-gray-500">Presenter: [Your Name/Team Name]</p>
150
+ </div>
151
+ </div>
152
+
153
+ <!-- Slide 2: Defining and Core Impact -->
154
+ <div class="slide" id="slide-2">
155
+ <div class="slide-content">
156
+ <h2>What is a Disaster?</h2>
157
+ <h3 class="text-red-500">1.1. Core Definition:</h3>
158
+ <ul class="list-disc ml-8 text-lg space-y-2">
159
+ <li>An unexpected event causing significant physical damage or destruction.</li>
160
+ <li>Impacts life, property, and the environment.</li>
161
+ <li>Can be sudden (earthquakes) or slow (droughts).</li>
162
+ <li>Causes a drastic change in the affected environment.</li>
163
+ </ul>
164
+ <h3 class="mt-6 text-red-500">1.2. Long-Term Consequences:</h3>
165
+ <ul class="list-disc ml-8 text-lg space-y-2">
166
+ <li>Societal, Economic, and Environmental devastation.</li>
167
+ <li><strong class="text-red-600">Context:</strong> Underdeveloped countries suffer more severe consequences due to inadequate management systems.</li>
168
+ </ul>
169
+ </div>
170
+ </div>
171
+
172
+ <!-- Slide 3: Primary Classification: Natural vs. Man-Made -->
173
+ <div class="slide" id="slide-3">
174
+ <div class="slide-content">
175
+ <h2>Categorizing Disasters</h2>
176
+ <h3 class="text-red-500 mb-4">Focus: Comparison Table (Natural vs. Man-made)</h3>
177
+ <table class="table-style">
178
+ <thead>
179
+ <tr>
180
+ <th>Feature</th>
181
+ <th>Natural Disasters</th>
182
+ <th>Man-made Disasters</th>
183
+ </tr>
184
+ </thead>
185
+ <tbody>
186
+ <tr>
187
+ <td><strong>Caused by</strong></td>
188
+ <td>Natural factors</td>
189
+ <td>Human error, carelessness, or intent</td>
190
+ </tr>
191
+ <tr>
192
+ <td><strong>Scale of Loss</strong></td>
193
+ <td>Large scale/huge devastation</td>
194
+ <td>Less/localized, but can be high magnitude</td>
195
+ </tr>
196
+ <tr>
197
+ <td><strong>Signals</strong></td>
198
+ <td>Occurs suddenly (rarely signals)</td>
199
+ <td>Sometimes provides signals</td>
200
+ </tr>
201
+ </tbody>
202
+ </table>
203
+ <h3 class="mt-6 text-red-500">1.3. Hybrid Disasters (The Third Category):</h3>
204
+ <p class="text-lg mt-2">Result from a combination of human action and natural forces.</p>
205
+ <p class="text-lg italic text-gray-600">Example: Deforestation (human error) leading to landslides during heavy rainfall (natural event).</p>
206
+ </div>
207
+ </div>
208
+
209
+ <!-- Slide 4: Classification and Common Effects -->
210
+ <div class="slide" id="slide-4">
211
+ <div class="slide-content">
212
+ <h2>Broad Types and Universal Impacts</h2>
213
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
214
+ <div>
215
+ <h3 class="text-red-500">2.1. Classification List:</h3>
216
+ <div class="flex">
217
+ <ul class="list-disc ml-6 mr-4 text-base">
218
+ <li class="font-bold">Natural:</li>
219
+ <li>Earthquakes, Volcanic activity, Tsunamis</li>
220
+ <li>Landslides, Avalanches, Floods, Droughts</li>
221
+ <li>Wildfires, Cyclones/Storms, Biological disasters.</li>
222
+ </ul>
223
+ <ul class="list-disc ml-6 text-base">
224
+ <li class="font-bold">Man-made:</li>
225
+ <li>Wars, Terrorism, Cyber attacks, Transport accidents</li>
226
+ <li>Industrial accidents, Pollution/Water contamination</li>
227
+ <li>Fires, Nuclear accidents, WMD.</li>
228
+ </ul>
229
+ </div>
230
+ </div>
231
+ <div>
232
+ <h3 class="text-red-500">2.2. Common Effects (High-Impact):</h3>
233
+ <ul class="list-disc ml-6 text-base space-y-2">
234
+ <li>Loss of life and injury (humans and animals).</li>
235
+ <li>Massive damage to property and critical infrastructure (dams, bridges, power grids).</li>
236
+ <li>Environmental degradation.</li>
237
+ <li>Loss of livelihood and work.</li>
238
+ <li>Psychological damage and trauma.</li>
239
+ <li>Outbreak of disease/epidemics.</li>
240
+ </ul>
241
+ </div>
242
+ </div>
243
+ </div>
244
+ </div>
245
+
246
+ <!-- Slide 5: Natural Disasters Focus: Earthquakes -->
247
+ <div class="slide" id="slide-5">
248
+ <div class="slide-content">
249
+ <h2>Earthquakes: Crustal Movement and Measurement</h2>
250
+ <h3 class="text-red-500">3.1. Definition and Cause:</h3>
251
+ <p class="text-lg">Sudden, violent movement of the Earth's crust caused by tectonic plates colliding as they float on the semi-liquid mantle. </p>
252
+ <h3 class="mt-4 text-red-500">Key Terminology:</h3>
253
+ <ul class="list-disc ml-8 text-lg">
254
+ <li><strong>Seismology:</strong> The study of earthquakes.</li>
255
+ <li><strong>Seismographs:</strong> Instruments used to record shocks.</li>
256
+ <li><strong>Richter Scale:</strong> Measures the intensity of the earthquake.</li>
257
+ <li><strong>Epicentre:</strong> Point on the surface where effects are felt most strongly.</li>
258
+ </ul>
259
+ <p class="mt-4 text-lg"><strong>Effects:</strong> Infrastructure damage, secondary disasters (landslides, tsunamis). Poorly constructed structures are most vulnerable.</p>
260
+ <p class="mt-2 italic text-gray-600">Example: Mexico 7.1 magnitude quake (2017) – over 200 deaths, extensive building damage.</p>
261
+ </div>
262
+ </div>
263
+
264
+ <!-- Slide 6: Natural Disasters Focus: Floods -->
265
+ <div class="slide" id="slide-6">
266
+ <div class="slide-content">
267
+ <h2>Floods: Causes, Consequences, and Case Studies</h2>
268
+ <h3 class="text-red-500">3.2. Definition & Causes:</h3>
269
+ <p class="text-lg">A sudden influx of water submerging land, endangering life and property.</p>
270
+ <ul class="list-disc ml-8 text-lg">
271
+ <li><strong>Riverine Floods:</strong> Overflowing rivers during monsoon/rainy seasons (most common).</li>
272
+ <li><strong>Flash Floods:</strong> Sudden, heavy downpours; dam breach; or river course change.</li>
273
+ </ul>
274
+ <h3 class="mt-4 text-red-500">Effects and Examples:</h3>
275
+ <p class="text-lg">Forced displacement, topsoil erosion, crop failure, property loss, death.</p>
276
+ <ul class="list-disc ml-8 text-base mt-2">
277
+ <li><strong>Mumbai (2017):</strong> Massive disruption, transport shut down, 14 deaths.</li>
278
+ <li><strong>Kerala (2018):</strong> Severe monsoon rains; 5M+ affected, $\sim$440 deaths.</li>
279
+ <li><strong>Assam (2020):</strong> Brahmaputra River levels rose; 5.5M+ affected, submerged Kaziranga National Park.</li>
280
+ </ul>
281
+ </div>
282
+ </div>
283
+
284
+ <!-- Slide 7: Natural Disasters Focus: Cyclones & Droughts -->
285
+ <div class="slide" id="slide-7">
286
+ <div class="slide-content">
287
+ <h2>The Extremes of Weather: Cyclones and Droughts</h2>
288
+ <h3 class="text-red-500">3.3. Cyclones (Storms):</h3>
289
+ <ul class="list-disc ml-8 text-lg space-y-1">
290
+ <li><strong>Definition:</strong> Low-pressure areas over warm temperate/tropical ocean waters.</li>
291
+ <li><strong>Characteristics:</strong> Heavy rain and powerful winds (up to 300 km/h).</li>
292
+ <li><strong>Associated Threat:</strong> Storm tides (surges during high tide) cause enormous damage to coastal regions.</li>
293
+ </ul>
294
+ <h3 class="mt-6 text-red-500">3.4. Droughts (Water Scarcity):</h3>
295
+ <ul class="list-disc ml-8 text-lg space-y-1">
296
+ <li><strong>Definition:</strong> Insufficient rainfall over a long period.</li>
297
+ <li><strong>Causes:</strong> Lack of rain, deforestation, misuse of groundwater, unscientific agriculture.</li>
298
+ <li><strong>Effects:</strong> Water table fall, crop failure, scarcity of food/fodder, migration, and homelessness.</li>
299
+ </ul>
300
+ <p class="mt-2 italic text-gray-600">Example: European Drought (2022) – Po, Rhine, and Danube rivers at very low levels.</p>
301
+ </div>
302
+ </div>
303
+
304
+ <!-- Slide 8: Man-Made Disasters Focus: Fire and Nuclear -->
305
+ <div class="slide" id="slide-8">
306
+ <div class="slide-content">
307
+ <h2>Man-Made Calamities: Accidents and Weapons</h2>
308
+ <h3 class="text-red-500">4.1. Fires:</h3>
309
+ <ul class="list-disc ml-8 text-lg space-y-1">
310
+ <li><strong>Common Causes:</strong> Faulty electrical wiring, gas leaks, carelessness (matches/cigarettes).</li>
311
+ <li><strong>Vulnerability:</strong> High risk in crowded places with poor exit points.</li>
312
+ <li>Example: Uphaar cinema hall tragedy, New Delhi (1997).</li>
313
+ </ul>
314
+ <h3 class="mt-6 text-red-500">4.2. Nuclear Disasters:</h3>
315
+ <ul class="list-disc ml-8 text-lg space-y-1">
316
+ <li><strong>Definition:</strong> Caused by the use or accidental release of nuclear materials.</li>
317
+ <li><strong>The Silent Killer:</strong> Radioactivity causes serious, long-term illnesses (e.g., cancer).</li>
318
+ </ul>
319
+ <p class="mt-2 text-lg"><strong>Examples:</strong></p>
320
+ <ul class="list-disc ml-12 text-base">
321
+ <li>Intentional: Hiroshima & Nagasaki bombings (WWII).</li>
322
+ <li>Accidental: Chernobyl (1986) – Plant accident, radiation spread, $\sim$12,000 deaths.</li>
323
+ </ul>
324
+ </div>
325
+ </div>
326
+
327
+ <!-- Slide 9: Man-Made Disasters Focus: Chemical and Biological -->
328
+ <div class="slide" id="slide-9">
329
+ <div class="slide-content">
330
+ <h2>Chemical and Biological Disasters</h2>
331
+ <h3 class="text-red-500">4.3. Definition and Effects:</h3>
332
+ <ul class="list-disc ml-8 text-lg space-y-1">
333
+ <li><strong>Definition:</strong> Accidental release of toxic chemicals or gases from industrial establishments.</li>
334
+ <li><strong>Effects:</strong> Harm to humans (immediate and long-term), devastation. Effects can extend to several future generations.</li>
335
+ </ul>
336
+ <h3 class="mt-6 text-red-500">Historical Case Study: The Bhopal Gas Tragedy (1984)</h3>
337
+ <ul class="list-disc ml-8 text-lg space-y-1">
338
+ <li><strong>Cause:</strong> Accidental leakage of highly toxic Methyl Isocyanate (MIC) gas.</li>
339
+ <li><strong>Source:</strong> Union Carbide factory in Madhya Pradesh.</li>
340
+ <li><strong>Impact:</strong> $\sim$2,500 people killed.</li>
341
+ </ul>
342
+ <h3 class="mt-6 text-red-600 font-bold">4.4. The Critical Takeaway:</h3>
343
+ <p class="text-lg italic">Need for strict safety protocols and industry oversight.</p>
344
+ </div>
345
+ </div>
346
+
347
+ <!-- Slide 10: Case Study: India's Disaster Vulnerability Profile -->
348
+ <div class="slide" id="slide-10">
349
+ <div class="slide-content">
350
+ <h2>India: A Highly Disaster-Prone Nation</h2>
351
+ <h3 class="text-red-500 mb-4">5.1. Statistical Overview (High-Risk Profile):</h3>
352
+ <table class="table-style">
353
+ <thead>
354
+ <tr>
355
+ <th>Hazard</th>
356
+ <th>Percentage of Land Area Vulnerable</th>
357
+ </tr>
358
+ </thead>
359
+ <tbody>
360
+ <tr><td><strong>Earthquakes</strong></td><td>$\sim$65%</td></tr>
361
+ <tr><td><strong>Floods</strong></td><td>12%</td></tr>
362
+ <tr><td><strong>Cyclones</strong></td><td>8%</td></tr>
363
+ <tr><td><strong>Drought</strong></td><td>70%</td></tr>
364
+ </tbody>
365
+ </table>
366
+ <p class="mt-6 text-lg font-semibold text-gray-700">Context: Floods and droughts often occur almost every year, leading to epidemics and widespread human suffering.</p>
367
+ </div>
368
+ </div>
369
+
370
+ <!-- Slide 11: India's Geographic Vulnerabilities in Detail -->
371
+ <div class="slide" id="slide-11">
372
+ <div class="slide-content">
373
+ <h2>Regional Risks Across India</h2>
374
+ <h3 class="text-red-500">5.2. Geographic Analysis:</h3>
375
+ <ul class="list-disc ml-8 text-lg space-y-3">
376
+ <li><strong>Earthquakes:</strong> <strong class="text-red-600">Zone V (Very High Risk)</strong> is the entire Himalayan belt.</li>
377
+ <li><strong>Floods:</strong> Caused by the south-west monsoon, affecting flood plains of the Brahmaputra, Ganga, Yamuna, etc.</li>
378
+ <li><strong>Cyclones:</strong> Vulnerable coastline (7,516.6 km) from Bay of Bengal and Arabian Sea. Most vulnerable states: West Bengal, Odisha, Andhra Pradesh, Tamil Nadu.</li>
379
+ <li><strong>Droughts:</strong> $\sim$30% of land area is drought-prone. Worst affected: Rajasthan, Gujarat, Maharashtra, Karnataka, and Odisha.</li>
380
+ </ul>
381
+ </div>
382
+ </div>
383
+
384
+ <!-- Slide 12: Conclusion: Mitigation and Preparedness -->
385
+ <div class="slide" id="slide-12">
386
+ <div class="slide-content">
387
+ <h2>Mitigating Disasters: Awareness and Action</h2>
388
+ <h3 class="text-red-600 font-bold text-xl">Critical Takeaway:</h3>
389
+ <p class="text-lg">Disasters, whether natural or man-made, have devastating potential with lasting effects.</p>
390
+ <h3 class="mt-6 text-red-600 font-bold text-xl">The Solution:</h3>
391
+ <p class="text-lg">The paramount importance of <strong class="text-red-800">awareness and training</strong> in preventive measures.</p>
392
+ <h3 class="mt-6 text-red-500">Three Pillars of Mitigation:</h3>
393
+ <ul class="list-decimal ml-8 text-lg space-y-2">
394
+ <li><strong>Preparation:</strong> Developing robust infrastructure and early warning systems.</li>
395
+ <li><strong>Prevention:</strong> Addressing human factors (e.g., proper construction, avoiding deforestation).</li>
396
+ <li><strong>Response:</strong> Training citizens and institutions for effective post-disaster action.</li>
397
+ </ul>
398
+ <p class="mt-6 text-xl font-bold text-red-700 text-center">Proactive disaster management is essential for long-term societal resilience.</p>
399
+ </div>
400
+ </div>
401
+
402
+ <!-- Slide 13: Q&A / References -->
403
+ <div class="slide" id="slide-13">
404
+ <div class="slide-content text-center flex flex-col justify-center items-center">
405
+ <h2 class="text-4xl text-green-700 mb-8">Questions & Further Discussion</h2>
406
+ <div class="w-full max-w-sm mx-auto text-left">
407
+ <h3 class="text-2xl mt-4">References:</h3>
408
+ <p class="text-lg italic text-gray-600">[Document Source]</p>
409
+ <h3 class="text-2xl mt-8">Contact:</h3>
410
+ <p class="text-lg">[Your Email/Information]</p>
411
+ </div>
412
+ </div>
413
+ </div>
414
+
415
+ </div>
416
+
417
+ <!-- Navigation Buttons -->
418
+ <button class="nav-button" id="prevButton" disabled>Previous</button>
419
+ <button class="nav-button" id="nextButton">Next</button>
420
+
421
+ <script>
422
+ let currentSlideIndex = 0;
423
+ const slides = document.querySelectorAll('.slide');
424
+ const totalSlides = slides.length;
425
+ const prevButton = document.getElementById('prevButton');
426
+ const nextButton = document.getElementById('nextButton');
427
+
428
+ function updateSlideDisplay() {
429
+ slides.forEach((slide, index) => {
430
+ // Use the 'active' class to control visibility and trigger the CSS opacity transition
431
+ if (index === currentSlideIndex) {
432
+ slide.classList.add('active');
433
+ } else {
434
+ slide.classList.remove('active');
435
+ }
436
+ });
437
+ prevButton.disabled = currentSlideIndex === 0;
438
+ nextButton.disabled = currentSlideIndex === totalSlides - 1;
439
+ }
440
+
441
+ prevButton.addEventListener('click', () => {
442
+ if (currentSlideIndex > 0) {
443
+ currentSlideIndex--;
444
+ updateSlideDisplay();
445
+ }
446
+ });
447
+
448
+ nextButton.addEventListener('click', () => {
449
+ if (currentSlideIndex < totalSlides - 1) {
450
+ currentSlideIndex++;
451
+ updateSlideDisplay();
452
+ }
453
+ });
454
+
455
+ // Initialize the presentation on load
456
+ // Set the first slide as active
457
+ updateSlideDisplay();
458
+ </script>
459
+ </body>
460
+ </html>