diff --git a/htdocs/index.html b/htdocs/index.html index 5373f49..3e8ca70 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -159,7 +159,7 @@ Under construction
We're working on the code right now, so the application might fail. -
+
@@ -170,6 +170,16 @@
+ + + + + + + + + +
UTCdBDTFreqMessage
diff --git a/htdocs/openwebrx.css b/htdocs/openwebrx.css index 9c6db0e..f9135ae 100644 --- a/htdocs/openwebrx.css +++ b/htdocs/openwebrx.css @@ -1018,3 +1018,30 @@ img.openwebrx-mirror-img background-size: contain; display: inline-block; } + +#openwebrx-panel-wsjt-message { + height: 180px; +} + +#openwebrx-panel-wsjt-message tbody { + display: block; + overflow: auto; + height: 150px; + width: 100%; +} + +#openwebrx-panel-wsjt-message thead tr { + display: block; +} + +#openwebrx-panel-wsjt-message th, +#openwebrx-panel-wsjt-message td { + width: 50px; + text-align: left; +} + +#openwebrx-panel-wsjt-message .message { + width: 400px; +} + + diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 280b380..66a0045 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -1245,6 +1245,22 @@ function on_ws_recv(evt) case "metadata": update_metadata(json.value); break; + case "wsjt_message": + var msg = json.value; + var $b = $('#openwebrx-panel-wsjt-message tbody'); + var t = new Date(msg['timestamp'] * 1000); + var pad = function(i) { return ('' + i).padStart(2, "0"); } + $b.append($( + '' + + '' + pad(t.getHours()) + pad(t.getMinutes()) + pad(t.getSeconds()) + '' + + '' + msg['db'] + '' + + '' + msg['dt'] + '' + + '' + msg['freq'] + '' + + '' + msg['msg'] + '' + + '' + )); + $b.scrollTop($b[0].scrollHeight); + break; default: console.warn('received message of unknown type: ' + json.type); }