Begin work on personal about page

about-page
Jonas Tobias Hopusch 8 months ago
parent bbf061a364
commit e32cf4f8f7
Failed to generate hash of commit
  1. 19
      content/about/index.md
  2. 9
      static/scripts/calcage.js

@ -0,0 +1,19 @@
+++
title = "About me / Über mich"
description = "Here's where I introduce myself. Hier stelle ich mich selbst vor."
date = "2022-02-06 00:00:00+01:00"
draft = true
+++
### Über mich
Hallo,
mein Name ist Jonas Hopusch, im Internet normalerweise bekannt als "jotoho".
Ich bin <span class="age-display">x</span> Jahre alt.
-----
### About me
<script style="display: none;" src="/scripts/calcage.js" async></script>

@ -0,0 +1,9 @@
(() => {
"use strict";
let ageElements = document.getElementsByClassName("age-display")
for (let i = 0; i < ageElements.length; i++) {
ageElements[i].innerText = (Math.floor(((new Date()).getTime() - (new Date(2001, 3, 29)).getTime())
/ 1000 / 60 / 60 / 24 / 365))
.toString()
}
})()
Loading…
Cancel
Save