diff options
-rw-r--r-- | index.html | 1 | ||||
-rw-r--r-- | script.js | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -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> @@ -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 = ''; |