2023-11-26 06:55:00 +00:00
|
|
|
const data_get = document.getElementById("data_get");
|
2024-01-19 16:28:16 +00:00
|
|
|
fetch_ask("https://pronouns.cc/api/v1/users/MeowcaTheoRange")
|
2023-11-26 06:55:00 +00:00
|
|
|
.then((x) => x.json())
|
|
|
|
.then((user) => {
|
|
|
|
data_get.innerHTML = user.links.reduce(
|
|
|
|
(html, link) =>
|
|
|
|
html +
|
|
|
|
`<h1><a href="${link}" target="_blank">${new URL(link).host}</a></h1>
|
|
|
|
<p>${link}</p>`,
|
|
|
|
""
|
|
|
|
);
|
|
|
|
});
|