-
Notifications
You must be signed in to change notification settings - Fork 0
/
index5.html
318 lines (257 loc) · 7.14 KB
/
index5.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Hanging Man</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Custom -->
/* =========== Inherited Styles =========== */
html,body{
color: azure;
}
/* =========== Instructional Text =========== */
.slogan{
font-family: cursive;
}
.description{
color: aqua;
text-align: center;
}
.description span{
color: firebrick;
text-align: center;
}
.gameLetters span{
font-size: 1.5rem;
font-weight: bold;
}
/* =========== Game Pieces =========== */
.gameLetters h3{
border: 1.5px dotted yellow;
color: transparent;
padding: 4px 4px;
display: inline-block;
}
.hangContain{
border: 1px dashed white;
width: 65%;
height: 375px;
}
.postUp{
background-color: sienna;
display: inline-block;
height: 350px;
position: relative;
width: 10px;
}
.postRight{
background-color: sienna;
bottom: 340px;
display: inline-block;
height: 10px;
left: -3px;
position: relative;
width: 120px;
}
.rope{
background-color: khaki;
bottom:310px;
display: inline-block;
height: 40px;
position: relative;
right:17px;
width: 10px;
}
.head{
background-color: grey;
bottom:270px;
border-radius: 50%;
display: inline-block;
height: 40px;
position: relative;
right: 46px;
width: 40px;
z-index: 10;
}
.body{
background-color: grey;
bottom: 197px;
display: inline-block;
height: 75px;
position: relative;
right:75px;
width: 12px;
}
.leftArm{
background-color: grey;
bottom: 250px;
display: inline-block;
height: 10px;
position: relative;
right:140px;
width: 50px;
}
.rightArm{
background-color: grey;
bottom: 250px;
display: inline-block;
height: 10px;
position: relative;
right:132px;
width: 50px;
}
.leftLeg{
background-color: grey;
bottom: 173px;
display: inline-block;
height: 10px;
position: relative;
right:232px;
transform: rotate(120deg);
width: 50px;
z-index: 2;
}
.rightLeg{
background-color: grey;
bottom: 187px;
height: 10px;
position: relative;
left: 116px;
transform: rotate(62deg);
width: 50px;
}
.floor{
border: 5px solid saddlebrown;
bottom: 10px;
position: relative;
width: 70%;
}
.counter{
display: block;
font-size: 1.20em;
margin: 30px 0px 0px 15px;
width: 100%;
}
#chances{
color: lightblue;
}
#correct{
color:green;
}
#incorrect{
color:red;
}
.letters{
display: inline-block;
padding: 17px;
}
.letters:hover{
color: darkorange;
}
/* =========== Dynamic Game Classes =========== */
.vanish{
display: none;
}
.charGuessed{
background-color: black;
color: black;
}
/* =========== Endgame Classes =========== */
.endGame{
height:100vh;
text-align: center;
width: 100%;
z-index: 100;
}
.endGame h1{
margin: 0;
padding-top: 30px;
}
.endGame button{
margin-top: 30px;
}
</head>
<body class="navbar-inverse">
<h1 class='text-center'>Hanging Man</h1>
<blockquote>
<p class="text-center slogan">Prove that you are an opposer of capital punishment</p>
</blockquote>
<div class="container-fluid">
<div class="row">
<div class="col-sm-8">
<div class='hangContain'>
<div class='postUp vanish'></div>
<div class='postRight vanish'></div>
<div class='rope vanish'></div>
<div class='head vanish'></div>
<div class='body vanish'></div>
<div class='leftArm vanish'></div>
<div class='rightArm vanish'></div>
<div class='leftLeg vanish'></div>
<div class='rightLeg vanish'></div>
<div class='floor vanish'></div>
</div>
</div>
<div class="col-sm-4">
<h4 class="text-center"><i><u>Instructions:</u></i></h4>
<p class="description">
Your objective is to free the hanging man! In this game of nodes you must guess each letter of the chosen "safe word" before running out of chances. If you can not find the word, the man will appear hung. There are 100 different possible words for this
game, meaning each game has a high chance of a new word. The words will not contain numbers, special characters, or symbols. All words used can be found in the American English dictionary. You have 10 guesses to find the safe word. Please make
sure caps lock is off.</br><span>Type the letters below to play the game. (Clicking is forbidden)</span>
</p>
<div class="gameLetters">
<span>"Safe Word": </span>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-2">
<div class="counter">
<p id='chances'>Chances Remaining: 10</p>
<p id='correct'>Correct: 0</p>
<p id='incorrect'>Incorrect: 0 </p>
</div>
</div>
<div class="col-sm-10 text-center">
<h2 class='letters'>A</h2>
<h2 class='letters'>B</h2>
<h2 class='letters'>C</h2>
<h2 class='letters'>D</h2>
<h2 class='letters'>E</h2>
<h2 class='letters'>F</h2>
<h2 class='letters'>G</h2>
<h2 class='letters'>H</h2>
<h2 class='letters'>I</h2>
<h2 class='letters'>J</h2>
<h2 class='letters'>K</h2>
<h2 class='letters'>L</h2>
<h2 class='letters'>M</h2>
<div class="row">
<div class="col-sm-12 text-center">
<h3 class='letters'>N</h3>
<h3 class='letters'>O</h3>
<h3 class='letters'>P</h3>
<h3 class='letters'>Q</h3>
<h3 class='letters'>R</h3>
<h3 class='letters'>S</h3>
<h3 class='letters'>T</h3>
<h3 class='letters'>U</h3>
<h3 class='letters'>V</h3>
<h3 class='letters'>W</h3>
<h3 class='letters'>X</h3>
<h3 class='letters'>Y</h3>
<h3 class='letters'>Z</h3>
</div>
</div>
</div>
</div>
</div>
<script src='https://code.jquery.com/jquery-2.2.1.min.js'></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
</body>
</html>