add deploy-time to page content
This commit is contained in:
parent
9e53c57f20
commit
7754a9337e
@ -131,8 +131,9 @@
|
|||||||
survives at this point).
|
survives at this point).
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
There are currently <span id="storeCount">97</span> stores indexed
|
There are currently <span id="storeCount">96</span> stores indexed
|
||||||
on this page.
|
on this page. Last updated
|
||||||
|
<span id="updatedOn">March 19, 2022</span>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="selected"></div>
|
<div id="selected"></div>
|
||||||
@ -328,10 +329,6 @@
|
|||||||
<td class="name">James Cummins Bookseller</td>
|
<td class="name">James Cummins Bookseller</td>
|
||||||
<td>699 Madison Ave, 7th Floor, New York</td>
|
<td>699 Madison Ave, 7th Floor, New York</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="" class="spotRow">
|
|
||||||
<td class="name">Jewel City Books</td>
|
|
||||||
<td>658 Franklin Ave, Brooklyn</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="" class="spotRow">
|
<tr id="" class="spotRow">
|
||||||
<td class="name">Joanne Hendricks Cookbooks</td>
|
<td class="name">Joanne Hendricks Cookbooks</td>
|
||||||
<td>488 Greenwich St, New York</td>
|
<td>488 Greenwich St, New York</td>
|
||||||
|
7
index.js
7
index.js
@ -17,6 +17,13 @@ fs.readFile("./index.html", function (err, data) {
|
|||||||
|
|
||||||
$("#Stores").html(mustache.render($("#Table").html(), { rows: stores }));
|
$("#Stores").html(mustache.render($("#Table").html(), { rows: stores }));
|
||||||
$("#storeCount").html(stores.length);
|
$("#storeCount").html(stores.length);
|
||||||
|
$("#updatedOn").html(
|
||||||
|
new Date().toLocaleDateString("en-US", {
|
||||||
|
year: "numeric",
|
||||||
|
month: "long",
|
||||||
|
day: "numeric",
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
fs.writeFile("./index.html", $.html(), (err) => {
|
fs.writeFile("./index.html", $.html(), (err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
Loading…
Reference in New Issue
Block a user