-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (60 loc) · 2.94 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
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="index.css">
<link rel="icon" href="icon.png">
<meta charset="utf-8">
<title>King Of Ether</title>
</head>
<body>
<div id="container">
<div id="header">
<img src="icon.png" width="50" height="50">
<h1 id="title">King Of Ether</h1>
<img src="icon.png" width="50" height="50">
</div>
<div id="rules">
<span>In order to be the king, you must send at leat <u><span id="increasePercentage">30</span>%</u> more ETH than the current king.</span>
<span>The ETH of the new king will then belong to the previous king.</span>
<span>If no new king has claimed the throne after <u><span id="gameDuration">10</span> days</u>, the current king will lose its status.</span>
</div>
<div id="play">
<div id="address">
<div class="addressItem" style="margin-right: 1.5em;">
<span style="text-decoration: underline;">Contract address</span>
<span style="text-decoration: underline;">Deposit data</span>
<span style="text-decoration: underline;">Withdraw data</span>
</div>
<div class="addressItem">
<span style="display: flex; align-items: center;"><span id="contractAddress"></span><button id="etherscan" style="margin-left: 15px;">Etherscan</button></span>
<span id="hexDataDeposit"></span>
<span id="hexDataWithdraw"></span>
</div>
</div>
<span style="margin-bottom: 30px; margin-top: 30px;"><b><u>OR</u></b></span>
<div id="metamask">
<button id="connectMetaMask" class="metamask-btn">Connect with MetaMask</button>
</div>
<span id="txHash"></span>
</div>
<div id="status">
<span id="status">Loading...</span>
</div>
<div id="transactions">
<table id="history">
<tr>
<th>Date</th>
<th>King</th>
<th>Wealth (ETH)</th>
</tr>
</table>
</div>
<div id="footer">
<span>Contract source code is available on GitHub: <a href="https://github.com/KingOfEther/contract"><b>github.com/KingOfEther/contract</b></a></span>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/web3/1.3.0/web3.min.js" charset="utf-8"></script>
<script src="script.js" charset="utf-8"></script>
</body>
</html>