From 899445d5865a245de16583e86d47bf3151baee06 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 14 Apr 2020 21:12:25 +0200 Subject: [PATCH] display messages on the web --- htdocs/css/openwebrx.css | 8 ++++++-- htdocs/openwebrx.js | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/htdocs/css/openwebrx.css b/htdocs/css/openwebrx.css index 719b47d..f3b44f2 100644 --- a/htdocs/css/openwebrx.css +++ b/htdocs/css/openwebrx.css @@ -381,6 +381,7 @@ input[type=range]:focus::-ms-fill-upper border-radius: 15px; -moz-border-radius: 15px; margin: 5.9px; + box-sizing: content-box; } .openwebrx-panel a @@ -1078,13 +1079,15 @@ img.openwebrx-mirror-img #openwebrx-panel-digimodes[data-mode="ft4"] #openwebrx-digimode-content-container, #openwebrx-panel-digimodes[data-mode="packet"] #openwebrx-digimode-content-container, #openwebrx-panel-digimodes[data-mode="pocsag"] #openwebrx-digimode-content-container, +#openwebrx-panel-digimodes[data-mode="js8"] #openwebrx-digimode-content-container, #openwebrx-panel-digimodes[data-mode="ft8"] #openwebrx-digimode-select-channel, #openwebrx-panel-digimodes[data-mode="wspr"] #openwebrx-digimode-select-channel, #openwebrx-panel-digimodes[data-mode="jt65"] #openwebrx-digimode-select-channel, #openwebrx-panel-digimodes[data-mode="jt9"] #openwebrx-digimode-select-channel, #openwebrx-panel-digimodes[data-mode="ft4"] #openwebrx-digimode-select-channel, #openwebrx-panel-digimodes[data-mode="packet"] #openwebrx-digimode-select-channel, -#openwebrx-panel-digimodes[data-mode="pocsag"] #openwebrx-digimode-select-channel +#openwebrx-panel-digimodes[data-mode="pocsag"] #openwebrx-digimode-select-channel, +#openwebrx-panel-digimodes[data-mode="js8"] #openwebrx-digimode-select-channel { display: none; } @@ -1095,7 +1098,8 @@ img.openwebrx-mirror-img #openwebrx-panel-digimodes[data-mode="jt9"] #openwebrx-digimode-canvas-container, #openwebrx-panel-digimodes[data-mode="ft4"] #openwebrx-digimode-canvas-container, #openwebrx-panel-digimodes[data-mode="packet"] #openwebrx-digimode-canvas-container, -#openwebrx-panel-digimodes[data-mode="pocsag"] #openwebrx-digimode-canvas-container +#openwebrx-panel-digimodes[data-mode="pocsag"] #openwebrx-digimode-canvas-container, +#openwebrx-panel-digimodes[data-mode="js8"] #openwebrx-digimode-canvas-container { height: 200px; margin: -10px; diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 0c85f28..95c2008 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -1133,6 +1133,7 @@ function on_ws_recv(evt) { update_metadata(json['value']); break; case "wsjt_message": + case "js8_message": update_wsjt_panel(json['value']); break; case "dial_frequencies": @@ -1305,7 +1306,7 @@ function update_wsjt_panel(msg) { }; var linkedmsg = msg['msg']; var matches; - if (['FT8', 'JT65', 'JT9', 'FT4', 'JS8'].indexOf(msg['mode']) >= 0) { + if (['FT8', 'JT65', 'JT9', 'FT4'].indexOf(msg['mode']) >= 0) { matches = linkedmsg.match(/(.*\s[A-Z0-9]+\s)([A-R]{2}[0-9]{2})$/); if (matches && matches[2] !== 'RR73') { linkedmsg = html_escape(matches[1]) + '' + matches[2] + '';