Added site count to webapp.
This commit is contained in:
parent
be37c33b18
commit
63c1c35c85
1 changed files with 2 additions and 0 deletions
|
|
@ -156,6 +156,7 @@ body { margin: 0; font: 13px/1.4 system-ui, sans-serif; background: #f5f5f5; col
|
|||
<div id="toolbar">
|
||||
<h1>EFAST PhenoCam analysis</h1>
|
||||
<label>Year <select id="yearSel"></select></label>
|
||||
<span id="sitesCount" style="font-size:12px;color:#aaa;white-space:nowrap"></span>
|
||||
<button type="button" id="worldMapBtn" title="World map of all sites">World map</button>
|
||||
</div>
|
||||
|
||||
|
|
@ -691,6 +692,7 @@ function buildSiteList() {
|
|||
const entries = Object.entries(sites)
|
||||
.filter(([, m]) => m.has_fusion)
|
||||
.sort(([a], [b]) => a.localeCompare(b));
|
||||
qs("#sitesCount").textContent = `${entries.length} site${entries.length === 1 ? "" : "s"}`;
|
||||
if (!entries.length) { list.innerHTML = '<li style="color:#999;padding:10px">No fusion sites yet</li>'; return; }
|
||||
for (const [site, meta] of entries) {
|
||||
const li = document.createElement("li");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue