Skip to content

bjmdevelopers/Morse-Code-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Morse Code Translator

License: MIT JavaScript HTML5 CSS3

A responsive web application that converts text to Morse code and vice versa, with sound and light simulation capabilities.

🌟 Features

  • Bidirectional Translation
    • Text → Morse code
    • Morse code → Text
  • Interactive Learning Tools
    • 🔊 Audio playback of Morse code
    • 💡 Visual flashing light simulation
  • Adjustable Speed (5-20 WPM)
  • Complete Cheat Sheet with all Morse characters
  • Responsive Design works on mobile & desktop
  • No Dependencies - Pure HTML/CSS/JS

🚀 Quick Start

  1. Clone the repository:
    git clone https://github.com/bjmdevelopers/morse-code-translator.git
  2. Open index.html in any modern browser
  3. Start translating!

Live Demo: Demo Link

🧑‍💻 How to Use

Text to Morse

  1. Type your message in the left textarea
  2. Click "Convert to Morse"
  3. Play the Morse code as sound or light

Morse to Text

  1. Enter Morse code in the right textarea (e.g. ... --- ...)
  2. Click "Convert to Text"

Try These Examples:

  • HELLO.... . .-.. .-.. ---
  • SOS... --- ...
  • I LOVE MORSE.. / .-.. --- ...- . / -- --- .-. ... .

📚 Morse Code Cheat Sheet

Alphabet

Letter Morse Letter Morse
A .- N -.
B -... O ---
C -.-. P .--.
D -.. Q --.-
E . R .-.
F ..-. S ...
G --. T -
H .... U ..-
I .. V ...-
J .--- W .--
K -.- X -..-
L .-.. Y -.--
M -- Z --..

(See full cheat sheet in the web app)

🛠 Technical Details

  • Web Audio API for Morse code sound generation
  • CSS Animations for light simulation
  • Responsive Grid Layout using CSS Flexbox/Grid
  • Mobile-First Design with media queries
  • Pure Vanilla JavaScript - No frameworks

🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a Pull Request

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages