abtmtr-v4/views/whois/scripts/data_get_members.js

13 lines
637 B
JavaScript

fetch_ask("https://pronouns.cc/api/v1/users/clhd8desmggedm3q1t3g")
.then((x) => x.json())
.then((data) => {
data_get.innerHTML = data.members.reduce((html, member) => (
html +
`<h2><a href="https://pronouns.cc/@${data.name}/${member.name}" target="_blank">${member.display_name}</a> <small>${member.pronouns.map(x => x.pronouns.split("/")[0]).join("/")}</small></h2>
<fieldset>
${member.names.map(x => `<p><b>${x.value}</b> (${x.status})</p>`).join("")}
</fieldset>
<p>${member.bio.replaceAll("\n", "<br />")}</p>
<p>Signature: <b>${member.name}</b></p>`
), "");
});