-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex1.html
More file actions
129 lines (125 loc) · 5.26 KB
/
index1.html
File metadata and controls
129 lines (125 loc) · 5.26 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pump.Tools</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="site-header">
<div class="container">
<div class="row align-items-center d-flex justify-content-around">
<div class="col-10">
<h1 class="branding">Pump.Tools</h1>
</div>
<div class="col-2">
<!-- <button id="connectButton">HAVE FUN</button> -->
<div id="solanaPrice"></div>
</div>
</div>
</div>
</header>
<!-- nav bar -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<div class="navbar-nav" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" id="newTokensLink" href="#">New Tokens</a>
</li>
<li class="nav-item">
<a class="nav-link" id="tradersLink" href="#">Traders</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- nav bar end -->
<!-- -->
<div id="newTokens" class="container mt-3" style="display: block;">
<div class="row align-items-center mb-3">
<div class="col-md-4">
<label for="timeRange" class="form-label">Time Range:</label>
<select id="timeRange" class="form-select">
<option value="3">Last 3 minutes</option>
<option value="5">Last 5 minutes</option>
<!-- Add more options as needed -->
</select>
</div>
<div class="col-md-4">
<label for="postCount" class="form-label">Number of Tokens:</label>
<select id="postCount" class="form-select">
<option value="10">Top 10</option>
<option value="20">Top 20</option>
<!-- Add more options as needed -->
</select>
</div>
<div class="col-md-4">
<label for="feedType" class="form-label">Sort:</label>
<select id="feedType" class="form-select">
<option value="volume">Volume</option>
<option value="gainers">Gainers</option>
<option value="losers">Losers</option>
<option value="uniqueTraders">Unique Traders</option>
</select>
</div>
</div>
<div class="table-container">
<table class="table" >
<thead>
<tr>
<th>Name</th>
<th>Symbol</th>
<th>Market Cap (USD)</th>
<th>Total Volume (USD)</th>
<th>Buy Volume (USD)</th>
<th>Sell Volume (USD)</th>
<th>Unique Traders</th>
<th>Time Since Last Trade (seconds)</th>
</tr>
</thead>
<tbody id="feed">
<!-- Table rows will be dynamically added here -->
</tbody>
</table>
</div>
</div>
<div id="traders" class="container mt-3" style="display: none;">
<div class="table-container">
<table>
<thead>
<tr>
<th>Wallet ID</th>
<th>Total Trades</th>
<th>Buy Volume (USD)</th>
<th>Sell Volume (USD)</th>
<th>Profit/Loss (USD)</th>
</tr>
</thead>
<tbody id="leaderboard">
<!-- Leaderboard rows will be dynamically added here -->
</tbody>
</table>
</div>
<!-- Include any necessary scripts, such as the script provided in your question -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.3.1/socket.io.js"></script>
<script type="module" src="leaderboard.js"></script>
<script type="module" src="wallet.js"></script>
<!-- Socket.IO -->
<script src="https://cdn.socket.io/4.0.0/socket.io.min.js"></script>
<!-- Custom JS -->
<script type="module" src="script1.js"></script>
<script>
document.getElementById('newTokensLink').addEventListener('click', function() {
document.getElementById('newTokens').style.display = 'block';
document.getElementById('traders').style.display = 'none';
});
document.getElementById('tradersLink').addEventListener('click', function() {
document.getElementById('newTokens').style.display = 'none';
document.getElementById('traders').style.display = 'block';
});
</script>
</body>
</html>