-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (48 loc) · 1.85 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<head>
<title>Sourdoge</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="resources/prism.css">
</head>
<body>
<div class="page">
<header>
<h1>Sourdoge</h1>
<p>Demonstrating consumption of Doge Web Components.</p>
</header>
<section>
<h3>1. Add an image of a dog to your webpage (because ..why not)</h3>
<pre class="language-html">
<code><script type="module" src="https://fetch.dogecoin.org/doge-pal.js"></script>
<doge-pal></doge-pal></code>
</pre>
<script type="module" src="https://fetch.dogecoin.org/doge-pal.js"></script>
<doge-pal></doge-pal>
</section>
<section>
<h3>2. Display the current price of Dogecoin in a currency of your choice</h3>
<pre class="language-html">
<code><script type="module" src="https://fetch.dogecoin.org/doge-price.js"></script>
<doge-price currency="usd"></doge-price></code>
</pre>
<script type="module" src="https://fetch.dogecoin.org/doge-price.js"></script>
<p><b><doge-price currency="usd"></doge-price></b></p>
</section>
<section>
<h3>3. Display a Dogecoin themed QR code</h3>
<pre class="language-html">
<code><script type="module" src="https://fetch.dogecoin.org/doge-qr.js"></script>
<doge-qr address="D89DhnsgKncmN12RejxudfU8AwXp3946q1"></doge-qr></code>
</pre>
<script type="module" src="https://fetch.dogecoin.org/doge-qr.js"></script>
<doge-qr address="D89DhnsgKncmN12RejxudfU8AwXp3946q1"></doge-qr>
</section>
<script src="resources/prism.js"></script>
<script>
Prism.highlightAll();
</script>
</div>
</body>
</html>