mirror of
https://gitlab.com/2-chainz/2-chainz-rest-site.git
synced 2025-06-15 22:56:45 +00:00
updated quote api url
This commit is contained in:
parent
afe41969b6
commit
61fb624fba
16
404.html
16
404.html
@ -17,7 +17,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>api.chainz.rest</title>
|
||||
<title>2.chainz.rest</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="A free REST API for random 2 Chainz quotes"
|
||||
@ -97,9 +97,9 @@
|
||||
<meta name="msapplication-TileImage" content="static/ms-icon-144x144.png" />
|
||||
<meta name="theme-color" content="#ffffff" />
|
||||
|
||||
<meta property="og:title" content="api.chainz.rest" />
|
||||
<meta property="og:site_name" content="api.chainz.rest" />
|
||||
<meta property="og:url" content="https://api.chainz.rest" />
|
||||
<meta property="og:title" content="2.chainz.rest" />
|
||||
<meta property="og:site_name" content="2.chainz.rest" />
|
||||
<meta property="og:url" content="https://2.chainz.rest" />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="A free REST API for random 2 Chainz quotes"
|
||||
@ -107,20 +107,20 @@
|
||||
<meta property="og:type" content="website" />
|
||||
<meta
|
||||
property="og:image"
|
||||
content="https://api.chainz.rest/static/apple-icon.png"
|
||||
content="https://2.chainz.rest/static/apple-icon.png"
|
||||
/>
|
||||
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:creator" content="@ajzbc" />
|
||||
<meta name="twitter:url" content="https://api.chainz.rest" />
|
||||
<meta name="twitter:title" content="api.chainz.rest" />
|
||||
<meta name="twitter:url" content="https://2.chainz.rest" />
|
||||
<meta name="twitter:title" content="2.chainz.rest" />
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="A free REST API for random 2 Chainz quotes"
|
||||
/>
|
||||
<meta
|
||||
name="twitter:image"
|
||||
content="https://api.chainz.rest/static/apple-icon.png"
|
||||
content="https://2.chainz.rest/static/apple-icon.png"
|
||||
/>
|
||||
|
||||
<link
|
||||
|
@ -17,7 +17,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>api.chainz.rest</title>
|
||||
<title>2.chainz.rest</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="A free REST API for random 2 Chainz quotes"
|
||||
|
@ -1,13 +1,13 @@
|
||||
getQuote();
|
||||
|
||||
function getQuote() {
|
||||
fetch("https://api.chainz.rest")
|
||||
fetch("https://api.chainz.rest/quote")
|
||||
.then(resp => resp.json())
|
||||
.then(function(data) {
|
||||
document.getElementById("quote").innerHTML = data.quote;
|
||||
|
||||
const tweet = encodeURIComponent(
|
||||
`"${data.quote}"-@2chainz via https://api.chainz.rest @ajzbc`
|
||||
`"${data.quote}"-@2chainz via https://2.chainz.rest @ajzbc`
|
||||
);
|
||||
document.getElementById(
|
||||
"tweet"
|
||||
|
Loading…
x
Reference in New Issue
Block a user