summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html1
-rw-r--r--script.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/index.html b/index.html
index 041c550..c8be924 100644
--- a/index.html
+++ b/index.html
@@ -5,6 +5,7 @@
<h1>OSM proposals</h1>
<p>This page provides an overview of <a href="https://wiki.openstreetmap.org/wiki/Proposal">proposals</a> for OpenStreetMap. The page is updated every hour.</p>
<noscript>This page requires JavaScript.</noscript>
+ <p id=status></p>
<table border=1>
<thead>
<th>Status</th>
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 = '';