تطبيق مجاني بالدارجة كيعلمك الإنعاش القلبي (CPR) خطوة بخطوة. بلا تسجيل، بلا إنترنت.
# تعلّم تنقذ حياة — CPR Trainer in Darija
A free, browser-based CPR (Cardiopulmonary Resuscitation) training app in **Darija (Moroccan Arabic)**. Teaches adult hands-only CPR through three interactive modules.
## Why Darija?
CPR training resources in Morocco are almost exclusively in French or Modern Standard Arabic. Most Moroccans speak Darija as their primary language. This app makes life-saving CPR knowledge accessible to everyone — including low-literacy users.
## Features
- **تعلّم (Learn)** — 6-step illustrated CPR guide with tips and warnings
- **تمرّن (Practice)** — Real-time compression rhythm trainer with BPM feedback and metronome
- **اختبر (Quiz)** — 10-question knowledge quiz with instant Darija explanations
## Screenshots
| تعلّم (Learn) | تمرّن (Practice) | اختبر (Quiz) |
|---|---|---|
| _screenshot_ | _screenshot_ | _screenshot_ |
## How to Run
1. Download or clone this repository
2. Open `index.html` in any modern browser
3. No internet required after the first load (fonts load from Google Fonts on first visit)
```bash
git clone
github.com
cd cpr-trainer-darija
open index.html # macOS
# or double-click index.html on Windows/Linux
```
## Technical Details
- Single HTML file — all CSS and JS inline
- No framework, no build step, no backend
- Works offline after initial load
- Mobile-first responsive (320px – 1440px+)
- Full RTL layout (`dir="rtl"`, `lang="ar"`)
- Web Audio API metronome at 110 BPM
- WCAG AA accessibility compliant
## Emergency Numbers in Morocco
- **15** — SAMU (medical emergency)
- **150** — Civil Protection (Wiqaya Madaniya)
- **112** — Universal emergency number
## Disclaimer
> ⚠️ هاد التطبيق غير للتعليم. ما كيعوّضش تكوين معتمد. فحالة طوارئ حقيقية، عيّط ل 15 أولاً.
>
> This app is for educational purposes only. It does not replace certified CPR training. In a real emergency, call 15 first.
## License
MIT © 2026 cpr-trainer-darija contributors