-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (37 loc) · 2.1 KB
/
index.html
File metadata and controls
38 lines (37 loc) · 2.1 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Laszlo's Pizzeria</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<style type="text/css">
.main {display: flex;flex-direction: column;align-items: center;justify-content: center;} .footer {position: fixed;bottom 0;width: 100%;text-align: center;display: inline-block;} ul.share-buttons{list-style: none;padding: 0;} ul.share-buttons li{display: inline;} ul.share-buttons .sr-only{position: absolute;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);padding: 0;border: 0;height: 1px;width: 1px;overflow: hidden;}
</style>
</head>
<body>
<div class="main">
<img alt="Laszlo's Pizzeria logo" src="logo.png"><br>
<h1>TODAY'S SPECIAL</h1><br>
<h2>2 Large Supreme Pizzas..... <span id="pizzaprice"></span></h2><br>
</div>
<div class="footer">
<ul class="share-buttons">
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=http%3A//laszlospizzeria.com/"><img alt="facebook" src="Facebook.png"></a>
</li>
<li>
<a href="https://twitter.com/home?status=How%20much%20is%20Laszlo's%2010,000BTC%20pizza%20worth%20today?%20http%3A//laszlospizzeria.com/"><img alt="twitter" src="Twitter.png"></a>
</li>
</ul>
<p><small>Based on the 10,000BTC pizzas purchased by <a href="https://en.bitcoin.it/wiki/Laszlo_Hanyecz">laszlo</a> on May 22, 2010 (now known as Bitcoin Pizza Day). Powered by <a href="https://www.coindesk.com/price/">CoinDesk</a>.</br></br><font color="lightgray">btc 39cSjmYtYGpy8J64jqJoNyoiKTSjH55Xmt</br>doge DEGZFNHpjcwHiHC7HHSSdK3fjMBTeyAkrU</br>eth 0x190ca5A1540A5c31dCd25A5cC05223Bbb159BA44</br>usdc 0x40B40F9F4EFDADED387467b84b1b8B275655F894</font></small></p>
</div>
<script type="text/javascript">
fetch("https://data-api.coindesk.com/index/cc/v1/latest/tick?market=cadli&instruments=BTC-USD&apply_mapping=true")
.then(function(r) { return r.json(); })
.then(function(d) {
const price = d.Data['BTC-USD'].VALUE;
const pizzaPrice = 10000 * price;
document.getElementById("pizzaprice").innerHTML = pizzaPrice.toLocaleString(undefined, { style: 'currency', currency: 'USD' });
});
</script>
</body>
</html>