-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (86 loc) · 2.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rat Race</title>
<link rel="stylesheet" href="./style.css" />
<link rel="icon" type="imgage" src="image/flag.jpg"/>
<script src = "music.js"></script>
<script src = "rat.js"></script>
<script src = "app.js"></script>
<script src = "results.js"></script>
<script src = "scores.js"></script>
<title>Rat Race</title>
</head>
<body>
<h1> Welcome to Rat Races</h1>
<!-- this is my track that I built on another site -->
<div id="track" class="track">
<img src="image/Track.png" alt="Track">
</div>
<!-- these are my rats -->
<div class = "main">
<div class = "rat-container">
<div id = "rats">
<img id = "Rat1" style ="top: 77vh"
class = "rat-image" src = "image/brownRat/rat.png"/>
<img id = "Rat2" style ="top: 83vh"
class = "rat-image" src = "image/greyRat/rat.png"/>
<img id = "Rat3" style ="top: 89vh"
class = "rat-image" src = "image/whiteRat/rat.png"/>
</div>
</div>
<!-- this is my bet table area --------------------------------->
<div id="bet">
<p>You currently have <span id="funds">100</span></p>
<label>Bet Amount ($)</label>
<input type="number" value="1" id="amount"/>
<label>Bet on Rat:</label>
<select id="betRat">
<option value="Rat1">Brown</option>
<option value="Rat2">Grey</option>
<option value="Rat3">White</option>
</select>
<!-- start btton and reset button -->
<div id="user-button">
<button onclick = "startRace()">Start</button>
<button onclick="resetRace();">Restart Race </button>
</div>
</div>
</div>
<div>
<!-- this is my results on the table -->
<table id="results">
<thead>
<tr>
<th>Results</th>
<th></th>
</tr>
</thead>
<tr>
<td>Who will win?</td>
<td class="Rat1"></td>
</tr>
</table>
</div>
<div>
<!-- this is my background -->
<style>
body {
background-image: url('image/street.jpg');
}
</style>
</div>
<!-- this is my audio-->
<div id="player">
<!-- <audio controls autoplay hidden>
<source src="music/bensound-moose.mp3" type="audio/mp3">
</audio> -->
<div class="slidecontainer">
<input type="range" min="1" max="100" value="50" class="slider" id="myRange">
</div>
</div>
</body>
</html>