1
0
mirror of https://gitlab.com/2-chainz/2-chainz-rest-site.git synced 2025-07-26 08:01:25 +00:00

hopefully final changes until new site can be made

This commit is contained in:
2020-03-05 00:07:55 -07:00
parent 61fb624fba
commit 78147cf204
34 changed files with 609 additions and 759 deletions

View File

@@ -1,13 +1,13 @@
getQuote();
function getQuote() {
fetch("https://api.chainz.rest/quote")
fetch("https://api.chainz.rest/quote", { method: "GET" })
.then(resp => resp.json())
.then(function(data) {
document.getElementById("quote").innerHTML = data.quote;
const tweet = encodeURIComponent(
`"${data.quote}"-@2chainz via https://2.chainz.rest @ajzbc`
`"${data.quote}"-@2chainz via https://2.chainz.rest`
);
document.getElementById(
"tweet"