diff options
| author | mcd223 <jacob@simplelittledream.com> | 2019-02-07 19:38:42 -0500 |
|---|---|---|
| committer | mcd223 <jacob@simplelittledream.com> | 2019-02-07 19:38:42 -0500 |
| commit | 5552ce957b496dd4f0b8447dbfbf8718fbd1f2a7 (patch) | |
| tree | 50243c695dfb3252fde70254e50087e54044583e /morsecode | |
redesign 3
Diffstat (limited to 'morsecode')
| -rw-r--r-- | morsecode/index.html | 50 | ||||
| -rw-r--r-- | morsecode/new 1.html | 19 |
2 files changed, 69 insertions, 0 deletions
diff --git a/morsecode/index.html b/morsecode/index.html new file mode 100644 index 0000000..e8f9b05 --- /dev/null +++ b/morsecode/index.html @@ -0,0 +1,50 @@ +<html> + <head> + <title>morse code</title> + <script src="../JS/morsecode.js"></script> + <script src="../JS/oldsidenav.js"></script> + <link rel="stylesheet" href="../CSS/old.css"> + </head> + <body onkeydown="keyCode(event)" id="body"> + <div id="main"> + <span style="font-size:30px;cursor:pointer" onclick="openNav()">☰</span> + </div> + <center><h1>Morse Code Translator</h1></center> + <p>Type in a word or phrase:</p> + <form NAME="morsecode"> + <INPUT class="text" TYPE="TEXT" NAME="chars" class="morse" size="28" value="Help"> + <INPUT TYPE="BUTTON" class="morseButton" VALUE="Encode" onClick="encode()"><br><br> + <TEXTAREA NAME="codebox" cols="50" rows="11" class="morse" wrap="virtual"></TEXTAREA><br/> + <INPUT TYPE="BUTTON" class="morseButton" VALUE="Copy To Clipboard" onClick="document.morsecode.codebox.select(); document.execCommand('Copy');"> + </form> + <p> I would make an audio file but it is too hard. ( ._.)</p> + + <div id="mySidenav" class="sidenav"> + <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a> + <a href="https://mcd223.github.io">Home</a> + <a href="https://mcd223.github.io/morsecode/">Morse code</a> + <a href="https://mcd223.github.io/binary/" id="pLink">Binary</a> + <a href="https://mcd223.github.io/Pacman/" id="pLinks">Google Pacman</a> + <a href="https://duckduckgo.com/">DuckDuckGo</a> + <a href="https://mail.google.com/mail/u/0/?tab=wm#inbox">Gmail</a> + <a href="https://play.google.com/music/listen?authuser&u=0#/home">Google Play Music</a> + <a href="https://photos.google.com/">Google Photos</a> + <a href="https://drive.google.com/drive/u/0/my-drive">Google Drive</a> + <a href="https://www.youtube.com">Youtube</a> + <a href="https://www.github.com/">Github</a> + <a href="https://8values.github.io/">8Values</a> + <a href="https://www.politicalcompass.org/test/">Political Compass</a> + <a href="https://www.twitch.tv/">Twitch</a> + <a href="http://www.w3schools.com/html/default.asp">html tutorial</a> + <a href="http://www.urbandictionary.com/">Urban Dictionary</a> + <a href="http://ai2.appinventor.mit.edu/">google app maker</a> + <a href="https://www.google.com/voice/">google voice</a> + <a href="http://www.computerhope.com/overview.htm">MS-DOS commands</a> + <a href="http://geektyper.com/">GEEK TYPER</a> + <a href="https://www.dropbox.com/home">dropbox</a> + <a href="https://sites.google.com/a/simplelittledream.com?tab=m3&pli=1">Google Sites</a> + <a href="https://drive.google.com/keep">Google Keep</a> + <a href="https://www.google.com/">Google.com</a> + </div> + </body> +</html> diff --git a/morsecode/new 1.html b/morsecode/new 1.html new file mode 100644 index 0000000..6c834eb --- /dev/null +++ b/morsecode/new 1.html @@ -0,0 +1,19 @@ +<script> +<input id="text"> +<button onclick="talk()">Talk It!</button> +<button onclick="listen()">Voice</button> +<script src="../bower_components/platform/platform.js"></script> +<script src="../src/webspeech.js"></script> +<script> + var speaker = new webspeech.Speaker(); + var listener = new webspeech.Listener(); + function talk() { + speaker.speak("en", document.getElementById("text").value); + } + + function listen() { + listener.listen("en", function(text) { + document.getElementById("text").value = text; + }); + } +</script>
\ No newline at end of file |
