diff options
author | Martin Fischer <martin@push-f.com> | 2022-07-21 10:15:40 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-07-21 10:15:40 +0200 |
commit | 1aa844458e6acd786a0b301eb965ecc8fccae942 (patch) | |
tree | 94c5d91454fcbf9c3086403ddc9b7c7f15278292 /script.js | |
parent | 69dea5adb17d5bb8e4c10cddbc01508a0d5b5324 (diff) |
display how many proposals were found
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 = ''; |