space->space-old, homepage written with picocss

This commit is contained in:
DarkCat09 2023-03-16 15:05:58 +04:00
parent b1769ade0c
commit fa88138bc2
37 changed files with 544 additions and 48 deletions

6
js/script.js Normal file
View file

@ -0,0 +1,6 @@
addEventListener('load', () => {
const birthday = new Date(2009, 6, 13, 13, 30)
const delta = new Date() - birthday
const age = delta / (1000 * 3600 * 24 * 365.25)
document.getElementById('age').innerText = Math.floor(age)
})