-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
109 lines (99 loc) · 3.58 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Heads or Tails | A simple Ethereum game</title>
<meta name="description"
content="An Ethereum dApp, where you can bet on heads or tails and win Ether. Provably fair and without fees.">
<link rel="canonical" href="https://heads-or-tails.renek.cc/">
<!--Tell Google to index this url and not the GitHub one-->
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
<link rel="manifest" href="/img/site.webmanifest">
<link rel="mask-icon" href="/img/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/img/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/img/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>
<body>
<div class="content">
<div class="header to-blur">
<h1>Heads or Tails</h1>
</div>
<div class="contract-info to-blur">Game only works on main net, etc.</div>
<div class="action to-blur">
<h2>Select coin side</h2>
<div class="row">
<div class="column">
<label for="heads">
<img src="/img/heads.jpg" alt="Heads">
</label>
</div>
<div class="column">
<label for="tails">
<img src="/img/tails.jpg" alt="Tails">
</label>
</div>
</div>
<form id="form">
<div class="row">
<div class="column">
<input type="radio" name="ht-selector" id="heads" value="0" checked>
</div>
<div class="column">
<input type="radio" name="ht-selector" id="tails" value="1">
</div>
</div>
<label class="label-amount" for="amount">Amount of Ether to bet</label>
<input type="number" name="amount" id="amount-to-bet" placeholder="Enter amount in ETH" min="0.01" step="0.01"
required>
<div class="exchange-rate-info">(~<span id="bet-in-dollar">0.00</span>$)</div>
<div class="info-text">50% chance to win <span id="bet-in-eth2"></span> ETH (~<span
id="bet-in-dollar2"></span>$)</div>
<input class="play-button" type="submit" value="Play!">
</form>
</div>
<div class="jackpot to-blur">
<h2 class="jackpot-heading">Jackpot</h2>
<h1 class="eth-in-jackpot"></h1>
</div>
<div class="result-coin">
<canvas></canvas>
<span class="infotext"></span>
</div>
<div class="recent-games to-blur">
<h2>Recent Games</h2>
<table class="recent-games-table">
<thead>
<tr>
<th>Address</th>
<th>Amount bet [ETH]</th>
<th>Bet on</th>
<th>Won/Lost</th>
<th>Jackpot [ETH]</th>
</tr>
</thead>
<tbody id="table-body"></tbody>
</table>
</div>
</div>
<p class="contract-address-github to-blur">Contract address: <span class="contract-address"></span></p>
<template id="productrow">
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</template>
<script src="js/ethers-v4_0_39.min.js"></script>
<script src="js/three.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>