diff --git a/changelog.json b/changelog.json index 0e7f396..9288087 100644 --- a/changelog.json +++ b/changelog.json @@ -1,4 +1,11 @@ [ + { + "dt": "2024-12-24", + "version": "client-1.7.7", + "notes": [ + "add `bmc` freshness to changelog subnav" + ] + }, { "dt": "2024-12-22", "version": "client-1.7.6", diff --git a/data/movies.json b/data/movies.json index 8ed8c99..9986243 100644 --- a/data/movies.json +++ b/data/movies.json @@ -1,4 +1,32 @@ [ + { + "title": "The Lord of the Rings: The War of the Rohirrim", + "yearMonth": "2024-12", + "ticketCost": 10, + "month": "December", + "year": 2024 + }, + { + "title": "No movie", + "yearMonth": "2024-11", + "ticketCost": 0, + "month": "November", + "year": 2024 + }, + { + "title": "No movie", + "yearMonth": "2024-11", + "ticketCost": 0, + "month": "November", + "year": 2024 + }, + { + "title": "Activate", + "yearMonth": "2024-10", + "ticketCost": 20, + "month": "October", + "year": 2024 + }, { "title": "Beatlejuice Beatlejuice", "yearMonth": "2024-09", diff --git a/img/bmc/2024-10.jpg b/img/bmc/2024-10.jpg new file mode 100644 index 0000000..6c7dad7 Binary files /dev/null and b/img/bmc/2024-10.jpg differ diff --git a/img/bmc/2024-11.jpg b/img/bmc/2024-11.jpg new file mode 100644 index 0000000..9b1c285 Binary files /dev/null and b/img/bmc/2024-11.jpg differ diff --git a/img/bmc/2024-12.jpg b/img/bmc/2024-12.jpg new file mode 100644 index 0000000..7aaef3e Binary files /dev/null and b/img/bmc/2024-12.jpg differ diff --git a/js/changelog.js b/js/changelog.js index e703ca1..d8c333e 100644 --- a/js/changelog.js +++ b/js/changelog.js @@ -15,10 +15,14 @@ async function renderDatalog() { const latest = await rs.text(); // console.log(">> latest:", latest); // console.log(">> latest in ET:", convertToEasternTime(latest)); + + const ms = await fetch("../data/movies.json"); + const movieJson = await ms.json(); + // console.log(movieJson[0].yearMonth); const d = new Date(); const freshness = calculateFreshness(latest, d.toISOString()); - const syncTitle = `last data sync\n• ${convertToEasternTime(latest)}`; + const syncTitle = `data freshness:\n• bsky: ${convertToEasternTime(latest)}\n• bmc: ${movieJson[0].yearMonth}`; document.getElementById("releasenotes").innerHTML += `  ∾  ${freshness}`; }