test button
这个提交包含在:
父节点
4478c8fb78
当前提交
ac5bb52cd4
共有 2 个文件被更改,包括 11 次插入 和 0 次删除
|
|
@ -522,6 +522,7 @@
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<button id="connectButton" class="btn btn-warning">Connect</button> <span id="statusBar"></span><br>
|
<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">
|
<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>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ connectButton.addEventListener("click", clickConnect)
|
||||||
sendButton.addEventListener("click", clickSend)
|
sendButton.addEventListener("click", clickSend)
|
||||||
helpButton.addEventListener("click", clickHelp)
|
helpButton.addEventListener("click", clickHelp)
|
||||||
statusButton.addEventListener("click", clickStatus)
|
statusButton.addEventListener("click", clickStatus)
|
||||||
|
cwfunc1Button.addEventListener("click", morsekey_func1)
|
||||||
|
|
||||||
//When the connectButton is pressed
|
//When the connectButton is pressed
|
||||||
async function clickConnect() {
|
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
|
//Read the incoming data
|
||||||
async function readLoop() {
|
async function readLoop() {
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用