Begin work on personal about page
This commit is contained in:
parent
bbf061a364
commit
e32cf4f8f7
2 changed files with 28 additions and 0 deletions
19
content/about/index.md
Normal file
19
content/about/index.md
Normal 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>
|
9
static/scripts/calcage.js
Normal file
9
static/scripts/calcage.js
Normal 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()
|
||||
}
|
||||
})()
|
Loading…
Reference in a new issue