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