From 5e2bbe967b19065ba7c946c0d870664ec4b0e9fe Mon Sep 17 00:00:00 2001 From: Peter Akers Date: Mon, 19 Feb 2024 10:08:45 +1000 Subject: [PATCH] cosmetic fixes --- CONTRIBUTING.md | 4 ++-- README.md | 11 ++++------- index.html | 2 +- js/exwebthrottle.js | 7 ++++--- manifest.json | 2 +- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4f81323..918ee0b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,5 @@ # Contributing -Firstly, thank you for wanting to contribute to WebThrottle-EX! We really appreciate any contributions, however small (even typo corrections!). If you know what you want to change, +Firstly, thank you for wanting to contribute to EX-WebThrottle! We really appreciate any contributions, however small (even typo corrections!). If you know what you want to change, go ahead and read the section **Making your change**. If you want to contribute, but don't know where to start, have a look at some of the open issues and join the discussion. ## Making your change @@ -18,7 +18,7 @@ If you are a member of DCC-EX, you can clone this repo locally to make changes. or better yet, in the format `user-feature`. This way it is easy to see who is using which branch and the feature they are implementing. Once you have made these changes, you can either open a pull request to `master` or just merge it to `master` yourself, it is completely up to you. -**Note:** Never touch the `build` branch! This is the live, end-user version of WebThrottle-EX and is only pushed to when a release is made. +**Note:** Never touch the `build` branch! This is the live, end-user version of EX-WebThrottle and is only pushed to when a release is made. ## What files are where? `index.html` - this is where the main code for the webpage is. There is only one html page, it is manipulated by JavaScript. diff --git a/README.md b/README.md index 5aaa434..308dd1d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # DCC-EX-WebThrottle -This is a prototype for a new DCC-EX Throttle/Controller that can connect to the DCCEX EX-CommmandStation (EX-CS) directly through the USB port of a computer. +This is a simple Throttle/Controller that can connect to the DCCEX EX-CommmandStation (EX-CS) directly through the USB port of a computer. ## What you need to setup the project @@ -36,7 +36,7 @@ If the program finds a compatible device, it will popup a window showing you a s You should then be connected to the Command Station (CS) and should see the response from the CS on the web page under the buttons. Make sure your debug console is open. If it isn't, use the slider button in the lower left to open it. You can also open the DevTools window in your browser to see more developer logging. -Once you are connected, you can enter the ```` command in the "direct command" textbox to get status information from your Command Station, just enter "s" (without the quotes) and press the SEND button. You can send any DCC++ command in this way. You should see returned in the log window with your version, type of arduino, type of motor shield, and some other information. +Once you are connected, you can enter the ```` command in the "direct command" textbox to get status information from your Command Station, just enter "s" (without the quotes) and press the SEND button. You can send any DCC++ command in this way. You should see returned in the log window with your version, type of Arduino, type of motor shield, and some other information. Now you are ready to run trains! Place your loco on the track and click the power slider button to turn on power to your track. You should see lights on an Arduino Motor Board light and an indication that your loco has power. @@ -64,12 +64,9 @@ To load the Chrome DevTools to look at logging and be able to manually enter "wr Copyright 2020 DCC-EX -Licensed under the GNU open source licese. +Licensed under the GNU open source licence. -Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR -CONDITIONS OF ANY KIND, either express or implied. See the License for the -specific language governing permissions and limitations under the License. +Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the Licence. [DCC-EX](https://dcc-ex.com) diff --git a/index.html b/index.html index bd65af8..f593c33 100644 --- a/index.html +++ b/index.html @@ -98,7 +98,7 @@
- +
diff --git a/js/exwebthrottle.js b/js/exwebthrottle.js index aeed8cb..e267bd8 100644 --- a/js/exwebthrottle.js +++ b/js/exwebthrottle.js @@ -15,6 +15,7 @@ Authors: Fred Decker Mani Kumar Matt + Peter Akers This is part of the DCC-EX Project for model railroading and more. For more information, see us at dcc-ex.com. @@ -317,7 +318,7 @@ function setThrottleScreenUI() { $("#console-toggle").prop("checked", false); } if (getPreference("timestamp") == null) { - setPreference("timestamp", "on"); + setPreference("timestamp", "off"); } $("#timestamp-selector").val(getPreference("timestamp")).trigger("change"); @@ -489,7 +490,7 @@ $(document).ready(function(){ $("#info-tooltip").tooltip({ content: - "

DCC-EX EX-WebThrottle
(WebThrottle-EX)


Version: "+version+"

Credits
Fred Decker
Mani Kumar
Matt H

", + "

DCC-EX EX-WebThrottle
(WebThrottle-EX)


Version: "+version+"

Credits
Fred Decker
Mani Kumar
Matt H
Peter Akers

", show: { effect: "slideDown", delay: 100, @@ -1076,7 +1077,7 @@ function hideSettings(){ } function credits() { - authors = ["Fred Decker","Mani Kumar","Matt"] + authors = ["Fred Decker","Mani Kumar","Matt","Peter Akers"] displayLog("Credits:") console.log("Credits:") for (i=0; i