-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (111 loc) · 2.41 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
<!DOCTYPE html>
<html>
<head>
<title>Hangman</title>
<style>
body {
margin: 0;
font-family: Futura, "Trebuchet MS", Arial, sans-serif;
}
ul {
margin: 0;
}
ul>li {
list-style: none;
}
button {
background-color: #4A587A;
border: 0;
color: #FFFFFF;
padding: 10px;
font-family: Monaco, Consolas, "Lucida Console", monospace;
}
.clearfix{
clear: both;
}
.status-bar {
width: 100%;
height: 50px;
background-color: #B69C66;
color: #4A587A;
text-transform: capitalize;
font-weight: bold;
font-family: Futura, "Trebuchet MS", Arial, sans-serif;
}
.status-bar button {
float: left;
margin: 7px 0 0 7px;
width: 135px;
}
.status-bar li {
width: 29%;
float: left;
text-align: center;
margin-top: 15px;
}
.letters li {
float: left;
margin: 0 20px 0 0;
}
button#end {
display: none;
}
#wordboard {
margin: 50px auto;
}
#guessboard {
margin-top: 50px;
}
.gameboard {
margin: auto;
overflow: auto;
width: 80%;
}
.disabled-overlay {
background-color: #000;
opacity: 0.6;
width: 100%;
height: 100%;
z-index: 10;
position: absolute;
left: 0;
}
</style>
</head>
<body>
<div id="game">
<script type="text/template" id="letter-template">
<span><%= value %></span>
</script>
<div class="status-bar">
<button id="start">Start Game</button>
<button id="end">End Game</button>
<div id="player-bar">
<script type="text/template" id="player-template">
<li class="player-name"><%= name %></li>
<li class="player-status"><%= status %></li>
<li class="player-score">Score: <%= score %></li>
</script>
</div>
</div>
<div class="clearfix"></div>
<div class="gameboard">
<div class="disabled-overlay"></div>
<div id="wordboard" class="letters"></div>
<div class="clearfix"></div>
<div id="guessboard">
<form id="guess-form">
<label for="guess-textbox">Guess:</label>
<input id="guess-textbox" type="text" name="guess" maxlength="1" />
<button type="submit">Guess</button>
</form>
<div id="guessed-letters" class="letters"></div>
</div>
</div>
</div>
<script type="text/javascript" src="js/underscore-min.js" ></script>
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="js/backbone-min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>