mirror of
https://gitlab.com/2-chainz/2-chainz-rest-site.git
synced 2025-06-15 22:56:45 +00:00
quote now pulls an alias aswell
This commit is contained in:
parent
366cee51af
commit
86a62cd8b4
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user