~fmac/epocheve

bda73ba41d12a8aad5c5640e86b738142f819c72 — Francesco Camuffo 1 year, 6 months ago d4c4693 main
Fetch json list
2 files changed, 2 insertions(+), 7 deletions(-)

M assets/js/main.js
M content/_index.html
M assets/js/main.js => assets/js/main.js +1 -6
@@ 4,12 4,7 @@ window.Alpine = Alpine

Alpine.data('epochs', () => ({
  cur: 0,
  futures: [
    { e: 1660000000, title: null, link: null },
    { e: 1700000000, title: null, link: null },
    { e: 1800000000, title: null, link: null },
    { e: 2147483647, title: "2038 Epochalypse", link: "https://en.wikipedia.org/wiki/Year_2038_problem" }
  ],
  futures: [],

  init() {
    this.tic()

M content/_index.html => content/_index.html +1 -1
@@ 8,7 8,7 @@ title: EpochEve
    <br>
    Here's how long you've got to wait for their moment to come.
  </p>
  <div class="row row-cols-1 g-2">
  <div x-init="futures = await (await fetch('/futures.json')).json()" class="row row-cols-1 g-2">
    <template x-for="fut in futures">
      <div class="col">
        <div class="card">