-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
71 lines (63 loc) · 2.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
<meta name="viewport" content="width=device-width" />
<meta charset="utf-8" />
<title>Evmos Odds</title>
<!-- CSS -->
<link href="jquery.toast.min.css" rel="stylesheet" type="text/css" />
<link href="styles.css" rel="stylesheet" type="text/css" />
<!-- JavaScript -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="jquery.toast.min.js" type="text/javascript"></script>
<script src="https://cdn.ethers.io/lib/ethers-5.0.umd.min.js" type="text/javascript"></script>
<script src="app.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<div class="the_title">
<img src="images/evmos_odds.PNG">
<button id="button" class="bubbly-button">Connect Evmos Wallet</button>
</div>
<h3>Spin the wheel try to get a random number below the difficulty target. Change the odd's to increase/decrease your reward and chance at taking home the bacon. </h3>
<div class="slidecontainer">
<span>Set your bet: </span>
<span class="odds" id="betValue"></span><br>
<input type="range" min="1" max="10" value="5" class="slider" id="sliderBet">
<p>
<span>Set your odds: </span>
<span class="odds" id="oddsValue"></span>
<input type="range" min="20" max="80" value="50" class="slider" id="sliderOdds">
</div>
<div>
<br><br>
</div>
<div>
<span>Potential Winnings: </span>
<span class="winnings" id="winValue"></span>
<p>
<span>A random number between 1-100 will be generated using entropy from your transaction. You will be considered the winner if this number is below </span> <span id="oddsLabel">50</span>
</div>
<br>
<br>
<div class="operation">
<button id="spin" class="bubbly-button">Spin</button>
<button id="withdraw" class="bubbly-button" hidden>Withdraw</button>
<div class="result" id="result" />
<div>
<img id="wheel" src="images/wheel.gif">
<img id="winner" src="images/winner.gif">
<img id="sorry" src="images/sorry.gif">
</div>
<div id="spun">
</div>
</div>
</div>
<div class="footer">
<a href="https://github.com/JimR8/EvmosOdds"> Github</a>
</div>
</body>
</html>