From b44e197b7f25873490ca522993dd023925daaabd Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 16 Jan 2024 22:37:13 +0100 Subject: Send: add WIP Simplex whisker --- static/main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'static') diff --git a/static/main.js b/static/main.js index ad50976..7f6b110 100644 --- a/static/main.js +++ b/static/main.js @@ -12,6 +12,7 @@ async function btn_remove_destination(element_clicked) { async function btn_send_packet() { let data = { 'comment': null, + //'simplex': null, 'destinations': [], }; @@ -19,6 +20,17 @@ async function btn_send_packet() { data.comment = document.getElementById('whisker_comment').value; } + /* not yet implemented in ham-cats + if (document.getElementById('with_simplex').checked) { + const simplex_freq_MHz = parseInt(document.getElementById('simplex_mode').value, 10); + const mode_select = document.getElementById('simplex_mode') + const i = mode_select.selectedIndex; + const simplex_mode = mode_select.options[i].text; + + data.simplex = {'frequency': simplex_freq_MHz * 1e6, 'mode': simplex_mode}; + } + */ + const destinations = document.getElementById('destinations'); const destList = destinations.querySelectorAll("p.destination"); for (let i = 0; i < destList.length; i++) { -- cgit v1.2.3