-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
180 lines (178 loc) · 8.12 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
180
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
<meta charset="UTF-8" />
<title>bscfee.wtf?</title>
<link
href="https://fonts.googleapis.com/css2?family=Cabin:wght@600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<script type="text/javascript" src="js/main.js"></script>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div id="container">
<svg
display="none"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 100 100"
>
<defs>
<g id="nightIcon">
<path
d="M96.76,66.458c-0.853-0.852-2.15-1.064-3.23-0.534c-6.063,2.991-12.858,4.571-19.655,4.571 C62.022,70.495,50.88,65.88,42.5,57.5C29.043,44.043,25.658,23.536,34.076,6.47c0.532-1.08,0.318-2.379-0.534-3.23 c-0.851-0.852-2.15-1.064-3.23-0.534c-4.918,2.427-9.375,5.619-13.246,9.491c-9.447,9.447-14.65,22.008-14.65,35.369 c0,13.36,5.203,25.921,14.65,35.368s22.008,14.65,35.368,14.65c13.361,0,25.921-5.203,35.369-14.65 c3.872-3.871,7.064-8.328,9.491-13.246C97.826,68.608,97.611,67.309,96.76,66.458z"
></path>
</g>
</defs>
</svg>
<svg
display="none"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 35 35"
>
<defs>
<g id="dayIcon">
<path
d="M6,17.5C6,16.672,5.328,16,4.5,16h-3C0.672,16,0,16.672,0,17.5 S0.672,19,1.5,19h3C5.328,19,6,18.328,6,17.5z M7.5,26c-0.414,0-0.789,0.168-1.061,0.439l-2,2C4.168,28.711,4,29.086,4,29.5 C4,30.328,4.671,31,5.5,31c0.414,0,0.789-0.168,1.06-0.44l2-2C8.832,28.289,9,27.914,9,27.5C9,26.672,8.329,26,7.5,26z M17.5,6 C18.329,6,19,5.328,19,4.5v-3C19,0.672,18.329,0,17.5,0S16,0.672,16,1.5v3C16,5.328,16.671,6,17.5,6z M27.5,9 c0.414,0,0.789-0.168,1.06-0.439l2-2C30.832,6.289,31,5.914,31,5.5C31,4.672,30.329,4,29.5,4c-0.414,0-0.789,0.168-1.061,0.44 l-2,2C26.168,6.711,26,7.086,26,7.5C26,8.328,26.671,9,27.5,9z M6.439,8.561C6.711,8.832,7.086,9,7.5,9C8.328,9,9,8.328,9,7.5 c0-0.414-0.168-0.789-0.439-1.061l-2-2C6.289,4.168,5.914,4,5.5,4C4.672,4,4,4.672,4,5.5c0,0.414,0.168,0.789,0.439,1.06 L6.439,8.561z M33.5,16h-3c-0.828,0-1.5,0.672-1.5,1.5s0.672,1.5,1.5,1.5h3c0.828,0,1.5-0.672,1.5-1.5S34.328,16,33.5,16z M28.561,26.439C28.289,26.168,27.914,26,27.5,26c-0.828,0-1.5,0.672-1.5,1.5c0,0.414,0.168,0.789,0.439,1.06l2,2 C28.711,30.832,29.086,31,29.5,31c0.828,0,1.5-0.672,1.5-1.5c0-0.414-0.168-0.789-0.439-1.061L28.561,26.439z M17.5,29 c-0.829,0-1.5,0.672-1.5,1.5v3c0,0.828,0.671,1.5,1.5,1.5s1.5-0.672,1.5-1.5v-3C19,29.672,18.329,29,17.5,29z M17.5,7 C11.71,7,7,11.71,7,17.5S11.71,28,17.5,28S28,23.29,28,17.5S23.29,7,17.5,7z M17.5,25c-4.136,0-7.5-3.364-7.5-7.5 c0-4.136,3.364-7.5,7.5-7.5c4.136,0,7.5,3.364,7.5,7.5C25,21.636,21.636,25,17.5,25z"
></path>
</g>
</defs>
</svg>
<svg
display="none"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 35 35"
>
<defs>
<g id="downloadIcon">
<path
d="M84.58,47a7.71,7.71,0,1,1,10.8,11L66.09,86.88a7.72,7.72,0,0,1-10.82,0L26.4,58.37a7.71,7.71,0,1,1,10.81-11L53.1,63.12l.16-55.47a7.72,7.72,0,0,1,15.43.13l-.15,55L84.58,47ZM0,113.48.1,83.3a7.72,7.72,0,1,1,15.43.14l-.07,22q46,.09,91.91,0l.07-22.12a7.72,7.72,0,1,1,15.44.14l-.1,30h-.09a7.71,7.71,0,0,1-7.64,7.36q-53.73.1-107.38,0A7.7,7.7,0,0,1,0,113.48Z"
></path>
</g>
</defs>
</svg>
<svg
display="none"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="-749 751 500 500"
>
<defs>
<g id="bnbIcon">
<path
d="M-349.2,1094.6c-50.3,49.6-100.2,98.8-149.5,147.4c-49.2-49.2-98.6-98.6-147-147c16.9-17,34.8-34.9,53-53.2c29.8,29.8,60.9,60.9,93.5,93.5c5.4-6.1,9.9-11.6,14.8-16.6c24.5-24.7,49.3-49.2,73.7-74c4.6-4.7,7.2-4.5,11.6,0.1c14.4,15.2,29.2,30,43.9,44.9C-353.7,1091.1-352,1092.3-349.2,1094.6z M-404.2,961.4c-31.5-31.5-62.8-62.8-94.1-94.1c-32.9,32.2-64.5,63-95.7,93.4c-16.8-16.9-35-35.1-52.7-52.9c49-49,98.4-98.3,148.6-148.5c48.6,48.8,98.2,98.7,147.9,148.7C-368.2,925.9-386.1,943.5-404.2,961.4z M-444,1000.6c-18.7,18.8-36.8,37-54.5,54.8c-18-18.1-36.3-36.5-53.9-54.2c17.5-17.5,36.1-36,54.1-54C-480.7,964.6-462,982.9-444,1000.6z M-311.8,1055.4c-17.7-17.7-35.7-35.8-53-53.1c18-17.9,36.1-36,54.4-54.2c17.1,17.3,35.1,35.4,52.7,53.2C-275.5,1019.1-293.5,1037.1-311.8,1055.4zM-685.5,1055.6c-19.2-19.1-37-37-54.3-54.2c17.3-17.3,35.3-35.3,54.2-54.2c17.2,17.3,35.3,35.5,51.7,51.9C-651.4,1018.3-668.7,1037.2-685.5,1055.6z"
/>
</g>
</defs>
</svg>
<p>
You've spent <span id="gasFeeTotal">🤔</span> on transaction fees. Right now, that's
<span id="dollarFeePrice">🤔</span>.
</p>
<p>
<span id="txOutCountFail">🤔</span> transactions failed, costing you
<span id="gasFeeTotalFail">🤔</span>. Right now, that's
<span id="dollarFeeFailedPrice">🤔</span>.
</p>
<p>
In summary you used <span id="gasUsedTotal">🤔</span> gas to send
<span id="txOutCount">🤔</span> transactions with an average price of
<span id="gasPricePerTx">🤔</span> gwei.
</p>
<div id="exportButton" style="display: none">
<svg viewBox="0 0 122.88 120.89">
<use xlink:href="#downloadIcon"></use>
</svg>
</div>
<div class="toggle">
<svg class="nightIcon" viewBox="0 0 100 100">
<use xlink:href="#nightIcon"></use>
</svg>
<svg class="dayIcon" viewBox="0 0 35 35">
<use xlink:href="#dayIcon"></use>
</svg>
</div>
<div id="tips">
<p>Tip me:</p>
<div class="tip" id="tinytip">
<div>
<svg class="bnbIcon" viewBox="-749 751 500 500">
<use xlink:href="#bnbIcon"></use>
</svg>
<span>0.001</span>
</div>
</div>
<div class="tip" id="smalltip">
<div>
<svg class="bnbIcon" viewBox="-749 751 500 500">
<use xlink:href="#bnbIcon"></use>
</svg>
<span>0.010</span>
</div>
</div>
<div class="tip" id="bigtip">
<div>
<svg class="bnbIcon" viewBox="-749 751 500 500">
<use xlink:href="#bnbIcon"></use>
</svg>
<span>0.100</span>
</div>
</div>
<div class="tip" id="hugetip">
<div>
<svg class="bnbIcon" viewBox="-749 751 500 500">
<use xlink:href="#bnbIcon"></use>
</svg>
<span>1.000</span>
</div>
</div>
</div>
<footer>
<p id="attrib">
Powered by
<strong><a href="https://bscscan.com/apis">BscScan.com</a></strong>
and
<strong
><a href="https://www.coingecko.com/en/api">CoinGecko</a></strong
>
APIs.
</p>
<p>
Built by
<strong><a href="https://pufler.dev">Julian Pufler</a></strong>
and inspired by
<strong><a href="https://fees.wtf">fees.wtf?</a></strong>
</p>
</footer>
</div>
</body>
<script>
window.addEventListener("load", init);
$(() => {
let darkMode = localStorage.getItem("darkmode") === 'true';
const toggle = () => {
$(".toggle").toggleClass("active");
$("body").toggleClass("night");
}
darkMode && toggle();
$(".toggle").click(() => {
toggle();
localStorage.setItem('darkmode', !darkMode)
});
});
</script>
</html>