Commit pirate JS files
This commit is contained in:
58
js/WsprSearchResultDataTableColumnBuilderRegularType1.js
Normal file
58
js/WsprSearchResultDataTableColumnBuilderRegularType1.js
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
Copyright (c) 2023-forever Douglas Malnati. All rights reserved.
|
||||
|
||||
See the /faq/tos page for details.
|
||||
|
||||
(If this generated header is stamped on a file which is a 3rd party file or under a different license or copyright, then ignore this copyright statement and use that file's terms.)
|
||||
*/
|
||||
|
||||
import { WSPREncoded } from '/js/WSPREncoded.js';
|
||||
|
||||
|
||||
export class ColumnBuilderRegularType1
|
||||
{
|
||||
Match(msg)
|
||||
{
|
||||
return msg.IsRegular();
|
||||
}
|
||||
|
||||
GetColNameList()
|
||||
{
|
||||
return [
|
||||
"RegCall",
|
||||
"RegGrid",
|
||||
"RegPower",
|
||||
"RegLat",
|
||||
"RegLng",
|
||||
];
|
||||
}
|
||||
|
||||
GetColMetaDataList()
|
||||
{
|
||||
return [
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
];
|
||||
}
|
||||
|
||||
GetValList(msg)
|
||||
{
|
||||
let lat = null;
|
||||
let lng = null;
|
||||
if (msg.fields.grid4)
|
||||
{
|
||||
[lat, lng] = WSPREncoded.DecodeMaidenheadToDeg(msg.fields.grid4);
|
||||
}
|
||||
|
||||
return [
|
||||
msg.fields.callsign,
|
||||
msg.fields.grid4,
|
||||
msg.fields.powerDbm,
|
||||
lat,
|
||||
lng,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user