1
0
mirror of https://gitlab.com/2-chainz/2-chainz-rest-site.git synced 2025-06-16 07:06:51 +00:00

updated domain

This commit is contained in:
MisterBiggs 2021-07-09 16:07:29 -07:00
parent 1ad45f0ab1
commit 2fe4c176a8

View File

@ -9,7 +9,7 @@
<meta name="description" content="A REST API for 2 Chainz Quotes." /> <meta name="description" content="A REST API for 2 Chainz Quotes." />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="2 Chainz Rest API" /> <meta property="og:title" content="2 Chainz Rest API" />
<meta property="og:url" content="https://2.chainz.rest" /> <meta property="og:url" content="https://2chainz.ansonbiggs.com" />
<meta <meta
property="og:description" property="og:description"
content="A free REST API for 2 Chainz quotes" content="A free REST API for 2 Chainz quotes"
@ -18,16 +18,13 @@
<meta name="twitter:card" content="summary" /> <meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@Anson_3D" /> <meta name="twitter:creator" content="@Anson_3D" />
<meta name="twitter:url" content="https://2.chainz.rest" /> <meta name="twitter:url" content="https://2chainz.ansonbiggs.com" />
<meta name="twitter:title" content="2.chainz.rest" /> <meta name="twitter:title" content="2chainz.ansonbiggs.com" />
<meta <meta
name="twitter:description" name="twitter:description"
content="A free REST API for 2 Chainz quotes" content="A free REST API for 2 Chainz quotes"
/> />
<meta
name="twitter:image"
content="https://api.chainz.rest/static/apple-icon.png"
/>
<style> <style>
* { * {
transition: all 0.2s ease-out; /* Thanks https://news.ycombinator.com/item?id=19594993 */ transition: all 0.2s ease-out; /* Thanks https://news.ycombinator.com/item?id=19594993 */
@ -59,7 +56,7 @@
} }
} }
</style> </style>
<title>2.chainz.rest</title> <title>2chainz.ansonbiggs.com</title>
</head> </head>
<body> <body>
@ -67,7 +64,7 @@
<nav> <nav>
<ul> <ul>
<li> <li>
<a href="https://2.chainz.rest">2.chainz.rest</a> - A REST API for 2 <a href="https://2chainz.ansonbiggs.com">2chainz.ansonbiggs.com</a> - A REST API for 2
Chainz Quotes Chainz Quotes
</li> </li>
</ul> </ul>
@ -112,8 +109,8 @@
<p> <p>
send a <code>get</code> request to send a <code>get</code> request to
<code <code
><a href="https://api.chainz.rest/quote" ><a href="https://chainz-rest.azurewebsites.net/quote"
>https://api.chainz.rest/quote</a >https://chainz-rest.azurewebsites.net/quote</a
></code ></code
> >
</p> </p>
@ -135,8 +132,8 @@
> >
and is subject to change. An example return from and is subject to change. An example return from
<code> <code>
<a href="https://api.chainz.rest/quote?batch=2" <a href="https://chainz-rest.azurewebsites.net/quote?batch=2"
>https://api.chainz.rest/quote?batch=2</a >https://chainz-rest.azurewebsites.net/quote?batch=2</a
></code ></code
> >
</p> </p>
@ -163,8 +160,8 @@
<p> <p>
send a <code>get</code> request to send a <code>get</code> request to
<code <code
><a href="https://api.chainz.rest/alias" ><a href="https://chainz-rest.azurewebsites.net/alias"
>https://api.chainz.rest/alias</a >https://chainz-rest.azurewebsites.net/alias</a
></code ></code
> >
</p> </p>
@ -176,7 +173,7 @@
<section> <section>
<header> <header>
<h2> <h2>
Projects built using 2.chainz.rest (Your project could be here!) Projects built using 2chainz.ansonbiggs.com (Your project could be here!)
</h2> </h2>
</header> </header>
<aside> <aside>
@ -278,20 +275,20 @@
getQuote(); getQuote();
function getQuote() { function getQuote() {
fetch("https://api.chainz.rest/quote", { method: "GET" }) fetch("https://chainz-rest.azurewebsites.net/quote", { method: "GET" })
.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://2.chainz.rest` `"${data.quote}" -@2chainz via https://2chainz.ansonbiggs.com`
); );
document.getElementById( document.getElementById(
"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" }) fetch("https://chainz-rest.azurewebsites.net/alias", { method: "GET" })
.then((resp) => resp.json()) .then((resp) => resp.json())
.then(function (data) { .then(function (data) {
document.getElementById("alias").innerHTML = "- " + data.alias; document.getElementById("alias").innerHTML = "- " + data.alias;