basically copy paste from kanye.rest
155
404.html
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<script
|
||||||
|
async
|
||||||
|
src="https://www.googletagmanager.com/gtag/js?id=UA-134041866-2"
|
||||||
|
></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag() {
|
||||||
|
dataLayer.push(arguments);
|
||||||
|
}
|
||||||
|
gtag("js", new Date());
|
||||||
|
gtag("config", "UA-134041866-2");
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="A free REST API for random 2 Chainz quotes"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="57x57"
|
||||||
|
href="static/apple-icon-57x57.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="60x60"
|
||||||
|
href="static/apple-icon-60x60.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="72x72"
|
||||||
|
href="static/apple-icon-72x72.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="76x76"
|
||||||
|
href="static/apple-icon-76x76.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="114x114"
|
||||||
|
href="static/apple-icon-114x114.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="120x120"
|
||||||
|
href="static/apple-icon-120x120.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="144x144"
|
||||||
|
href="static/apple-icon-144x144.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="152x152"
|
||||||
|
href="static/apple-icon-152x152.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="180x180"
|
||||||
|
href="static/apple-icon-180x180.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="192x192"
|
||||||
|
href="static/android-icon-192x192.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="32x32"
|
||||||
|
href="static/favicon-32x32.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="96x96"
|
||||||
|
href="static/favicon-96x96.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="16x16"
|
||||||
|
href="static/favicon-16x16.png"
|
||||||
|
/>
|
||||||
|
<link rel="manifest" href="static/manifest.json" />
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff" />
|
||||||
|
<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:description"
|
||||||
|
content="A free REST API for random 2 Chainz quotes"
|
||||||
|
/>
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta
|
||||||
|
property="og:image"
|
||||||
|
content="https://api.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:description"
|
||||||
|
content="A free REST API for random 2 Chainz quotes"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="twitter:image"
|
||||||
|
content="https://api.chainz.rest/static/apple-icon.png"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
media="screen"
|
||||||
|
href="css/index.css"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
media="screen"
|
||||||
|
href="css/chota.css"
|
||||||
|
/>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<nav class="nav">
|
||||||
|
<div class="nav-left">
|
||||||
|
<a class="brand" href="../">🌊 api.chainz.rest</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<div class="notfound">
|
||||||
|
<h1 class="">I'm lost in the world</h1>
|
||||||
|
<i>
|
||||||
|
<h4 class="is-text-right">- 2 Chainz</h4>
|
||||||
|
</i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
59
css/carbon.css
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
#carbonads {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
|
||||||
|
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#carbonads {
|
||||||
|
display: flex;
|
||||||
|
max-width: 330px;
|
||||||
|
background-color: hsl(0, 0%, 98%);
|
||||||
|
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
|
||||||
|
}
|
||||||
|
|
||||||
|
#carbonads a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#carbonads a:hover {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
#carbonads span {
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#carbonads .carbon-wrap {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carbon-img {
|
||||||
|
display: block;
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carbon-img img {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carbon-text {
|
||||||
|
font-size: 13px;
|
||||||
|
padding: 10px;
|
||||||
|
line-height: 1.5;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carbon-poweredby {
|
||||||
|
display: block;
|
||||||
|
padding: 8px 10px;
|
||||||
|
background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
|
||||||
|
text-align: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: .5px;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 9px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
1097
css/chota.css
Normal file
121
css/index.css
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
html {
|
||||||
|
padding-left: calc(100vw - 100%);
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 10px auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav #themeToggle {
|
||||||
|
margin-top: 0.4em;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav a {
|
||||||
|
padding-bottom: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inner {
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section {
|
||||||
|
padding: 1em;
|
||||||
|
font-size: 1.1em;
|
||||||
|
border: 2px solid var(--color-primary);
|
||||||
|
border-radius: 10px;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
margin: 0;
|
||||||
|
margin-left: 0.3em !important;
|
||||||
|
margin-bottom: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
font-size: 1.15em !important;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demo {
|
||||||
|
font-size: 1.25em;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demo a {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.extra {
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 0;
|
||||||
|
margin-top: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.extra a {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-top {
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab {
|
||||||
|
margin-left: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#quote {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
margin-top: 2em;
|
||||||
|
margin-left: 1em;
|
||||||
|
margin-right: 1em;
|
||||||
|
font-size: 1.1em;
|
||||||
|
font-weight: 700;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer p {
|
||||||
|
margin: 0;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wavy {
|
||||||
|
font-size: 0.8em;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* https://stackoverflow.com/a/4407335 */
|
||||||
|
|
||||||
|
.noselect {
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
/* iOS Safari */
|
||||||
|
-webkit-user-select: none;
|
||||||
|
/* Safari */
|
||||||
|
-khtml-user-select: none;
|
||||||
|
/* Konqueror HTML */
|
||||||
|
-moz-user-select: none;
|
||||||
|
/* Firefox */
|
||||||
|
-ms-user-select: none;
|
||||||
|
/* Internet Explorer/Edge */
|
||||||
|
user-select: none;
|
||||||
|
/* Non-prefixed version, currently
|
||||||
|
supported by Chrome and Opera */
|
||||||
|
}
|
13
gitlab-ci.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# This file is a template, and might need editing before it works on your project.
|
||||||
|
# Full project: https://gitlab.com/pages/plain-html
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- mkdir .public
|
||||||
|
- cp -r * .public
|
||||||
|
- mv .public public
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master
|
240
index.html
Normal file
@@ -0,0 +1,240 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<script
|
||||||
|
async
|
||||||
|
src="https://www.googletagmanager.com/gtag/js?id=UA-134041866-2"
|
||||||
|
></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag() {
|
||||||
|
dataLayer.push(arguments);
|
||||||
|
}
|
||||||
|
gtag("js", new Date());
|
||||||
|
gtag("config", "UA-134041866-2");
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="A free REST API for random 2 Chainz quotes"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="57x57"
|
||||||
|
href="static/apple-icon-57x57.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="60x60"
|
||||||
|
href="static/apple-icon-60x60.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="72x72"
|
||||||
|
href="static/apple-icon-72x72.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="76x76"
|
||||||
|
href="static/apple-icon-76x76.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="114x114"
|
||||||
|
href="static/apple-icon-114x114.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="120x120"
|
||||||
|
href="static/apple-icon-120x120.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="144x144"
|
||||||
|
href="static/apple-icon-144x144.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="152x152"
|
||||||
|
href="static/apple-icon-152x152.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="180x180"
|
||||||
|
href="static/apple-icon-180x180.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="192x192"
|
||||||
|
href="static/android-icon-192x192.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="32x32"
|
||||||
|
href="static/favicon-32x32.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="96x96"
|
||||||
|
href="static/favicon-96x96.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="16x16"
|
||||||
|
href="static/favicon-16x16.png"
|
||||||
|
/>
|
||||||
|
<link rel="manifest" href="static/manifest.json" />
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff" />
|
||||||
|
<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:description"
|
||||||
|
content="A free REST API for random 2 Chainz quotes"
|
||||||
|
/>
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta
|
||||||
|
property="og:image"
|
||||||
|
content="https://api.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:description"
|
||||||
|
content="A free REST API for random 2 Chainz quotes"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="twitter:image"
|
||||||
|
content="https://api.chainz.rest/static/apple-icon.png"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
media="screen"
|
||||||
|
href="css/index.css"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
media="screen"
|
||||||
|
href="css/chota.css"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
media="screen"
|
||||||
|
href="css/carbon.css"
|
||||||
|
/>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<nav class="nav">
|
||||||
|
<div class="nav-left">
|
||||||
|
<a class="brand" href="../">🌊 api.chainz.rest</a>
|
||||||
|
</div>
|
||||||
|
<!-- <div class="nav-right">
|
||||||
|
<a class="button clear no-top noselect" href="https://www.buymeacoffee.com/ajzbc" target="_blank">☕️ Buy
|
||||||
|
Me A Coffee!</a>
|
||||||
|
</div> -->
|
||||||
|
</nav>
|
||||||
|
<div class="inner">
|
||||||
|
<p>A free REST API for random 2 Chainz quotes</p>
|
||||||
|
<h3 class="title">API Usage</h3>
|
||||||
|
<div class="section">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col is-full is-marginless">
|
||||||
|
<p class="demo is-center">
|
||||||
|
GET <a href="https://api.chainz.rest" target="_blank"
|
||||||
|
>https://api.chainz.rest</a
|
||||||
|
>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="col is-full is-marginless is-center">
|
||||||
|
<a class="button clear no-top noselect" id="tweet" target="_blank"
|
||||||
|
>📢 Tweet</a
|
||||||
|
>
|
||||||
|
<a class="button clear no-top noselect" onclick="getQuote()"
|
||||||
|
>🔄 Refresh</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<code
|
||||||
|
>{
|
||||||
|
<div class="tab">"quote": "<span id="quote"></span>"</div>
|
||||||
|
}</code
|
||||||
|
>
|
||||||
|
<br />
|
||||||
|
<p class="extra">
|
||||||
|
Extra:
|
||||||
|
<a href="https://api.chainz.rest?format=text" target="_blank"
|
||||||
|
>https://api.chainz.rest?format=text</a
|
||||||
|
>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <div id="codefund">
|
||||||
|
</div>
|
||||||
|
<script src="https://codefund.io/properties/192/funder.js" async="async"></script> -->
|
||||||
|
|
||||||
|
<h3 class="title">FAQ</h3>
|
||||||
|
<div class="section">
|
||||||
|
<b>Can I use this in my project?</b>
|
||||||
|
<p>
|
||||||
|
Yes. Do what ever you want with it!
|
||||||
|
<a href="https://twitter.com/ajzbc" target="_blank"
|
||||||
|
>Let me know what you make!</a
|
||||||
|
>
|
||||||
|
</p>
|
||||||
|
<b>Is the API rate limited?</b>
|
||||||
|
<p>No, but be generous.</p>
|
||||||
|
<b>Is it open source? Can I contribute?</b>
|
||||||
|
<p>
|
||||||
|
Yes! Checkout my spaghetti code on github.
|
||||||
|
<a href="https://github.com/ajzbc/api.chainz.rest" target="_blank"
|
||||||
|
>API</a
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
href="https://github.com/ajzbc/api.chainz.rest/tree/gh-pages"
|
||||||
|
target="_blank"
|
||||||
|
>Site</a
|
||||||
|
>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<p>
|
||||||
|
👋 Made by
|
||||||
|
<a href="https://ajzbc.com" target="_blank">Andrew Jazbec</a>
|
||||||
|
<a href="https://twitter.com/ajzbc" target="_blank">@ajzbc</a>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="https://github.com/ajzbc/api.chainz.rest" target="_blank"
|
||||||
|
><img
|
||||||
|
alt="GitHub stars"
|
||||||
|
src="https://img.shields.io/github/stars/ajzbc/api.chainz.rest?style=social"
|
||||||
|
/></a>
|
||||||
|
</p>
|
||||||
|
<i class="wavy">Stay wavy 🌊</i>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="js/index.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
16
js/index.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
getQuote();
|
||||||
|
|
||||||
|
function getQuote() {
|
||||||
|
fetch("https://api.chainz.rest")
|
||||||
|
.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`
|
||||||
|
);
|
||||||
|
document.getElementById(
|
||||||
|
"tweet"
|
||||||
|
).href = `https://twitter.com/intent/tweet?text=${tweet}`;
|
||||||
|
});
|
||||||
|
}
|
BIN
static/android-icon-144x144.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
static/android-icon-192x192.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
static/android-icon-36x36.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
static/android-icon-48x48.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
static/android-icon-72x72.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
static/android-icon-96x96.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
static/apple-icon-114x114.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
static/apple-icon-120x120.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
static/apple-icon-144x144.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
static/apple-icon-152x152.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
static/apple-icon-180x180.png
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
static/apple-icon-57x57.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
static/apple-icon-60x60.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
BIN
static/apple-icon-72x72.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
static/apple-icon-76x76.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
static/apple-icon-precomposed.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
static/apple-icon.png
Normal file
After Width: | Height: | Size: 43 KiB |
2
static/browserconfig.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
|
BIN
static/favicon-16x16.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
static/favicon-32x32.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
static/favicon-96x96.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
static/favicon.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
41
static/manifest.json
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"name": "App",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-36x36.png",
|
||||||
|
"sizes": "36x36",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "0.75"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-48x48.png",
|
||||||
|
"sizes": "48x48",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "1.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-72x72.png",
|
||||||
|
"sizes": "72x72",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "1.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-96x96.png",
|
||||||
|
"sizes": "96x96",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "2.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-144x144.png",
|
||||||
|
"sizes": "144x144",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "3.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "4.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
static/ms-icon-144x144.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
static/ms-icon-150x150.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
static/ms-icon-310x310.png
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
static/ms-icon-70x70.png
Normal file
After Width: | Height: | Size: 8.9 KiB |