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; // this is misspelled in the prod api LMAAO
greetElem.lang = repsonse.lang;
authorElem.innerHTML = repsonse.author;
authorElem.style.display = "none";
greetElem.parentElement.style.display = "initial";
});