Skip to content

Commit 123c59c

Browse files
committed
changed timings
thanks @MikeAngue
1 parent 2f70b59 commit 123c59c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

index.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
</p>
139139
<br>
140140

141-
<p>This is the table of the other elements. increasing the value of <i>[pause between words]</i> and <i>[pause before sending]</i>
141+
<p>This is the table of the other elements. Increasing the value of <i>[pause between words]</i> and <i>[pause before sending]</i>
142142
can be useful while learning the code</p>
143143

144144
<table>
@@ -161,15 +161,15 @@
161161
</tr>
162162
<tr>
163163
<td>pause between words</td>
164-
<td><input class="tElement" step="0.1" autocomplete="off" min="0.1" max="500" type="number" onInput="settings.updateMultiplier(4,this.value)" value="5"></input></td>
164+
<td><input class="tElement" step="0.1" autocomplete="off" min="0.1" max="500" type="number" onInput="settings.updateMultiplier(4,this.value)" value="7"></input></td>
165165
</tr>
166166
<tr>
167167
<td>pause before sending</td>
168168
<td><input class="tElement" step="0.1" autocomplete="off" min="0.1" max="4000" type="number" onInput="settings.updateMultiplier(5,this.value)" value="2000"></input></td>
169169
</tr>
170170
</tbody>
171171
</table>
172-
<p>the values in this table are multiplied with the dot speed</p>
172+
<p>The values in this table are multiplied with the dot speed</p>
173173

174174
<button class="button button-positive" onclick="settings.restoreDefaultMultipliers()">restore default settings</button><br><br>
175175
<button class="button" onclick="settings.dumpAsString()">export configuration</button>

js/chat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function Morser(domPosition,encodedMsg,noteFreq){
145145
this.msgP.insertAdjacentHTML("beforeend",this.currentLetter);
146146
this.currentLetter = this.phrase.shift();
147147
if(this.currentLetter == " "){
148-
this.steps = 4;//pause between words
148+
this.steps = 7;//pause between words
149149
}else{
150150
this.steps = 3;//pause between characters
151151
this.currentLetterMorse = morse.translateLetterToMorse(this.currentLetter);

js/morse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var morse = {
4949
"11100":"8",
5050
"11110":"9",
5151
"11111":"0",
52-
"00000010":" "
52+
"10101":" "//TODO: fix this: remove J from beginning of received msgs
5353
},
5454
specialChars: {
5555
"A":".",

js/settings.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ var settings = {
44
//#############################
55

66
//list of the default morse elements multipliers. this array is used to restore default settings
7-
defaultMultipliers: [80,3,1,3,5,2000],
7+
defaultMultipliers: [80,3,1,3,7,2000],
88
//second list of multipliers: this array can be used to store custom values and apply them
9-
newMultipliers: [80,3,1,3,5,2000],
9+
newMultipliers: [80,3,1,3,7,2000],
1010
//customizable morse parameters. their values are set on page load, or from the page settings
1111
//by calling the applyMutlipliers() method
1212
/*

0 commit comments

Comments
 (0)