addEventListener("load", async (ev) => {
const isMobile = window.matchMedia("(max-width: 900px)").matches;
if (isMobile) return;
const authorElem = document.getElementById("author");
const greetElem = document.getElementById("greet");
const request = await fetch("https://api.m1kadev.nl/greet");
const repsonse = await request.json();
greetElem.innerHTML = repsonse.quote;
greetElem.lang = repsonse.lang;
authorElem.innerHTML = `- ${repsonse.author}`;
greetElem.parentElement.style.display = "initial";
});