]> git.ekhem.eu.org Git - website.git/commitdiff
Show date of last modification.
authorJakub Czajka <jczajka@google.com>
Sun, 5 May 2024 16:39:52 +0000 (18:39 +0200)
committerJakub Czajka <jczajka@google.com>
Sun, 5 May 2024 16:39:52 +0000 (18:39 +0200)
index.html

index 9158ca829ffd95df2bf0522c4799953109bf1e82..97e6320c8893168c9624acab848a7ebeb61280cc 100644 (file)
     }
     .bottom-container {
       display: grid;
-      grid-template-columns: 1fr 1fr;
+      grid-template-columns: 1fr 1fr 1fr 1fr;
     }
     .bottom-container p {
       margin: 0;
     }
-    .bottom-container p:first-child {
+    .bottom-container p:nth-child(2n+1) {
       text-align: right;
     }
     iframe {
     <br/>
   </div>
   <div class="bottom-container">
+    <p>Modified:&nbsp;</p>
+    <p id='modified' />
+      <script>
+        var last_modified_timestamp = new Date(document.lastModified);
+        var last_modified = last_modified_timestamp.getFullYear() + '/'
+          + last_modified_timestamp.getMonth() + '/'
+          + last_modified_timestamp.getDate()
+        document.getElementById('modified').innerHTML = last_modified;
+      </script>
     <p>Views:&nbsp;</p>
     <p>
       <iframe src="/views/" frameborder=0