From 1aa844458e6acd786a0b301eb965ecc8fccae942 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 21 Jul 2022 10:15:40 +0200 Subject: display how many proposals were found --- index.html | 1 + script.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/index.html b/index.html index 041c550..c8be924 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@

OSM proposals

This page provides an overview of proposals for OpenStreetMap. The page is updated every hour.

+

diff --git a/script.js b/script.js index 7328594..664985c 100644 --- a/script.js +++ b/script.js @@ -1,4 +1,5 @@ const tbody = document.getElementById('tbody'); +const statusSpan = document.getElementById('status'); function newEl(tagname, content) { const cell = document.createElement(tagname); @@ -37,6 +38,9 @@ function display(proposals) { params.author = authorsInput.value; } + const nf = Intl.NumberFormat(); + statusSpan.textContent = `Found ${nf.format(proposals.length)} proposals.`; + updateUrl(params); tbody.innerHTML = ''; -- cgit v1.2.3
Status