Begin work on personal about page

This commit is contained in:
Jonas Tobias Hopusch 2022-02-06 01:49:23 +01:00
parent bbf061a364
commit e32cf4f8f7
Failed to generate hash of commit
2 changed files with 28 additions and 0 deletions

19
content/about/index.md Normal file
View file

@ -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>

View file

@ -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()
}
})()