Navigation, lineawesome icons, more sections, inxi.txt
This commit is contained in:
parent
3856235544
commit
771c63df54
23 changed files with 4847 additions and 38 deletions
10
js/script.js
10
js/script.js
|
@ -4,3 +4,13 @@ addEventListener('load', () => {
|
|||
const age = delta / (1000 * 3600 * 24 * 365.25)
|
||||
document.getElementById('age').innerText = Math.floor(age)
|
||||
})
|
||||
|
||||
addEventListener('load', () => {
|
||||
const xhr = new XMLHttpRequest()
|
||||
xhr.open('GET', '/inxi.txt')
|
||||
xhr.onreadystatechange = () => {
|
||||
if (xhr.readyState != xhr.DONE || xhr.status != 200) return
|
||||
document.getElementById('inxi').innerText = xhr.response
|
||||
}
|
||||
xhr.send()
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue