-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathindex.html
169 lines (150 loc) · 6.24 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Let's Blow🎈</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--<link rel="icon" type="image/x-icon" href="chen.ico">-->
<link type="text/css" rel="stylesheet" href="styles.css" />
<link href="https://fonts.googleapis.com/css?family=Comfortaa|Lora|Manuale|Roboto+Slab|Slabo+27px" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<!-- bootstrap and jquery -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"
crossorigin="anonymous">
<!--
<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
-->
</head>
<body>
<link type="text/css" rel="stylesheet" href="styles.css" />
<script type="text/javascript" src="script.js"></script>
<!--title page-->
<div id="title">
<h1>Let's Blow🎈</h1>
<button id="startGame" class="btn">
Start
</button>
<button id="showHelp" class="btn">
Help
</button>
<button id="showSettings" class="btn">
Settings
</button>
</div>
<!--settings screen-->
<div id="settings">
<h2>Settings</h2>
<p>Pick a level</p>
<button id="pickEasy" class="btn">
Easy Level
</button>
<button id="pickHarder" class="btn">
Harder Level
</button>
<p>Use a mike!</p>
<button id="useText" class="btn">
Use Text
</button>
<button id="useSpeech" class="btn">
Use Speech
</button>
<button id="testVoice" class="btn">
Test Speech Recognition
</button>
<button id="settingsToTitle" class="btn">
Back
</button>
</div>
<!--help screen-->
<div id="help">
<h2>What am I doing?</h2>
<p>
Welcome to The Blows, the game where you DON'T want to guess the lucky number!
We have two different levels for you, and Easy Level and a Harder Level. In both levels,
a random number will be chosen, and you and your friends try to not guess the number. The range of numbers
you can guess gets smaller every turn (the lowest and highest numbers you can guess are at the top of the screen),
and when that poor, unfortunate soul guesses the number the balloon pops!
</p>
<h3> Easy Level </h3>
<p>
In the Easy Level, all the players can guess any number, as long as they are between the lowest and highest number.
The starting range of numbers is 1 to 100.
</p>
<h3> Harder Level </h3>
<p>
In the Harder Level, you can only guess numbers that are between the lowest number and 12 plus the lowest number, or numbers
that are between the highest number and the highest number minus 12. The starting range of numbers is 1 to 84.
</p>
<button id="helpToGame" class="btn">
Start
</button>
<button id="helpToTitle" class="btn">
Back
</button>
</div>
<!--actual game-->
<div id="game">
<div id="actualGame">
<h3>
<span id="lowest">Lowest: 0</span>
<span id="level">Easy</span>
<span id="highest">Highest: 100</span>
</h3>
<div id="animateBalloon" class="balloon">
<div id="balloonString" class="balloonString"></div>
</div>
<h2 id="balloon"></h2>
<div id="guessing">
<div id="textGuessing">
<h2 id="playerCommand">What's your guess Player X</h2>
<label id="guessErr">Oops Sorry!That's not a valid guess😞</label>
<input type="number" id="playerGuess">
<button class="btn" type="submit" id="guess">
Guess
</button>
</div>
<div id="speechGuessing">
<h2 id="playerCommand-speech">Are you ready Player X?</h2>
<h2 id="playerGuess-speech"></h2>
<label id="guessErr-speech">That's not a valid guess!</label>
<button class="btn" type="submit" id="ready">
I'm ready!
</button>
<button class="btn" type="submit" id="speechErr">
Try again
</button>
</div>
<button id="endGame" class="btn">
Back
</button>
</div>
<div id="gameOver">
<button class="btn" id="playAgain">
Play Again
</button>
<button id="returnToMenu" class="btn">
Back
</button>
</div>
</div>
<div id="setup">
<h2 id="askNumPlayers">How many people are playing?</h2>
<input type="number" id="numPlayers" min="1" max="10">
<button class="btn" id="begin" type="submit">
Begin
</button>
<button id="gameToTitle" class="btn">
Back
</button>
</div>
</div>
</body>
</html>