diff options
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++) { |