-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
33 lines (26 loc) · 968 Bytes
/
game.html
File metadata and controls
33 lines (26 loc) · 968 Bytes
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
<html>
<head>
<script src="jquery-3.1.0.js"></script>
<script src="script.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>JavaScript Betting Game</h1>
<div id="userBank" class="userBank">$$ in the Bank:</div>
<form id="form" class="bettingForm">
<label for="userBet">Place your bets ladies and gents:</label>
<input type="number" min="5" max="10" id="userBet" required>
<br>
<label for="userChoice">Pick a number between one and ten:</label>
<input type="number" min="1" max="10" id="userChoice" required>
</form>
<p>
<button id ="playBtn">Try your luck!</button>
<button class="restart hidden">Restart!</button>
</p>
<div id="betInfo">
</body>
<footer>
<div id="disclaimer"> This game is intended for math fun only and not actual gambling so don't sue us please. </div>
</footer>
</html>