add deploy-time to page content

This commit is contained in:
David 2022-03-19 16:28:26 -04:00
parent 9e53c57f20
commit 7754a9337e
2 changed files with 10 additions and 6 deletions

View File

@ -131,8 +131,9 @@
survives at this point).
</p>
<p>
There are currently <span id="storeCount">97</span> stores indexed
on this page.
There are currently <span id="storeCount">96</span> stores indexed
on this page. Last updated
<span id="updatedOn">March 19, 2022</span>.
</p>
</div>
<div id="selected"></div>
@ -328,10 +329,6 @@
<td class="name">James Cummins Bookseller</td>
<td>699 Madison Ave, 7th Floor, New York</td>
</tr>
<tr id="" class="spotRow">
<td class="name">Jewel City Books</td>
<td>658 Franklin Ave, Brooklyn</td>
</tr>
<tr id="" class="spotRow">
<td class="name">Joanne Hendricks Cookbooks</td>
<td>488 Greenwich St, New York</td>

View File

@ -17,6 +17,13 @@ fs.readFile("./index.html", function (err, data) {
$("#Stores").html(mustache.render($("#Table").html(), { rows: stores }));
$("#storeCount").html(stores.length);
$("#updatedOn").html(
new Date().toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
})
);
fs.writeFile("./index.html", $.html(), (err) => {
if (err) throw err;