diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-01-16 22:37:13 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-01-16 22:37:13 +0100 |
commit | b44e197b7f25873490ca522993dd023925daaabd (patch) | |
tree | e5e31c33035c767f6ab38ec708e916806d9b9fd9 /static | |
parent | ea68256ae1e15fdcb675dac1ec8e3717a84ed36e (diff) | |
download | cats-radio-node-b44e197b7f25873490ca522993dd023925daaabd.tar.gz cats-radio-node-b44e197b7f25873490ca522993dd023925daaabd.tar.bz2 cats-radio-node-b44e197b7f25873490ca522993dd023925daaabd.zip |
Send: add WIP Simplex whisker
Diffstat (limited to 'static')
-rw-r--r-- | static/main.js | 12 |
1 files changed, 12 insertions, 0 deletions
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++) { |