jennex

Our Wedding Site
git clone git://git.alexkarle.com.com/jennex
Log | Files | Refs | README | LICENSE

index.tmpl (734B) [raw]


      1 <div class="home-photo-container">
      2   <img class="home-photo" src="/static/engagement-shoot.jpg" alt="Alex and Jennie">
      3 </div>
      4 
      5 <p class="index-joinus">
      6   Please join us for our wedding celebration on
      7 </p>
      8 <p class="index-date">
      9   September 9, 2023
     10 </p>
     11 <p class="index-daystill">
     12   <span id="daystill"></span>
     13 </p>
     14 <script>
     15 const now = new Date();
     16 const bigday = new Date("2023-09-09");
     17 const daysUntil = parseInt((bigday.getTime() - now.getTime()) / 1000 / 3600 / 24) + 1;
     18 if (daysUntil != 1) {
     19     document.getElementById("daystill").innerHTML = daysUntil + " days";
     20 } else {
     21     document.getElementById("daystill").innerHTML = daysUntil + " day";
     22 }
     23 document.getElementById("daystill").innerHTML += " until the big day!";
     24 </script>