add deploy-time to page content
This commit is contained in:
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 }));
|
||||
$("#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;
|
||||
|
Reference in New Issue
Block a user