-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmorse_code.html
More file actions
145 lines (129 loc) · 4.89 KB
/
morse_code.html
File metadata and controls
145 lines (129 loc) · 4.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Morse Code</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Ryan Brubaker">
<!-- styles -->
<link href="bootstrap.min.css" rel="stylesheet">
<link href="bootstrap-responsive.min.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div style="-webkit-user-select: none; -moz-user-select: none;">
<h1>Morse Code</h1>
<br />
<ul>
<li>Dot: Click</li>
<li>Dash: Click and hold for 1/4 of a second or more</li>
<li>Word separator: Click and hold for 1 second or more</li>
<li>The decoder "operates" on one character at a time. Let the communication line empty out before starting
a new character. There will be a small delay before the character is output to the screen, but you can still
begin the next character once the communication line is empty.</li>
<li>The decoder ignores any dot/dash combination that it doesn't understand</li>
</ul>
<br />
<br />
<div class="row">
<div id="straight-key-div" class="span2">
<a class="btn" id="straight-key">Signal</a>
</div>
<div id="communication-line-div" class="span6">
<canvas id="communicationLineCanvas" width="500" height="50"></canvas>
</div>
<div id="messageBoxDiv" class="span1 offset1">
<textarea id="messageBox"></textarea>
</div>
</div>
<br />
<br />
<div class="row">
<table class="table table-bordered">
<tr>
<td>A</td>
<td>• –</td>
<td>J</td>
<td>• – – –</td>
<td>S</td>
<td>• • •</td>
</tr>
<tr>
<td>B</td>
<td>– • • •</td>
<td>K</td>
<td>– • –</td>
<td>T</td>
<td>–</td>
</tr>
<tr>
<td>C</td>
<td>– • – •</td>
<td>L</td>
<td>• – • •</td>
<td>U</td>
<td>• • –</td>
</tr>
<tr>
<td>D</td>
<td>– • •</td>
<td>M</td>
<td>– –</td>
<td>V</td>
<td>• • • –</td>
</tr>
<tr>
<td>E</td>
<td>•</td>
<td>N</td>
<td>– •</td>
<td>W</td>
<td>• – –</td>
</tr>
<tr>
<td>F</td>
<td>• • – •</td>
<td>O</td>
<td>– – –</td>
<td>X</td>
<td>– • • –</td>
</tr>
<tr>
<td>G</td>
<td>– – •</td>
<td>P</td>
<td>• – – •</td>
<td>Y</td>
<td>– • – –</td>
</tr>
<tr>
<td>H</td>
<td>• • • •</td>
<td>Q</td>
<td>– – • –</td>
<td>Z</td>
<td>– – • •</td>
</tr>
<tr>
<td>I</td>
<td>• •</td>
<td>R</td>
<td>• – •</td>
<td />
<td />
</tr>
</table>
</div>
</div>
</div>
<script src="jquery-1.7.2.min.js"></script>
<script src="bootstrap.min.js"></script>
<script src="underscore-min.js"></script>
<script src="backbone-min.js"></script>
<script src="morse_code.js"></script>
</body>
</html>