make the interface pretty

This commit is contained in:
Jakob Ketterl 2019-07-08 20:45:09 +02:00
parent c7503f87d7
commit c6aa5c3a3c
3 changed files with 21 additions and 7 deletions

View File

@ -173,9 +173,9 @@
<table class="openwebrx-panel" id="openwebrx-panel-wsjt-message" data-panel-name="wsjt-message" data-panel-pos="left" data-panel-order="2" data-panel-size="619,200"> <table class="openwebrx-panel" id="openwebrx-panel-wsjt-message" data-panel-name="wsjt-message" data-panel-pos="left" data-panel-order="2" data-panel-size="619,200">
<thead><tr> <thead><tr>
<th>UTC</th> <th>UTC</th>
<th>dB</th> <th class="decimal">dB</th>
<th>DT</th> <th class="decimal">DT</th>
<th>Freq</th> <th class="decimal">Freq</th>
<th class="message">Message</th> <th class="message">Message</th>
</tr></thead> </tr></thead>
<tbody></tbody> <tbody></tbody>

View File

@ -1038,10 +1038,23 @@ img.openwebrx-mirror-img
#openwebrx-panel-wsjt-message td { #openwebrx-panel-wsjt-message td {
width: 50px; width: 50px;
text-align: left; text-align: left;
padding: 1px 3px;
} }
#openwebrx-panel-wsjt-message .message { #openwebrx-panel-wsjt-message .message {
width: 400px; width: 400px;
} }
#openwebrx-panel-wsjt-message .decimal {
text-align: right;
width: 35px;
}
#openwebrx-panel-digimodes[data-mode="ft8"] #openwebrx-digimode-content-container {
display: none;
}
#openwebrx-panel-digimodes[data-mode="ft8"] #openwebrx-digimode-canvas-container {
height: 200px;
margin: -10px;
}

View File

@ -1387,9 +1387,9 @@ function update_wsjt_panel(msg) {
$b.append($( $b.append($(
'<tr data-timestamp="' + msg['timestamp'] + '">' + '<tr data-timestamp="' + msg['timestamp'] + '">' +
'<td>' + pad(t.getUTCHours()) + pad(t.getUTCMinutes()) + pad(t.getUTCSeconds()) + '</td>' + '<td>' + pad(t.getUTCHours()) + pad(t.getUTCMinutes()) + pad(t.getUTCSeconds()) + '</td>' +
'<td>' + msg['db'] + '</td>' + '<td class="decimal">' + msg['db'] + '</td>' +
'<td>' + msg['dt'] + '</td>' + '<td class="decimal">' + msg['dt'] + '</td>' +
'<td>' + msg['freq'] + '</td>' + '<td class="decimal">' + msg['freq'] + '</td>' +
'<td class="message">' + linkedmsg + '</td>' + '<td class="message">' + linkedmsg + '</td>' +
'</tr>' '</tr>'
)); ));
@ -2679,8 +2679,9 @@ function demodulator_digital_replace(subtype)
demodulator_buttons_update(); demodulator_buttons_update();
break; break;
} }
$('#openwebrx-panel-digimodes').attr('data-mode', subtype);
toggle_panel("openwebrx-panel-digimodes", true); toggle_panel("openwebrx-panel-digimodes", true);
if (subtype == 'ft8') toggle_panel("openwebrx-panel-wsjt-message", true); toggle_panel("openwebrx-panel-wsjt-message", subtype == 'ft8');
} }
function secondary_demod_create_canvas() function secondary_demod_create_canvas()