From ac5bb52cd45a2535fd33815cac65aba5233c3221 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 15 May 2023 14:42:53 +0100 Subject: [PATCH] test button --- application/views/qso/index.php | 1 + assets/js/winkey.js | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/application/views/qso/index.php b/application/views/qso/index.php index 961039fa..c5b75df8 100755 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -522,6 +522,7 @@

+
diff --git a/assets/js/winkey.js b/assets/js/winkey.js index e5949bed..1e289dc8 100644 --- a/assets/js/winkey.js +++ b/assets/js/winkey.js @@ -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) {