test button

这个提交包含在:
Peter Goodhall 2023-05-15 14:42:53 +01:00
父节点 4478c8fb78
当前提交 ac5bb52cd4
共有 2 个文件被更改,包括 11 次插入0 次删除

查看文件

@ -522,6 +522,7 @@
<div class="card-body">
<button id="connectButton" class="btn btn-warning">Connect</button> <span id="statusBar"></span><br>
<input id="sendText" type="text"><input id="sendButton" type="button" value="Send" class="btn btn-success">
<button id="cwfunc1Button" class="btn btn-warning">CQ</button>
<br>
</div>
</div>

查看文件

@ -9,6 +9,7 @@ connectButton.addEventListener("click", clickConnect)
sendButton.addEventListener("click", clickSend)
helpButton.addEventListener("click", clickHelp)
statusButton.addEventListener("click", clickStatus)
cwfunc1Button.addEventListener("click", morsekey_func1)
//When the connectButton is pressed
async function clickConnect() {
@ -114,6 +115,15 @@ function clickSend() {
}
function morsekey_func1() {
writeToStream("CQ CQ 2M0SQL");
//and clear the input field, so it's clear it has been sent
sendText.value = "";
}
//Read the incoming data
async function readLoop() {
while (true) {