Count paper cards only if not cnfm via LoTW

这个提交包含在:
phl0 2023-10-20 00:51:44 +02:00
父节点 50a4ca9464
当前提交 804c3f3ccf
找不到此签名对应的密钥
GPG 密钥 ID: 48EA1E640798CA9A

查看文件

@ -29,6 +29,12 @@ function gridPlot(form) {
grid_four = data.grid_4char;
grid_four_lotw = data.grid_4char_lotw;
grid_four_paper = data.grid_4char_paper;
paper_count = 0;
grid_four_paper.forEach((element) => {
if (!grid_four_lotw.includes(element)) {
paper_count++;
}
});
var layer = L.tileLayer(jslayer, {
maxZoom: 12,
attribution: jsattribution,
@ -62,7 +68,7 @@ function gridPlot(form) {
var div = L.DomUtil.create("div", "legend");
div.innerHTML += "<h4>" + gridsquares_gridsquares + "</h4>";
div.innerHTML += '<i style="background: #90ee90"></i><span>' + gridsquares_gridsquares_lotw + ' ('+grid_four_lotw.length+')</span><br>';
div.innerHTML += '<i style="background: #00b0f0"></i><span>' + gridsquares_gridsquares_paper + ' ('+grid_four_paper.length+')</span><br>';
div.innerHTML += '<i style="background: #00b0f0"></i><span>' + gridsquares_gridsquares_paper + ' ('+paper_count+')</span><br>';
div.innerHTML += '<i style="background: #ffd757"></i><span>' + gridsquares_gridsquares_worked + ' ('+(grid_four.length)+')</span><br>';
return div;
};