-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
142 lines (139 loc) · 6.66 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="bootstrap.min.css" rel="stylesheet">
<!-- DataTable start -->
<link rel="stylesheet" href="dataTables/dataTables.bootstrap5.min.css">
<!-- DataTable end -->
<link href="styles.css" rel="stylesheet">
<link href="coinChart/coinChart.css" rel="stylesheet">
<title>WazirX Coin Tracker</title>
</head>
<body>
<div class="container-fluid">
<div class="row justify-content-md-center align-items-center">
<div class="col">
<h1 class="display-5">
<svg xmlns="http://www.w3.org/2000/svg" width="2000" height="1739.13" viewBox="0 0 2000 1739.13"
style="height:1.24rem;width:auto;">
<path
d="M87,1739.13H1913V1565.22H87ZM434.78,668.35,0,347.83l79.94,956.52ZM695.65,1391.3H1912.81L2000,347.83Zm782.61-748L455.54,1391.3H173.91L693.57,539.83,1025.28,0Z"
fill="#93989c" />
</svg>
WazirX Coin Tracker
<span>v 1.1.3</span>
</h1>
</div>
</div>
<div class="row justify-content-md-center align-items-center">
<div class="col-7">
<div class="d-grid gap-2">
<button id="buttonRefreshData" class="btn btn-success" type="button">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-arrow-clockwise" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z" />
<path
d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z" />
</svg>
<span id="statusText">Refresh</span>
</button>
</div>
</div>
<div class="col-5 checkDiv">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckChecked">
<label class="form-check-label" for="flexSwitchCheckChecked">
Include the last
<input type="text" id="noOfTransactions" aria-describedby="no-of-transactions" value=30>
orders only
</label>
</div>
</div>
</div>
<div class="row justify-content-md-center align-items-center">
<div class="col tableDiv">
<ul class="nav nav-tabs justify-content-center" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="transactions-tab" data-bs-toggle="tab"
data-bs-target="#tableTransactions" type="button" role="tab" aria-controls="transactions"
aria-selected="true">Transactions</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="computations-tab" data-bs-toggle="tab" data-bs-target="#tableComputations"
type="button" role="tab" aria-controls="computations" aria-selected="false">Computations</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="timeline-tab" data-bs-toggle="tab" data-bs-target="#tableTimeline"
type="button" role="tab" aria-controls="timeline" aria-selected="false">Timeline</button>
</li>
</ul>
</div>
</div>
<div class="row justify-content-md-center align-items-center">
<div class="col">
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="tableTransactions" role="tabpanel"
aria-labelledby="transactions-tab"></div>
<div class="tab-pane fade" id="tableComputations" role="tabpanel" aria-labelledby="computations-tab"></div>
<div class="tab-pane fade" id="tableTimeline" role="tabpanel" aria-labelledby="timeline-tab">
<form class="row">
<div class="col-6">
<select id="selectCoinChart" class="form-select form-select-sm" aria-label=".form-select-sm">
<option selected value="0">Select coin</option>
</select>
</div>
<div class="col-6">
<select id="selectCoinDuration" class="form-select form-select-sm" aria-label=".form-select-sm">
<option value="1m">1 minute</option>
<option value="5m">5 minutes</option>
<option value="15m">15 minutes</option>
<option value="30m">30 minutes</option>
<option value="1h">1 hour</option>
<option value="2h">2 hours</option>
<option value="4h">4 hours</option>
<option value="6h">6 hours</option>
<option value="12h">12 hours</option>
<option selected value="1d">1 day</option>
<option value="1w">1 week</option>
</select>
</div>
</form>
<div class="d-none" id="chartLoading">
<div class="spinner-grow spinner-grow-sm" role="status">
<span class="visually-hidden">Loading chart...</span>
</div>
<span class="small">Loading chart...</span>
</div>
<div class="d-none" id="chartError">
<div class="alert alert-danger d-flex align-items-center" role="alert">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor"
class="bi bi-exclamation-triangle-fill flex-shrink-0 me-2" viewBox="0 0 16 16" role="img"
aria-label="Warning:">
<path
d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" />
</svg>
<div>
Error loading chart. This is probably a network issue.
</div>
</div>
</div>
<div class="d-none" id="chartContainer"></div>
</div>
</div>
</div>
</div>
</div>
<script src="bootstrap.bundle.min.js"></script>
<!-- DataTable start -->
<script src="datatables/jquery-3.6.0.min.js"></script>
<script src="dataTables/jquery.dataTables.min.js"></script>
<script src="dataTables/dataTables.bootstrap5.min.js"></script>
<!-- DataTable end -->
<script src="coinChart/anychart-core.min.js"></script>
<script src="coinChart/anychart-stock.min.js"></script>
<script src="coinChart/coinChart.js"></script>
<script src="popup.js"></script>
</body>
</html>