From 8541f79ebc1fc2f371182a9ed18a4e407bf64af0 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 12 Oct 2019 17:34:49 +0200 Subject: [PATCH] remove dial button --- htdocs/css/openwebrx.css | 16 +--------------- htdocs/index.html | 7 ------- htdocs/openwebrx.js | 25 +------------------------ 3 files changed, 2 insertions(+), 46 deletions(-) diff --git a/htdocs/css/openwebrx.css b/htdocs/css/openwebrx.css index 2b35db9..a2ca863 100644 --- a/htdocs/css/openwebrx.css +++ b/htdocs/css/openwebrx.css @@ -444,20 +444,6 @@ input[type=range]:focus::-ms-fill-upper margin-right: 5px; } -.openwebrx-dial-button svg { - width: 19px; - height: 19px; - vertical-align: bottom; -} - -.openwebrx-dial-button #ph_dial { - fill: #888; -} - -.openwebrx-dial-button.available #ph_dial { - fill: #FFF; -} - .openwebrx-square-button img { height: 27px; @@ -727,7 +713,7 @@ img.openwebrx-mirror-img width: 173px; height: 27px; padding-left:3px; - margin-right: 5px; + flex: 4; } #openwebrx-sdr-profiles-listbox { diff --git a/htdocs/index.html b/htdocs/index.html index e64dd9d..a7dfa10 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -99,13 +99,6 @@ -
- - - - - -
diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 9ac102b..6006021 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -1259,9 +1259,7 @@ function on_ws_recv(evt) update_wsjt_panel(json.value); break; case "dial_frequencies": - dial_frequencies = json.value; - update_dial_button(); - var as_bookmarks = dial_frequencies.map(function(d){ + var as_bookmarks = json.value.map(function(d){ return { name: d.mode.toUpperCase(), digital_modulation: d.mode, @@ -1341,27 +1339,6 @@ function on_ws_recv(evt) } } -var dial_frequencies = []; - -function find_dial_frequencies() { - var sdm = $("#openwebrx-secondary-demod-listbox")[0].value; - return dial_frequencies.filter(function(d){ - return d.mode == sdm; - }); -} - -function update_dial_button() { - var available = find_dial_frequencies(); - $("#openwebrx-secondary-demod-dial-button")[available.length ? "addClass" : "removeClass"]("available"); -} - -function dial_button_click() { - var available = find_dial_frequencies(); - if (!available.length) return; - var frequency = available[0].frequency; - demodulator_set_offset_frequency(0, frequency - center_freq); -} - function update_metadata(meta) { if (meta.protocol) switch (meta.protocol) { case 'DMR':