mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Heard station table list tweaks
This commit is contained in:
parent
f74cb06491
commit
c6b28e2ccc
2 changed files with 22 additions and 8 deletions
|
@ -2117,6 +2117,7 @@ var speedChartOptions = {
|
||||||
var dxCallText = document.createElement('span');
|
var dxCallText = document.createElement('span');
|
||||||
dxCallText.innerText = arg.stations[i]['dxcallsign'];
|
dxCallText.innerText = arg.stations[i]['dxcallsign'];
|
||||||
let dxCallTextCall = dxCallText.innerText;
|
let dxCallTextCall = dxCallText.innerText;
|
||||||
|
let dxCallTextShort = dxCallTextCall.split("-",1)[0];
|
||||||
row.addEventListener("click", function() {
|
row.addEventListener("click", function() {
|
||||||
document.getElementById("dxCall").value = dxCallTextCall;
|
document.getElementById("dxCall").value = dxCallTextCall;
|
||||||
});
|
});
|
||||||
|
@ -2152,20 +2153,22 @@ var speedChartOptions = {
|
||||||
dataType.appendChild(dataTypeText);
|
dataType.appendChild(dataTypeText);
|
||||||
break;
|
break;
|
||||||
case 'SESSION-HB':
|
case 'SESSION-HB':
|
||||||
dataTypeText.innerHTML = '<i class="bi bi-heart-pulse-fill"></i>';
|
dataTypeText.innerHTML = '<i title=\"Heartbeat\" class="bi bi-heart-pulse-fill"></i>';
|
||||||
dataType.appendChild(dataTypeText);
|
dataType.appendChild(dataTypeText);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (dataTypeText.innerText){
|
switch (dataTypeText.innerText){
|
||||||
case 'CQ CQ CQ':
|
case 'CQ CQ CQ':
|
||||||
|
dataTypeText.textContent="CQ CQ";
|
||||||
row.classList.add("table-success");
|
row.classList.add("table-success");
|
||||||
break;
|
break;
|
||||||
case 'DATA-C':
|
case 'DATA-C':
|
||||||
dataTypeText.innerHTML = '<i class="bi bi-file-earmark-binary-fill"></i>';
|
dataTypeText.innerHTML = '<i title=\"DATA-C\" class="bi bi-file-earmark-binary-fill"></i>';
|
||||||
row.classList.add("table-warning");
|
row.classList.add("table-warning");
|
||||||
break;
|
break;
|
||||||
case 'BEACON':
|
case 'BEACON':
|
||||||
|
dataTypeText.textContent="BCN";
|
||||||
row.classList.add("table-light");
|
row.classList.add("table-light");
|
||||||
break;
|
break;
|
||||||
case 'PING':
|
case 'PING':
|
||||||
|
@ -2181,18 +2184,26 @@ var speedChartOptions = {
|
||||||
snr.appendChild(snrText);
|
snr.appendChild(snrText);
|
||||||
|
|
||||||
var offset = document.createElement("td");
|
var offset = document.createElement("td");
|
||||||
var offsetText = document.createElement('span');
|
var offsetText = " ";
|
||||||
offsetText.innerText = arg.stations[i]['offset'];
|
if (contrib.indexOf(dxCallTextShort) >=0) {
|
||||||
offset.appendChild(offsetText);
|
var offsetText ='<i title="Yeah baby, yeah!!!!" class="bi bi-award-fill text-primary"></i>';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (dxCallTextShort == "DJ2LS") {
|
||||||
|
var offsetText ='<i title="Yeah FreeDATA, yeah!!!!" class="bi bi-emoji-wink-fill text-warning"></i>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
offset.innerHTML=offsetText;
|
||||||
|
|
||||||
row.appendChild(timestamp);
|
row.appendChild(timestamp);
|
||||||
row.appendChild(frequency);
|
row.appendChild(frequency);
|
||||||
|
row.appendChild(offset);
|
||||||
row.appendChild(dxCall);
|
row.appendChild(dxCall);
|
||||||
row.appendChild(dxGrid);
|
row.appendChild(dxGrid);
|
||||||
row.appendChild(gridDistance);
|
row.appendChild(gridDistance);
|
||||||
row.appendChild(dataType);
|
row.appendChild(dataType);
|
||||||
row.appendChild(snr);
|
row.appendChild(snr);
|
||||||
row.appendChild(offset);
|
//row.appendChild(offset);
|
||||||
|
|
||||||
tbl.appendChild(row);
|
tbl.appendChild(row);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1118,18 +1118,20 @@
|
||||||
style="font-size: 1rem; color: black;" style="font-size: 1rem; color: black;"></i>
|
style="font-size: 1rem; color: black;" style="font-size: 1rem; color: black;"></i>
|
||||||
<strong> HEARD STATIONS</strong> </div>
|
<strong> HEARD STATIONS</strong> </div>
|
||||||
<div class="card-body p-0">
|
<div class="card-body p-0">
|
||||||
|
<div class="table-responsive">
|
||||||
<!-- START OF TABLE FOR HEARD STATIONS -->
|
<!-- START OF TABLE FOR HEARD STATIONS -->
|
||||||
<table class="table table-sm">
|
<table class="table table-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Time</th>
|
<th scope="col">Time</th>
|
||||||
<th scope="col">Frequency</th>
|
<th scope="col">Frequency</th>
|
||||||
|
<th> </th>
|
||||||
<th scope="col">DXCall</th>
|
<th scope="col">DXCall</th>
|
||||||
<th scope="col">DXGrid</th>
|
<th scope="col">DXGrid</th>
|
||||||
<th scope="col">Distance</th>
|
<th scope="col">Distance</th>
|
||||||
<th scope="col">Type</th>
|
<th scope="col">Type</th>
|
||||||
<th scope="col">SNR</th>
|
<th scope="col">SNR</th>
|
||||||
<th scope="col">Off</th>
|
<!--<th scope="col">Off</th>-->
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="heardstations">
|
<tbody id="heardstations">
|
||||||
|
@ -1143,6 +1145,7 @@
|
||||||
-->
|
-->
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
<!-- END OF HEARD STATIONS TABLE -->
|
<!-- END OF HEARD STATIONS TABLE -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue