-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpr.html
More file actions
520 lines (453 loc) · 19.7 KB
/
cpr.html
File metadata and controls
520 lines (453 loc) · 19.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title data-i18n="cpr.title">Cardiopulmonary Resuscitation (CPR)</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="./assets/language-switcher.css">
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f0f7ff;
color: #333;
line-height: 1.6;
padding: 15px;
max-width: 100%;
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container {
background: white;
border-radius: 15px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
overflow: hidden;
width: 100%;
max-width: 500px;
}
header {
background: #e31837;
color: white;
text-align: center;
padding: 25px 15px;
position: relative;
}
.back-button {
position: absolute;
left: 15px;
top: 25px;
color: white;
font-size: 20px;
cursor: pointer;
text-decoration: none;
}
.logo {
font-size: 40px;
margin-bottom: 10px;
}
h1 {
font-size: 24px;
margin-bottom: 10px;
}
.subtitle {
font-size: 16px;
opacity: 0.9;
}
.content {
padding: 25px 20px;
}
.section {
margin-bottom: 30px;
}
.section-title {
font-size: 20px;
color: #e31837;
margin-bottom: 15px;
padding-bottom: 5px;
border-bottom: 2px solid #f0f0f0;
display: flex;
align-items: center;
}
.section-title i {
margin-right: 10px;
}
.steps {
counter-reset: step-counter;
}
.step {
margin-bottom: 20px;
padding: 15px;
background: #f9f9f9;
border-radius: 8px;
position: relative;
border: 2px solid #f9f9f9;
}
.step-number {
background: #e31837;
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: bold;
margin-right: 10px;
position: absolute;
left: 15px;
top: 15px;
}
.step-content {
margin-left: 45px;
}
.step-title {
font-weight: 600;
font-size: 18px;
margin-bottom: 10px;
color: #e31837;
}
.step-details {
margin-top: 10px;
}
.step-details ul {
padding-left: 20px;
margin-top: 5px;
}
.step-details li {
margin-bottom: 5px;
}
.warning {
background: #fff4f4;
border-left: 4px solid #e31837;
padding: 15px;
margin: 20px 0;
border-radius: 4px;
}
.warning-title {
font-weight: bold;
margin-bottom: 5px;
display: flex;
align-items: center;
}
.warning-title i {
margin-right: 8px;
color: #e31837;
}
.visual-guide {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin: 20px 0;
justify-content: center;
}
.visual-item {
background: #f9f9f9;
border-radius: 10px;
padding: 15px;
flex: 1 1 calc(50% - 15px);
min-width: 150px;
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.visual-icon {
font-size: 40px;
color: #e31837;
margin-bottom: 10px;
}
.visual-title {
font-weight: 600;
margin-bottom: 5px;
font-size: 16px;
}
.visual-desc {
font-size: 14px;
color: #666;
}
.rhythm-guide {
background: #f0f9ff;
border-radius: 10px;
padding: 15px;
margin: 20px 0;
text-align: center;
}
.rhythm-title {
font-weight: 600;
color: #e31837;
margin-bottom: 10px;
}
.rhythm-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
}
.rhythm-item {
background: white;
border-radius: 8px;
padding: 10px;
flex: 1;
min-width: 120px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.rhythm-song {
font-weight: 600;
margin-bottom: 5px;
}
.rhythm-bpm {
font-size: 14px;
color: #666;
}
.action-buttons {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 25px;
}
.action-button {
display: flex;
align-items: center;
justify-content: center;
padding: 15px;
background: #e31837;
color: white;
border-radius: 8px;
text-align: center;
font-weight: 600;
text-decoration: none;
transition: background 0.3s;
}
.action-button:hover {
background: #c0142d;
cursor: pointer;
}
.action-button i {
margin-right: 8px;
}
footer {
text-align: center;
padding: 20px;
background: #333;
color: white;
font-size: 14px;
border-radius: 0 0 15px 15px;
}
@media (max-width: 480px) {
.visual-item {
flex: 1 1 100%;
}
.rhythm-item {
flex: 1 1 calc(50% - 10px);
}
h1 {
font-size: 22px;
}
.step-content {
margin-left: 40px;
}
}
</style>
</head>
<body>
<!-- Language Switcher -->
<div class="language-switcher">
<button class="lang-btn" data-lang="ru" aria-label="Русский"></button>
<button class="lang-btn" data-lang="en" aria-label="English"></button>
<button class="lang-btn" data-lang="th" aria-label="ไทย"></button>
<button class="lang-btn" data-lang="vi" aria-label="Tiếng Việt"></button>
</div>
<div class="container">
<header>
<a href="emergency.html" class="back-button" aria-label="Back to emergency page">
<i class="fas fa-arrow-left"></i>
</a>
<div class="logo">
<i class="fas fa-heartbeat"></i>
</div>
<h1 data-i18n="cpr.header">Cardiopulmonary Resuscitation</h1>
<p class="subtitle" data-i18n="cpr.subtitle">CPR Instructions for Adults</p>
</header>
<div class="content">
<div class="section">
<h2 class="section-title"><i class="fas fa-info-circle"></i> <span data-i18n="cpr.when.title">When is CPR Needed?</span></h2>
<p data-i18n="cpr.when.desc">Cardiopulmonary resuscitation is required when a person is <strong>unconscious and not breathing</strong> or breathing abnormally (rare, gasping breaths).</p>
<div class="warning">
<div class="warning-title"><i class="fas fa-exclamation-triangle"></i> <span data-i18n="cpr.when.important">Important!</span></div>
<p data-i18n="cpr.when.warning">Before starting CPR, make sure the victim is actually not breathing. Do not start CPR if the person is conscious or breathing normally.</p>
</div>
</div>
<div class="section">
<h2 class="section-title"><i class="fas fa-list-ol"></i> <span data-i18n="cpr.algorithm.title">Action Algorithm</span></h2>
<div class="steps">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<div class="step-title">Assess Safety</div>
<div class="step-details">
<p>Make sure you and the victim are not in danger.</p>
</div>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<div class="step-title" data-i18n="cpr.algorithm.step2.title">Check Response</div>
<div class="step-details">
<p data-i18n="cpr.algorithm.step2.desc1">Shake the victim by the shoulders.</p>
<p data-i18n="cpr.algorithm.step2.desc2">Ask: "Are you okay?"</p>
</div>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<div class="step-title" data-i18n="cpr.algorithm.step3.title">Call for Help</div>
<div class="step-details">
<p data-i18n="cpr.algorithm.step3.desc1">Call emergency services (103 or 112) or ask someone to do it.</p>
<p data-i18n="cpr.algorithm.step3.desc2">If possible, ask someone to bring an AED (automated external defibrillator).</p>
</div>
</div>
</div>
<div class="step">
<div class="step-number">4</div>
<div class="step-content">
<div class="step-title" data-i18n="cpr.algorithm.step4.title">Check Breathing</div>
<div class="step-details">
<p data-i18n="cpr.algorithm.step4.desc1">Tilt the victim's head back by lifting the chin.</p>
<p data-i18n="cpr.algorithm.step4.desc2">For 10 seconds, listen for breathing and watch for chest movement.</p>
</div>
</div>
</div>
<div class="step">
<div class="step-number">5</div>
<div class="step-content">
<div class="step-title" data-i18n="cpr.algorithm.step5.title">Start Compressions</div>
<div class="step-details">
<p data-i18n="cpr.algorithm.step5.desc1">Kneel beside the victim.</p>
<p data-i18n="cpr.algorithm.step5.desc2">Place the heel of your hand on the center of the chest (on the lower half of the sternum).</p>
<p data-i18n="cpr.algorithm.step5.desc3">Place your other hand on top and interlock your fingers.</p>
<p data-i18n="cpr.algorithm.step5.desc4">Straighten your arms and press with your whole body, not just your arms.</p>
</div>
</div>
</div>
<div class="step">
<div class="step-number">6</div>
<div class="step-content">
<div class="step-title" data-i18n="cpr.algorithm.step6.title">Give Rescue Breaths (if trained)</div>
<div class="step-details">
<p data-i18n="cpr.algorithm.step6.desc">After 30 compressions, give 2 breaths:</p>
<ul>
<li data-i18n="cpr.algorithm.step6.detail1">Pinch the victim's nose</li>
<li data-i18n="cpr.algorithm.step6.detail2">Make a tight seal over their mouth with your lips</li>
<li data-i18n="cpr.algorithm.step6.detail3">Give a steady breath for 1 second</li>
<li data-i18n="cpr.algorithm.step6.detail4">Watch for the chest to rise</li>
</ul>
</div>
</div>
</div>
<div class="step">
<div class="step-number">7</div>
<div class="step-content">
<div class="step-title" data-i18n="cpr.algorithm.step7.title">Continue</div>
<div class="step-details">
<p data-i18n="cpr.algorithm.step7.desc">Continue the cycle of 30 compressions + 2 breaths until help arrives.</p>
</div>
</div>
</div>
</div>
</div>
<div class="section">
<h2 class="section-title"><i class="fas fa-ruler-combined"></i> <span data-i18n="cpr.technique.title">Technique</span></h2>
<div class="visual-guide">
<div class="visual-item">
<div class="visual-icon"><i class="fas fa-hand-point-down"></i></div>
<div class="visual-title" data-i18n="cpr.technique.depth.title">Compression Depth</div>
<div class="visual-desc" data-i18n="cpr.technique.depth.desc">5-6 cm for adults</div>
</div>
<div class="visual-item">
<div class="visual-icon"><i class="fas fa-tachometer-alt"></i></div>
<div class="visual-title" data-i18n="cpr.technique.frequency.title">Compression Rate</div>
<div class="visual-desc" data-i18n="cpr.technique.frequency.desc">100-120 per minute</div>
</div>
<div class="visual-item">
<div class="visual-icon"><i class="fas fa-undo"></i></div>
<div class="visual-title" data-i18n="cpr.technique.release.title">Full Recoil</div>
<div class="visual-desc" data-i18n="cpr.technique.release.desc">After each compression, allow the chest to return to its normal position</div>
</div>
<div class="visual-item">
<div class="visual-icon"><i class="fas fa-hands"></i></div>
<div class="visual-title" data-i18n="cpr.technique.position.title">Hand Position</div>
<div class="visual-desc" data-i18n="cpr.technique.position.desc">Arms straight, perpendicular to the chest</div>
</div>
</div>
<div class="rhythm-guide">
<div class="rhythm-title" data-i18n="cpr.rhythm.title">A rhythm of 100-120 compressions per minute matches these songs:</div>
<div class="rhythm-list">
<div class="rhythm-item">
<div class="rhythm-song">Stayin' Alive</div>
<div class="rhythm-bpm">Bee Gees (103 BPM)</div>
</div>
<div class="rhythm-item">
<div class="rhythm-song">Crazy in Love</div>
<div class="rhythm-bpm">Beyoncé (99 BPM)</div>
</div>
<div class="rhythm-item">
<div class="rhythm-song">Hard to Forget</div>
<div class="rhythm-bpm">Sam Hunt (108 BPM)</div>
</div>
</div>
</div>
</div>
<div class="section">
<h2 class="section-title"><i class="fas fa-exclamation-circle"></i> <span data-i18n="cpr.important.title">Important Points</span></h2>
<div class="warning">
<div class="warning-title"><i class="fas fa-ban"></i> <span data-i18n="cpr.important.dont">Do NOT perform CPR if:</span></div>
<p data-i18n="cpr.important.dont.desc">The victim is conscious, breathing normally, or has a pulse.</p>
</div>
<div class="warning">
<div class="warning-title"><i class="fas fa-heart"></i> <span data-i18n="cpr.important.only">Compressions Only:</span></div>
<p data-i18n="cpr.important.only.desc">If you are not trained or not willing to give rescue breaths, do only continuous chest compressions. This is better than nothing!</p>
</div>
<div class="warning">
<div class="warning-title"><i class="fas fa-user-md"></i> When to Stop:</div>
<p>Medical help arrives, signs of life appear, or the rescuer is completely exhausted.</p>
</div>
</div>
<div class="action-buttons">
<a href="https://www.youtube.com/results?search_query=CPR+training" class="action-button" target="_blank">
<i class="fab fa-youtube"></i> CPR Video Instructions
</a>
</div>
</div>
<footer>
<p data-i18n="cpr.footer.update">Regularly update your first aid knowledge</p>
<p data-i18n="cpr.footer.training">Training is available at your local Red Cross chapter</p>
<p data-i18n="cpr.footer.copyright">© 2026 Kirill Zhivi Horosho</p>
</footer>
</div>
<script>
// Animation for elements appearing on page load
document.addEventListener('DOMContentLoaded', function() {
const elements = document.querySelectorAll('.step, .visual-item, .warning');
elements.forEach((element, index) => {
element.style.opacity = '0';
element.style.transform = 'translateY(20px)';
element.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
setTimeout(() => {
element.style.opacity = '1';
element.style.transform = 'translateY(0)';
}, 100 + (index * 100));
});
});
</script>
<script src="./assets/translations.js"></script>
<script src="./assets/language-switcher.js"></script>
</body>
</html>