Skip to content

Commit

Permalink
changed timings
Browse files Browse the repository at this point in the history
thanks @MikeAngue
  • Loading branch information
robalb committed Mar 18, 2018
1 parent 2f70b59 commit 123c59c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
</p>
<br>

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

<table>
Expand All @@ -161,15 +161,15 @@
</tr>
<tr>
<td>pause between words</td>
<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>
<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>
</tr>
<tr>
<td>pause before sending</td>
<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>
</tr>
</tbody>
</table>
<p>the values in this table are multiplied with the dot speed</p>
<p>The values in this table are multiplied with the dot speed</p>

<button class="button button-positive" onclick="settings.restoreDefaultMultipliers()">restore default settings</button><br><br>
<button class="button" onclick="settings.dumpAsString()">export configuration</button>
Expand Down
2 changes: 1 addition & 1 deletion js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function Morser(domPosition,encodedMsg,noteFreq){
this.msgP.insertAdjacentHTML("beforeend",this.currentLetter);
this.currentLetter = this.phrase.shift();
if(this.currentLetter == " "){
this.steps = 4;//pause between words
this.steps = 7;//pause between words
}else{
this.steps = 3;//pause between characters
this.currentLetterMorse = morse.translateLetterToMorse(this.currentLetter);
Expand Down
2 changes: 1 addition & 1 deletion js/morse.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var morse = {
"11100":"8",
"11110":"9",
"11111":"0",
"00000010":" "
"10101":" "//TODO: fix this: remove J from beginning of received msgs
},
specialChars: {
"A":".",
Expand Down
4 changes: 2 additions & 2 deletions js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var settings = {
//#############################

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

0 comments on commit 123c59c

Please sign in to comment.