Self-Defense Master is a comprehensive personal safety guide built with HTML5, CSS3, and vanilla JavaScript.
This interactive guide covers essential self-defense principles, practical techniques, common attack scenarios, injury recovery protocols, and the psychology of self-defense. Designed for complete beginners, it provides actionable knowledge to help you stay safe in various situations.
The project requires no frameworks, no backend, no database, and no build tools. It runs directly in a modern web browser.
๐ Explore Self-Defense Master
- ๐ก๏ธ Comprehensive self-defense principles
- ๐ Situational awareness training
- ๐ค Essential defense techniques with visual cards
- ๐ฏ Interactive technique explanations
- ๐จ Emergency guide with vibration feedback
- ๐ฑ Mobile-friendly responsive design
- ๐ญ Multiple scenario-based learning
- ๐ Interactive HP (Health) recovery simulation
- ๐ง Mental game and psychology training
- โก Quick navigation with tab system
- ๐ Smooth animations and transitions
- ๐ Progress tracking with HP bar animation
- ๐จ Modern dark theme with gradient design
- ๐ฑ๏ธ Touch-friendly interface
- ๐ Bottom navigation for easy access
โ ๏ธ Warning signs identification
The app is divided into 5 main sections:
| Section | Content |
|---|---|
| ๐ Basics | Core principles, awareness tips, and prevention strategies |
| ๐ค Techniques | Essential self-defense moves with interactive cards |
| Common attack situations and how to respond | |
| ๐ Recovery | First aid, injury assessment, and HP simulation |
| ๐ง Mental | Psychology, confidence building, and mental preparation |
- Top Navigation - Switch between sections using tabs at the top
- Bottom Navigation - Quick access buttons fixed at bottom of screen
- Emergency Button - Red button in hero section for immediate emergency guide
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SELF-DEFENSE MASTER PRINCIPLES โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ 1. AWARENESS โ
โ โโโ Know what's happening around you โ
โ โ
โ 2. DE-ESCALATION โ
โ โโโ Use words to calm situations โ
โ โ
โ 3. BOUNDARIES โ
โ โโโ Say "NO" or "STOP" firmly โ
โ โ
โ 4. ESCAPE โ
โ โโโ Your goal is to get away safely โ
โ โ
โ 5. LEGAL RIGHTS โ
โ โโโ Know your self-defense laws โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Technique | Target | Description |
|---|---|---|
| ๐ Palm Strike | Nose/Chin | Strike with base of palm |
| ๐ฆต Groin Kick | Groin | Kick upward forcefully |
| ๐ช Elbow Strike | Face/Ribs | Close-range strike |
| ๐ Escape & Run | N/A | Create distance and flee |
- Eyes - Disorient with a poke
- Nose - Causes tears and confusion
- Throat - Disrupts breathing
- Groin - Extremely sensitive area
- Knees - Side kick to disable movement
Action: Twist arm toward attacker's thumb (weakest point)
Strike with free hand
Run to safety
Avoid: Don't pull straight back
Don't freeze in panic
Action: Create distance immediately
Use firm voice: "STOP! BACK AWAY!"
Target vulnerable areas if they continue
Escape
Avoid: Don't turn your back
Don't engage in conversation
Action: Change direction or cross street
Go to crowded, well-lit area
Call someone and speak loudly
Enter a store or public building
Avoid: Don't go home (they'll know where you live)
Don't confront unless necessary
The app includes an interactive HP (Health) recovery simulation:
// HP Status Animation
Initial State: 30% (Low HP - Visual Warning)
After Recovery: 85% (Recovering)- Assess Injuries - Check for bleeding, broken bones, head trauma
- Call for Help - Dial emergency services
- Get to Safety - Move to secure location
- Control Bleeding - Apply direct pressure with clean cloth
- Reduce Swelling - Apply ice packs for 15-20 minutes
- See a Doctor - Professional medical evaluation
- Mental Recovery - Talk to someone you trust
- โ Difficulty breathing
- โ Severe bleeding that won't stop
- โ Loss of consciousness (even briefly)
- โ Confusion, dizziness, or vision problems
- โ Chest or abdominal pain
๐ฏ Stay Calm Under Pressure
โโโ Practice deep breathing daily
๐ฏ Visualize Success
โโโ Mentally rehearse defense scenarios
๐ฏ Develop a "Fighter's Stance"
โโโ Stand with confidence, make eye contact
๐ฏ Learn From Close Calls
โโโ Analyze and improve
๐ฏ Trust Your Instincts
โโโ Your subconscious detects danger early
- โ Walk with purpose and awareness
- โ Practice saying "NO" firmly in the mirror
- โ Take a self-defense class (even online)
- โ Share safety tips with friends and family
- โ Regularly check your environment
- Semantic structure
- Tab navigation system
- Interactive cards
- Responsive layout
- Dark cosmic theme with gradients
- Glowing effects and animations
- Responsive grid system
- Card hover effects
- HP bar animations
- Mobile-first design
- Tab switching functionality
- HP bar animation
- Interactive technique cards
- Emergency button with vibration
- Touch event handling
- Smooth transitions
Self_Defence_Master/
โ
โโโ index.html # Complete Self-Defense Master app
โโโ README.md # Project documentation
The entire application is contained in a single HTML file with embedded CSS and JavaScript.
- Clone the repository:
git clone https://github.com/dhruvpandit46/Self_Defence_Master.git- Navigate into the project:
cd Self_Defence_Master- Open
index.htmlin a modern web browser.
No dependencies. No build process. No server required.
You can also use VS Code Live Server for development.
Self-Defense Master uses standard modern browser APIs.
- โ Google Chrome
- โ Microsoft Edge
- โ Mozilla Firefox
- โ Safari
- โ Mobile browsers
- ๐ Dark Background - Cosmic gradient ( #1a1a2e to #16213e )
- ๐ด Primary Colors - Red (#e74c3c) for emergencies
- ๐ต Accent Colors - Blue (#3498db) for information
- ๐ Success Colors - Green (#2ecc71) for recovery
โ ๏ธ Warning Colors - Yellow (#f39c12) for scenarios- โจ Glassmorphism - Frosted glass effects
- ๐ญ Gradient Text - Animated logo with gradient
- ๐ฑ Mobile-Friendly - Fully responsive design
Handles navigation between sections with smooth transitions.
Simulates HP recovery with visual bar animation.
Shows emergency guide with vibration feedback.
Interactive cards that show technique details on click.
| Feature | Status |
|---|---|
| Self-Defense Principles | โ Complete |
| Situational Awareness | โ Complete |
| Defense Techniques | โ Complete |
| Scenario Learning | โ Complete |
| HP Recovery System | โ Complete |
| Mental Game Training | โ Complete |
| Emergency Guide | โ Complete |
| Mobile Responsive | โ Complete |
| Interactive Cards | โ Complete |
| Animations | โ Complete |
| Touch Support | โ Complete |
| Bottom Navigation | โ Complete |
The game runs entirely inside the browser.
It does not require:
- User accounts
- Backend server
- Database
- Cloud storage
- External APIs
- User tracking
No data is stored or transmitted anywhere.
Possible future enhancements:
- ๐น Video demonstrations of techniques
- ๐ฎ Interactive self-defense quiz
- ๐ Location-based safety tips
- ๐ Daily safety reminders
- ๐ Progress tracking system
- ๐ Achievement badges
- ๐ Audio guides
- ๐ Multiple language support
- ๐ฑ Offline mode (PWA)
- ๐ฏ Real-time risk assessment
- ๐ฅ Community safety tips sharing
- ๐ Self-defense training schedule
- ๐ก Scenario-based simulations
- ๐งช Self-defense technique rating system
Contributions and improvements are welcome!
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature- Make your changes
- Test locally
- Commit your changes:
git commit -m "Add your feature"- Push to your branch:
git push origin feature/your-feature- Open a Pull Request
This project is licensed under the MIT License.
MIT ยฉ 2026 Dhruv Pandit
See the LICENSE file for full license details.
Dhruv Pandit
- GitHub: @dhruvpandit46
- LinkedIn: Dhruv Pandit
- Instagram: @dhruv_pandit2007
If you found Self-Defense Master useful, consider giving the repository a โญ on GitHub!
It helps support development and motivates the creation of more helpful projects.
- Font Awesome for icons
- The self-defense community for real-world insights
- Everyone who prioritizes personal safety
Stay safe, stay aware, stay confident! ๐ก๏ธ