EARTHQUAKE
Follow these steps in order. Stay calm.
Not Checked
Complete all items to reach 100%.
Blue = Your position · Green = Exits · Orange = Shortest safe route (BFS algorithm)
Standard precautions advised. Monitor official channels. Ensure you know evacuation routes. Keep emergency kit accessible.
SafeCampus can work without internet using Service Workers, enabling emergency access even during network outages.
1. Register Service Worker
On first load, register a service worker that intercepts all network requests and caches critical assets.
2. Cache Emergency Assets
Cache the full HTML, CSS, JavaScript, disaster data JSON, and campus map SVG during installation phase.
3. Serve from Cache When Offline
When network fails, service worker serves cached resources instantly — all emergency features remain functional.
4. Background Sync on Reconnect
When connectivity restores, sync preparedness scores and alert logs with the central server automatically.
Complete 80%+ preparedness checklist and enter your name to unlock.
🚨 Emergency WhatsApp Alert
Send an instant SOS message to campus emergency coordinator
// Select a disaster to generate JSON output...