-
Notifications
You must be signed in to change notification settings - Fork 3
/
popup.html
209 lines (192 loc) · 8.85 KB
/
popup.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="popup.css">
<title>Osmosis Companion by @jasbanza</title>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript" src="osmo.js"></script>
<script type="text/javascript" src="companion.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;500;600;700&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600;700&display=swap">
</head>
<body>
<div class="body-contents">
<!-- top menu toolbar -->
<div class="toolbar-container">
<div class="toolbar">
<!-- <div class="toolbar-section">
<a href="https://github.com/jasbanza/osmosis-companion" target="_blank">
<div class="toolbar-item toolbar-icon tooltip">
<div class="svg-icon" style="background-image:url('images/github.svg'); filter:invert();"></div>
<span class="tooltiptext tooltip-right">Osmosis Companion - GitHub</span>
</div>
</a>
<a href="https://t.me/OsmosisCompanion" target="_blank">
<div class="toolbar-item toolbar-icon tooltip">
<div class="svg-icon" style="background-image:url('images/telegram2.svg');"></div>
<span class="tooltiptext tooltip-right">Osmosis Companion - Extension Support</span>
</div>
</a>
</div> -->
<!-- <a href="https://github.com/jasbanza/osmosis-companion" target="_blank"> -->
<!-- github readme -->
<!-- <div class="toolbar-section toolbar-item tooltip toolbar-a"> -->
<div class="toolbar-section toolbar-item tooltip toolbar-a" style="background-color: transparent;">
<a href="https://github.com/jasbanza/osmosis-companion#readme" target="_blank" class="toolbar-title">
<div>
Osmosis
</div>
<div>
Companion
</div>
<div style="font-size:6pt">version 0.3.15</div>
</a>
<span class="tooltiptext tooltip-left">View on GitHub</span>
</div>
<!-- tabs -->
<div class="toolbar-section">
<div class="toolbar-item tooltip">Dashboard<span class="tooltiptext tooltip-right">wen? #soon</span></div>
<div class="toolbar-item toolbar-item-active">My Assets</div>
<div class="toolbar-item tooltip">My Pools<span class="tooltiptext tooltip-right">wen? #soon</span></div>
</div>
<!-- Official Osmosis socials -->
<div class="toolbar-section">
<a href="https://t.me/osmosis_chat" target="_blank">
<div class="toolbar-item toolbar-icon tooltip">
<div class="svg-icon" style="background-image:url('images/telegram2.svg');"></div>
<span class="tooltiptext tooltip-right">Osmosis Chat</span>
</div>
</a>
<a href="https://discord.com/invite/osmosis" target="_blank">
<div class="toolbar-item toolbar-icon tooltip">
<div class="svg-icon" style="background-image:url('images/discord.svg');"></div>
<span class="tooltiptext tooltip-right">Osmosis Discord</span>
</div>
</a>
</div>
<!-- menu -->
<div class="toolbar-section">
<div class="toolbar-item toolbar-icon tooltip" id="btnRefresh">↻<span class="tooltiptext tooltip-right">Refresh now</span></div>
<div class="toolbar-item toolbar-icon tooltip" id="btnDetachWindow">⛶<span class="tooltiptext tooltip-right">Detach Window</span></div>
<!-- <div class="toolbar-item toolbar-icon tooltip masked">🗯<span class="tooltiptext tooltip-right">Alerts</span></div> -->
<!-- <div class="toolbar-item toolbar-icon tooltip masked">✉<span class="tooltiptext tooltip-right">Notifications</span></div> -->
<a href="popup.html" target="_blank" id="aOpenInTab" style="display:none;">
<div class="toolbar-item toolbar-icon tooltip">⛶<span class="tooltiptext tooltip-right">Open in new tab</span></div>
</a>
<a href="options.html">
<div class="toolbar-item toolbar-icon tooltip" id="btnSettings">⚙<span class="tooltiptext tooltip-right">Settings</span></div>
</a>
</div>
</div>
<!-- Asthetics -->
<div class="corners">
<div class="corners-mask">
</div>
</div>
</div><!-- end toolbar-container -->
<!-- "My Assets" tab -->
<div class="wrapper selected" id="tab_myAssets">
<div class="table">
<table style="width: 100%; padding-bottom: 32px;">
<thead>
<tr class="table-header">
<td class="inner-td td-rank">
<p class="table-header-text">
<div class="sort-button after default-ascending" data-sort="rank" title="Sort by asset liquidity ranking">#</div>
</p>
</td>
<td class="inner-td td-name">
<p class="table-header-text">
<div class="sort-button after default-ascending" data-sort="name" title="Sort asset alphabetically">Asset / Chain</div>
</p>
</td>
<td class="inner-td td-price">
<p class="table-header-text">
<div class="sort-button" data-sort="price" title="Sort by 'Price'">Price</div>
</p>
</td>
<td class="inner-td td-change-1h change">
<p class="table-header-text">
<div class="sort-button" data-sort="change_1h" title="Sort by 1 hour price change">1h</div>
</p>
</td>
<td class="inner-td td-change-24h change">
<p class="table-header-text">
<div class="sort-button" data-sort="change_24h" title="Sort by 24 hour price change">24h</div>
</p>
</td>
<td class="inner-td td-change-7d change">
<p class="table-header-text">
<div class="sort-button" data-sort="change_7d" title="Sort by 7 day price change">7d</div>
</p>
</td>
<td class="inner-td td-balance">
<p class="table-header-text">
<div class="sort-button" data-sort="balance" title="Sort by your wallet balance">Balance</div>
</p>
</td>
<td class="inner-td td-value">
<p class="table-header-text">
<div class="sort-button" data-sort="value" title="Sort by your wallet USD value">Value</div>
</p>
</td>
</tr>
</thead>
<tbody style="width: 100%;" id="assets_tbody"></tbody>
</table>
<!-- template for rows -->
<template id="template_asset_tr">
<tr class="inner-tr" data-rank="rank" data-denom="denom" data-ticker="ticker" data-name="name" data-price="0" data-change_1h="0" data-change_24h="0" data-change_7d="0" data-liquidity="0" data-volume_24h="0" data-balance="0" data-value="0">
<td class="inner-td td-rank paw-text">
...
</td>
<td class="inner-td td-name">
<img src="" alt="img">
<p class="paw-text tooltip"></p>
</td>
<td class="inner-td td-price">
<p class="paw-text">...</p>
</td>
<td class="inner-td td-change-1h change">
<p class="paw-text">-</p>
</td>
<td class="inner-td td-change-24h change">
<p class="paw-text">-</p>
</td>
<td class="inner-td td-change-7d change">
<p class="paw-text">-</p>
</td>
<td class="inner-td td-balance">
<p class="paw-text">...</p>
</td>
<td class="inner-td td-value">
<p class="paw-text">...</p>
</td>
</tr>
</template>
<div class="table-footer">
<div class="group">
<div class="item status tooltip" id="age_tokens"></div>
<div class="item status hidden" id="link_options">
<a href="options.html">Click here to add your wallet</a>
</div>
<div class="item status tooltip hidden" id="age_wallet"></div>
<div class="item tooltip paw-text total">
<span class="tooltiptext tooltip-left">Total Liquid Assets</span>
</div>
</div>
</div>
</div>
<!-- price refresh countdown -->
<div class="status-wrapper">
<!-- <div class="status tooltip" id="btnRefresh_lastRefreshed"></div> -->
</div>
</div>
<div id="mask">
<span></span>
<progress value="0" max="100">0%</progress>
</div>
</div><!-- .body-contents -->
</body>
</html>