-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
179 lines (171 loc) · 5.39 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Minimalistic Bitcoin Dashboard - live price, fees, mempool stats, and halving estimate."
/>
<!-- Open Graph Meta Tags -->
<meta property="og:url" content="https://minibtc.netlify.app/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="MiniBTC" />
<meta property="og:description" content="Minimalistic Bitcoin Dashboard" />
<meta property="og:image" content="https://minibtc.netlify.app/baner.png" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="minibtc.netlify.app" />
<meta property="twitter:url" content="https://minibtc.netlify.app/" />
<meta name="twitter:title" content="MiniBTC" />
<meta name="twitter:description" content="Minimalistic Bitcoin Dashboard" />
<meta
name="twitter:image"
content="https://minibtc.netlify.app/baner.png"
/>
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<link rel="manifest" href="/manifest.json" />
<title>MiniBTC</title>
</head>
<body>
<noscript>
This website requires JavaScript to function, please enable JavaScript to
view the content.
</noscript>
<header>
<a href="/">
<h1>MiniBTC</h1>
</a>
<nav>
<ul>
<li>
<button
id="install"
class="install"
title="Install"
hidden
></button>
</li>
<li>
<a
href="https://github.com/caderek/minibtc"
class="github"
title="View source code"
target="_blank"
></a>
</li>
<li>
<button id="mode" class="mode" title="Toggle dark mode"></button>
</li>
</ul>
</nav>
</header>
<div id="box" class="box">
<button
id="fullscreen"
class="fullscreen"
title="Fullscreen"
hidden
></button>
<main>
<section class="price" title>
<h2>BTC PRICE</h2>
<div>
<p id="price" data-title="Click to toggle the unit">loading...</p>
<p class="last24h">Last 24h: <span id="last24h">-</span></p>
</div>
</section>
<section class="fees">
<h2>FEES</h2>
<ul>
<li>
<h3>Low<br />priority</h3>
<p class="fee-sat"><strong id="fee-low">-</strong> sat/vB</p>
<p
class="fee-usd"
id="fee-low-usd"
data-title="Average transaction of 140 vB"
>
-
</p>
</li>
<li>
<h3>Medium<br />priority</h3>
<p class="fee-sat"><strong id="fee-mid">-</strong> sat/vB</p>
<p
class="fee-usd"
id="fee-mid-usd"
data-title="Average transaction of 140 vB"
>
-
</p>
</li>
<li>
<h3>High<br />priority</h3>
<p class="fee-sat"><strong id="fee-high">-</strong> sat/vB</p>
<p
class="fee-usd"
id="fee-high-usd"
data-title="Average transaction of 140 vB"
>
-
</p>
</li>
</ul>
</section>
<section class="mempool">
<h2>MEMPOOL</h2>
<p id="mempool-congestion">
Unconfirmed: <strong id="unconfirmed">-</strong> TXs,
<strong id="blocks">-</strong> blocks
</p>
<p
data-title="Optimal incoming transactions: 1,667 vB/s. Default memory limit of a node: 300 MB"
>
Incoming: <strong id="incoming">-</strong> vB/s | Memory:
<strong id="memory">-</strong>
</p>
<p id="block-time">
Last block: <strong id="last-block">-</strong> ago,
<strong id="average-block">-</strong> average
</p>
</section>
<section class="halving">
<h2>HALVING</h2>
<p id="halving-progress">
<strong id="halving-blocks">-</strong> blocks left
</p>
<p
id="halving-countdown"
data-title="It's an estimate, it gets more precise as we get closer to the halving."
>
-
</p>
<p
id="halving-date"
class="halving-date"
data-title="Click to toggle between GMT and local time"
>
-
</p>
</section>
<section class="chart">
<canvas id="chart"></canvas>
</section>
</main>
</div>
<footer>
<a href="https://minibtc.netlify.app/" target="_blank"
>Open as a standalone app</a
>
</footer>
<pwa-install
manual-apple="true"
manual-chrome="true"
icon="/icon.svg"
install-description="This site has app functionality. Add it to your Home Screen for fullscreen view and easy access."
></pwa-install>
<script src="src/main.ts" type="module"></script>
</body>
</html>