Added kHz and spotter to list
这个提交包含在:
父节点
7514c88df3
当前提交
fc7a9c7f5a
共有 2 个文件被更改,包括 5 次插入 和 3 次删除
|
|
@ -77,6 +77,7 @@
|
||||||
<th><?php echo lang('gen_hamradio_frequency'); ?></th>
|
<th><?php echo lang('gen_hamradio_frequency'); ?></th>
|
||||||
<th><?php echo lang('gen_hamradio_call'); ?></th>
|
<th><?php echo lang('gen_hamradio_call'); ?></th>
|
||||||
<th>DXCC</th>
|
<th>DXCC</th>
|
||||||
|
<th><?php echo lang('gen_hamradio_call'); ?> Spotter</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,10 @@ $(function() {
|
||||||
var data=[];
|
var data=[];
|
||||||
data[0]=[];
|
data[0]=[];
|
||||||
data[0].push(single.when_pretty);
|
data[0].push(single.when_pretty);
|
||||||
data[0].push(single.frequency);
|
data[0].push(single.frequency + " kHz");
|
||||||
data[0].push((single.worked_call ?'<span class="text-success">' : '')+single.spotted+(single.worked_call ? '</span>' : ''));
|
data[0].push((single.worked_call ?'<span class="text-success">' : '')+single.spotted+(single.worked_call ? '</span>' : ''));
|
||||||
data[0].push(single.dxcc_spotted.entity);
|
data[0].push(single.dxcc_spotted.entity);
|
||||||
|
data[0].push(single.spotter);
|
||||||
if (oldtable.length > 0) {
|
if (oldtable.length > 0) {
|
||||||
let update=false;
|
let update=false;
|
||||||
oldtable.each( function (srow) {
|
oldtable.each( function (srow) {
|
||||||
|
|
@ -54,7 +55,7 @@ $(function() {
|
||||||
var table=$('.spottable').DataTable();
|
var table=$('.spottable').DataTable();
|
||||||
table.rows().every(function() {
|
table.rows().every(function() {
|
||||||
var d=this.data();
|
var d=this.data();
|
||||||
var distance=Math.abs(parseInt(d[1])-qrg);
|
var distance=Math.abs(parseInt(d[1].substring(0,d[1].length-4))-qrg);
|
||||||
if (distance<=20) {
|
if (distance<=20) {
|
||||||
distance++;
|
distance++;
|
||||||
alpha=(.5/distance);
|
alpha=(.5/distance);
|
||||||
|
|
@ -133,7 +134,7 @@ $(function() {
|
||||||
} else {
|
} else {
|
||||||
$(".radio_timeout_error" ).remove();
|
$(".radio_timeout_error" ).remove();
|
||||||
text = '<i class="fas fa-broadcast-tower"></i><span style="margin-left:10px;"></span><b>TX:</b> '+(Math.round(parseInt(data.frequency)/100)/10000).toFixed(4)+' MHz';
|
text = '<i class="fas fa-broadcast-tower"></i><span style="margin-left:10px;"></span><b>TX:</b> '+(Math.round(parseInt(data.frequency)/100)/10000).toFixed(4)+' MHz';
|
||||||
highlight_current_qrg((parseInt(data.frequency)/1000));
|
highlight_current_qrg((parseInt(data.frequency))/1000);
|
||||||
if(data.mode != null) {
|
if(data.mode != null) {
|
||||||
text = text+'<span style="margin-left:10px"></span>'+data.mode;
|
text = text+'<span style="margin-left:10px"></span>'+data.mode;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用