-
Notifications
You must be signed in to change notification settings - Fork 46
/
index.html
111 lines (98 loc) · 2.97 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
110
111
<!--
Assignment: Javascript Assignment
Filename: game.html
@author: KITSANTAS FOTIOS (17421808)
Date: 30/04/17
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Horse Racing</title>
<link rel="stylesheet" href="game.css" />
<script src="game.js"></script>
</head>
<body>
<div id="horse1" class="horse standRight">
<div class="rider">
<div class="head">
</div>
<div class="body">
</div>
</div>
</div>
<div id="horse2" class="horse standRight">
<div class="rider">
<div class="head">
</div>
<div class="body">
</div>
</div>
</div>
<div id="horse3" class="horse standRight">
<div class="rider">
<div class="head">
</div>
<div class="body">
</div>
</div>
</div>
<div id="horse4" class="horse standRight">
<div class="rider">
<div class="head">
</div>
<div class="body">
</div>
</div>
</div>
<div class="track">
<div id="startline">
</div>
<div class="inner">
<button id="start">Start Race</button><!-- Make it a button -->
<div id="bet">
<p>You currently have <span id="funds">100</span></p>
<label>Bet Amount (£)</label>
<input type="number" id="amount" value="0"><!-- Add type and default value -->
<label>Bet on horse:</label>
<select id="bethorse">
<option value="1">White</option>
<option value="2">Blue</option>
<option value="3">Green</option>
<option value="4">Brown</option>
</select>
<label>Number of lap</label><!-- Add Number of Laps -->
<input type="number" id="num_lap" name="num_lap" value="1"><!-- Number of Laps text box to get number of Laps -->
</div>
<img src="images/tree.png" class="tree" />
<br>
<table id="results">
<thead>
<tr>
<th>Results</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>1st</td>
<td class="result horse1"></td>
</tr>
<tr>
<td>2nd</td>
<td class="result horse2"></td>
</tr>
<tr>
<td>3rd</td>
<td class="result horse3"></td>
</tr>
<tr>
<td>4th</td>
<td class="result horse4"></td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>