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:
parent
366cee51af
commit
86a62cd8b4
@ -73,7 +73,7 @@
|
|||||||
<section>
|
<section>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<span id="quote"></span>
|
<span id="quote"></span>
|
||||||
<footer><i>- 2 Chainz</i></footer>
|
<footer><i id="alias">- 2 Chainz</i></footer>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</section>
|
</section>
|
||||||
<p>
|
<p>
|
||||||
@ -250,6 +250,12 @@
|
|||||||
"tweet"
|
"tweet"
|
||||||
).href = `https://twitter.com/intent/tweet?text=${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>
|
||||||
<script src="https://unpkg.com/ionicons@5.0.0/dist/ionicons.js"></script>
|
<script src="https://unpkg.com/ionicons@5.0.0/dist/ionicons.js"></script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user