zero298 / morsejs Goto Github PK
View Code? Open in Web Editor NEWA morse code translation library written in JavaScript
License: MIT License
A morse code translation library written in JavaScript
License: MIT License
Provide users a way to play the morse displayed with an audible sound relating to the message provided by the user. See implementation details at HTML5 Rocks Getting Started with Web Audio API.
There is no limit to where dots and dashes can be rendered within the <svg>
. They should wrap to a new line whenever they are about to render off screen. This is from commit e391315018c26c245acced9c64b7a2c82996e23e
Commit 9dfb3cf added the ability to use different encoding types while translating.
For now the expected encoding options are:
I'm not sure if this is the correct pattern to approach this, but since the main morsejs plugin can run by itself, should the SVG and WebAudio pieces be separated into a different module that can be included and used?
I'm drawing inspiration for this from how less.js
moved the cleaning functionality out from the main module and instead has the user include it separately as a plugin with less-plugin-clean-css
.
This is an incredible amount of overkill effort considering how small this project is, but the main goal is to play with the different API available for node modules and tools.
The translation text input does not allow for spaces which the library has support for. This is easy to fix by modifying the pattern
attribute on the translationText
<input>
in the index.html
file to allow for spaces in addition to alphanumeric. This is from commit e391315018c26c245acced9c64b7a2c82996e23e
Make the translator capable of delivering a run-length encoded translated message.
Provide users a way to play the morse code displayed by leveraging the HTML5 Vibration API. Find implimintation details at Vibration API on MDN.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.