-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (56 loc) · 2.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ETH Price Betting</title>
<script src="https://cdn.ethers.io/lib/ethers-5.7.2.umd.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css"> <!-- External CSS -->
</head>
<body>
<div class="container">
<div class="header fade-in">
<h1>ETH Prediction Market </h1>
<button id="connectButton">Connect Wallet</button>
</div>
<div class="card fade-in">
<div id="networkStatus">Network: Not Connected</div>
<div id="latestPrice">Latest ETH Price (USD): Loading...</div>
<div id="bettingStatus">Betting Status: Loading...</div>
</div>
<div class="card fade-in">
<div id="transactionStatus"></div>
<div class="button-group">
<button id="openBettingButton" disabled>Open Betting</button>
<button id="closeBettingButton" disabled>Close Betting</button>
</div>
</div>
<div class="card fade-in">
<input type="number" id="betAmount" placeholder="Enter bet amount in ETH">
<div class="button-group">
<button id="placeBetUp">Place Bet UP 🚀 </button>
<button id="placeBetDown">Place Bet DOWN 🐻 </button>
</div>
<button id="withdrawButton">Withdraw Winnings</button>
</div>
<div class="card fade-in">
<h2>Bet History</h2>
<table id="betsTable">
<thead>
<tr>
<th>Direction</th>
<th>Amount (ETH)</th>
<th>Time</th>
<th>Address</th>
</tr>
</thead>
<tbody>
<!-- Bets will be dynamically loaded here -->
</tbody>
</table>
</div>
</div>
<script src="app.js"></script> <!-- External JavaScript -->
</body>
</html>