diff --git a/content/about/index.md b/content/about/index.md new file mode 100644 index 0000000..3aca9d0 --- /dev/null +++ b/content/about/index.md @@ -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 x Jahre alt. + +----- + +### About me + + diff --git a/static/scripts/calcage.js b/static/scripts/calcage.js new file mode 100644 index 0000000..f64461a --- /dev/null +++ b/static/scripts/calcage.js @@ -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() + } +})()