1
0
mirror of https://gitlab.com/2-chainz/2-chainz-rest-site.git synced 2025-06-16 07:06:51 +00:00

quote now pulls an alias aswell

This commit is contained in:
Anson 2020-04-20 22:43:20 -07:00
parent 366cee51af
commit 86a62cd8b4

View File

@ -73,7 +73,7 @@
<section>
<blockquote>
<span id="quote"></span>
<footer><i>- 2 Chainz</i></footer>
<footer><i id="alias">- 2 Chainz</i></footer>
</blockquote>
</section>
<p>
@ -250,6 +250,12 @@
"tweet"
).href = `https://twitter.com/intent/tweet?text=${tweet}`;
});
fetch("https://api.chainz.rest/alias", { method: "GET" })
.then((resp) => resp.json())
.then(function (data) {
document.getElementById("alias").innerHTML = "- " + data.alias;
});
}
</script>
<script src="https://unpkg.com/ionicons@5.0.0/dist/ionicons.js"></script>