aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--static/main.js12
-rw-r--r--templates/send.html28
2 files changed, 39 insertions, 1 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++) {
diff --git a/templates/send.html b/templates/send.html
index 7889c20..b3bccab 100644
--- a/templates/send.html
+++ b/templates/send.html
@@ -33,7 +33,33 @@
</div>
</div>
- <button class="btn" type="button" onclick="btn_send_packet()">Send</button>
+ <!-- not yet implemented in ham-cats
+ <div class="section">
+ <h2>Simplex Whisker</h2>
+ <p>The simplex whisker lets you communicate if you are reachable over a simplex voice frequency</p>
+ <div>
+ <input type="checkbox" id="with_simplex" value="Include Simplex Whisker" checked>
+ <input class="textinput" type="text" id="simplex_frequency" value="145.500">
+ <select class="select" id="simplex_mode">
+ <option value="FM" selected>FM</option>
+ <option value="CATS">CATS</option>
+ <option value="USB">USB</option>
+ <option value="LSB">LSB</option>
+ <option value="CW">LSB</option>
+ <option value="AM">AM</option>
+ <option value="FreeDV">FreeDV</option>
+ <option value="M17">M17</option>
+ <option value="D-STAR">D-STAR</option>
+ <option value="DMR">DMR</option>
+ <option value="Fusion">Fusion</option>
+ <option value="P25">P25</option>
+ </select>
+ </div>
+ </div>-->
+
+ <div class="section">
+ <button class="btn" type="button" onclick="btn_send_packet()">Send</button>
+ </div>
</div>
{% include "foot.html" %}
{# vi:set et sw=2 ts=2: #}