-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathcharts.html
288 lines (254 loc) · 13 KB
/
charts.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!doctype html>
<html lang="en" class='color-transition'>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<!-- PWA -->
<meta name="theme-color" content="#1E2124" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="#1E2124" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="msapplication-TileImage" content="/img/background-multichain-min.png">
<meta name="msapplication-TileColor" content="#1E2124">
<meta name="msapplication-tap-highlight" content="no">
<title>DexPairs.xyz | Charts</title>
<meta name="description" content="Track prices of your tokens on multiple chains through multiple protocols. Supports Ethereum, Cronos, BSC, xDai, Polygon, Fantom, Arbitrum One, zkSync Era, Celo and Avalanche chains." />
<meta name="author" content="Dorian Bayart" />
<meta name="keywords" content="dexpairs, crypto, currency, prices, portfolio, tokens, wallet, nft, bitcoin, ens, eth, subgraph, matic, polygon, ethereum, cronos, bsc, bnb chain, fantom, xdai, gnosis, arbitrum, avalanche, celo, zksync, defi, dex, uniswap, quickswap, pancakeswap, spiritswap, honeyswap" />
<meta name="robots" content="index, follow" />
<link rel="shortcut icon" type="image/png" href="/img/background-multichain-min.png" />
<link href="./charts" rel="canonical" />
<meta property="og:title" content="DexPairs.xyz | Charts" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Track prices of your tokens on multiple chains through multiple protocols. Supports Ethereum, Polygon, BSC, Fantom and xDai chains." />
<meta property="og:url" content="./charts" />
<meta property="og:image" content="/img/background-multichain-min.png" />
<meta property="og:site_name" content="DexPairs" />
<link rel="alternate" type="application/atom+xml" title="DexPairs.xyz News" href="/feed.atom" />
<link rel="manifest" href="/manifest.json">
<script src="/public/js/pwa.js"></script>
<link rel="stylesheet" href="./public/colors.css">
<link rel="stylesheet" href="./public/common.css">
<link rel="stylesheet" href="./public/header.css">
<link rel="stylesheet" href="./public/footer.css">
<link rel="stylesheet" href="./public/gas.css">
<link rel="stylesheet" href="./public/design.css">
<link rel="stylesheet" href="./public/responsive.css">
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/localforage/1.10.0/localforage.min.js" integrity="sha512-+BMamP0e7wn39JGL8nKAZ3yAQT2dL5oaXWr4ZYlTGkKOaoXM/Yj7c4oy50Ngz5yoUutAG17flueD4F6QpTlPng==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js" integrity="sha512-+H4iLjY3JsKiF2V6N366in5IQHj2uEsGV7Pp/GRcm0fn76aPAk5V8xB6n8fQhhSonTqTXs/klFz4D0GIn6Br9g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js" integrity="sha512-ElRFoEQdI5Ht6kZvyzXhYG9NqjtkmlkfYk0wr6wHxU9JEHakS7UJZNeml5ALk+8IKlU6jDgMabC3vkumRokgJA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/chartjs-adapter-moment/1.0.0/chartjs-adapter-moment.min.js" integrity="sha512-oh5t+CdSBsaVVAvxcZKy3XJdP7ZbYUBSRCXDTVn0ODewMDDNnELsrG9eDm8rVZAQg7RsDD/8K3MjPAFB13o6eA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/web3/1.8.0/web3.min.js" integrity="sha512-bSQ2kf76XufUYS/4XinoHLp5S4lNOyRv0/x5UJACiOMy8ueqTNwRFfUZWmWpwnczjRp9SjiF1jrXbGEim7Y0Xg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer src="./public/common.js"></script>
<script defer src="./public/js/paraswap.js"></script>
<script defer src="./public/connect.js"></script>
<script defer src="./public/script.js"></script>
<script defer src="/public/js/websocket.js"></script>
<script defer src="/public/statistics.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZZQ634B55N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-ZZQ634B55N');
</script>
</head>
<body>
<div id='header'>
<header>
<a id='title' href="./" aria-label="Homepage">
<img src='/img/dexpairs/dexpairs_1.svg' title='DexPairs' alt='DexPairs banner with icon' width='auto' height='36' loading='lazy'>
</a>
</header>
<div class='menu'>
<div class='menu-item menu-charts active'>
<a href="./charts" aria-label="Charts">
<h2>
<img src="/img/icons/bar-chart-2.svg" alt="Charts Logo" width="24px" height="24px">
Charts
</h2>
</a>
</div>
<div class='menu-item menu-wallet'>
<a href="./wallet" aria-label="Wallet">
<h2>
<img src="/img/icons/briefcase.svg" alt="Wallet Logo" width="24px" height="24px">
Wallet
</h2>
</a>
</div>
<div class='menu-item menu-news'>
<a href="/news" aria-label="News">
<h2>
<img src="/img/icons/news_feed.svg" alt="News Feed Logo" width="24px" height="24px">
News
</h2>
</a>
</div>
</div>
</div>
<div class="connect-wallet-container unselectable">
<button id="connect-button">
<img src='/img/metamask-fox.svg' alt='Metamask SVG Logo' title='Connect your wallet' />
Connect
</button>
</div>
<div class='gas'>
<h3 class='gas-title'>Current gas prices</h3>
<div class='gas-container'>
<span class='gas-icon'>
<img src='/img/gas-station-icon.svg' alt="Gas Station Icon" title="Network current gas" width="14px" height="16px">
</span>
<ul id='gas-list' class='gas-list'>
</ul>
<span id='gas-realtime-button' class='realtime-icon unselectable'>
<img src='/img/icons/refresh-cw.svg' alt="Realtime Update Icon" title="Realtime update" width="14px" height="14px">
</span>
</div>
</div>
<div id='dex-selection'>
<div class="dex-selection-img-container unselectable">
<img id="dex-selection-img" src="/img/ethereum-icon.svg" alt="Ethereum Logo" title="Ethereum Logo" width="36px" height="36px">
</div>
<select name='dex-selector' id='dex-selector' title='Select the Protocol/DEX'></select>
</div>
<div id='top' class='flex-row'>
</div>
<div id='favorites' class='flex-row empty'>
</div>
<div id='main' class='main'>
<div class="flex-column left-menu">
<input type='text' id='search_field' placeholder='Search a token' title='Search by symbol, name or contract addres'>
<div id='order-list'>
</div>
<div class='list'>
<ul id='list_ul'>
</ul>
</div>
</div>
<div class='flex-column main-chart'>
<div class='flex-pair'>
<div id='token'>
<div class='logo_symbolName'>
<img id='token_logo' alt='Token Logo' width='28px' height='28px'>
<div class='symbol_name'>
<div id='token_symbol' class='flex-auto'></div>
<div id='token_name' class='flex-auto'></div>
</div>
</div>
<div class='percentages'>
<div id='token_percentage_24h' class='flex-auto'></div>
<div id='token_percentage_7d'></div>
<div id='token_percentage_1m' class='flex-auto'></div>
</div>
<div class='price_address'>
<div id='token_price' class='flex-auto'></div>
<div id='token_address' class='flex-auto'></div>
</div>
</div>
<button id='swapper_switch' title='Switch'>
<img src="https://cdn0.iconfinder.com/data/icons/google-material-design-3-0/48/ic_swap_horiz_48px-256.png"
alt="Swap icon" width="32px" height="32px">
</button>
<div id='base'>
<div class='logo_symbolName'>
<img id='base_logo' alt='Token Logo' width='28px' height='28px'>
<div class='symbol_name'>
<div class='base_symbol_container flex-auto'>
<button id='base_change' title='Edit'>
<img src="https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/edit-change-pencil-512.png"
alt="Edit icon" width="28px" height="28px">
<div id='base_symbol'></div>
</button>
<select id='base_select' title='Select the reference token'></select>
</div>
<div id='base_name' class='flex-auto'></div>
</div>
</div>
<div class='percentages'>
<div id='base_percentage_24h' class='flex-auto'></div>
<div id='base_percentage_7d'></div>
<div id='base_percentage_1m' class='flex-auto'></div>
</div>
<div class='price_address'>
<div id='base_price' class='flex-auto'></div>
<div id='base_address' class='flex-auto'></div>
</div>
</div>
</div>
<div id='chart'>
<div id='token_favorite' class='star_favorite' title='Add to favorites'></div>
<div class='interval-container'>
<div id="interval-title">Interval:</div>
<div id='interval'>
<div id='interval_15m' class='interval-choice' title='15 minutes'>15m</div>
<div id='interval_4h' class='interval-choice' title='4 hours'>4h</div>
<div id='interval_1d' class='interval-choice' title='1 day'>1d</div>
<div id='interval_1w' class='interval-choice' title='1 week'>1w</div>
</div>
</div>
<div class='timeframe-container'>
<div id="timeframe-title">Timeframe:</div>
<div id='timeframe'>
<div id='timeframe_24h' class='timeframe-choice' title='24 hours'>24h</div>
<div id='timeframe_1w' class='timeframe-choice' title='1 week'>1w</div>
<div id='timeframe_1m' class='timeframe-choice' title='1 month'>1m</div>
<div id='timeframe_1y' class='timeframe-choice' title='1 year'>1y</div>
<div id='timeframe_all' class='timeframe-choice' title='All available'>all</div>
</div>
</div>
<canvas id="myChart"></canvas>
<div id='log_choice' class='log-choice' title='Y-axis Logarithmic'>Log</div>
</div>
<div class='source_share_container'>
<div id='source_data'></div>
<div id='share_charts_container'>
<button id='share_charts'>Share this chart</button>
</div>
</div>
<div id='basic_swapper' class='flex-pair'>
<div id='swapper_token_symbol'></div>
<input type='number' id='swapper_token' min='0' step='0.001' title='Calculator'>
<input type='number' id='swapper_base' min='0' step='0.001' title='Calculator'>
<div id='swapper_base_symbol'></div>
</div>
<div id='paraswap_swapper' class='none'>
<div id='paraswap_swapper_title'>Swapper</div>
<div class='flex-pair'>
<div id='paraswap_src_symbol'></div>
<div class="paraswap_src_amount_container">
<input type='number' id='paraswap_src_amount' value=1 min=0 step=0.01 title=''>
<button id='paraswap_src_max_amount' onclick='setMaxAmount()'></button>
</div>
<input type='number' id='paraswap_dest_amount' title='' disabled>
<div id='paraswap_dest_symbol'></div>
</div>
<div class='buttons-container'>
<button id='paraswap_swapper_approve_button' onclick="approveTokenClicked()" class='none'>Approve</button>
<button id='paraswap_swapper_swap_button' onclick="swapTokenClicked()" class='none'>Swap</button>
</div>
<div id='paraswap_attribution'>Powered by <a href="https://developers.paraswap.network" target="_blank">Paraswap.io</a></div>
</div>
</div>
</div>
<footer class="footer">
<a id="roadmap_link" class="link-with-img" href="https://github.com/dorianbayart/DexPairs/projects/1" target="_blank" rel="noopener">
<img src="/img/roadmap-icon.svg" title="Roadmap Picture" alt="Roadmap Picture" width="20px" height="20px" />
<span>Roadmap</span>
</a>
<a id="github_link" class="link-with-img" href="https://github.com/dorianbayart/DexPairs" target="_blank" rel="noopener">
<img src="/img/GitHub-Mark-32px.png" title="Github Logo" alt="Github Logo" width="20px" height="20px" />
<span>GitHub</span>
</a>
<a id="beta_link" class="link-with-img" href="/beta/">
<img src='/img/icons/box.svg' title="Beta Sandbox" alt="Sandbox Logo" width="20px" height="20px" />
<span>Beta</span>
</a>
<a id="donate_link" class="link-with-img" href="/donate">
<img src='/img/icons/gift.svg' title="Donate Logo" alt="Donate Logo" width="20px" height="20px" />
<span>Donate</span>
</a>
</footer>
<div id='body-background' class='body-background'></div>
</body>
</html>