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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" />
<title>CAO</title>
<style>
@import url(http://fonts.googleapis.com/css?family=Special+Elite);
body {
font-family: "Special Elite", sans-serif;
background: #333333;
color: #dddddd;
}
header {
background: #222222;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 50px;
z-index: 1;
border-bottom: 4px solid #000;
padding: 20px;
box-sizing: border-box;
text-align: right;
}
header > span {
opacity: 0.7;
cursor: pointer;
}
header > span:hover {
opacity: 1;
}
.page {
padding: 70px 20px 170px;
margin: auto;
max-width: 650px;
}
h1 {
font-weight: normal;
font-size: 4.5em;
text-align: center;
text-shadow: 0 5px 0 #000;
}
h2 {
text-align: center;
font-weight: normal;
color: #999999;
font-size: 2em;
}
button {
outline: none;
font-size: 2em;
width: 100%;
cursor: pointer;
font-family: "Special Elite", sans-serif;
}
button.card {
color: #222222;
background: #dddddd;
border: 4px solid #999;
box-shadow: 0 5px 0 #999;
padding: 20px;
border-radius: 10px;
}
button.card:not(:last-child) {
margin-bottom: 20px;
}
button.card:active, button.card.black:active {
transform: translateY(5px);
box-shadow: none;
}
button.card.black {
background: #222222;
color: #dddddd;
border: 4px solid #000;
box-shadow: 0 5px 0 #000;
}
button.card:not(.active) {
opacity: 0.7;
}
button.card:hover {
opacity: 1.0;
}
div.card-list.read-only > button.card {
cursor: default;
}
div.card-list.read-only > button.card:hover {
opacity: 0.7;
}
div.card-list.read-only > button.card:active {
transform: none;
box-shadow: 0 5px 0 #999;
}
div.card-list.read-only > button.card.black:active {
box-shadow: 0 5px 0 #000;
}
.bottom {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 150px;
box-sizing: border-box;
}
div.bottom {
padding: 20px;
font-size: 1.5em;
background: #222222;
color: #dddddd;
border: 4px solid #000;
}
button.bottom {
font-size: 2.5em;
color: #dddddd;
border: 4px solid #0277BD;
background: #039BE5;
transition: .3s;
}
button.bottom:hover {
background: #0277BD;
font-size: 2.7em;
}
.message {
padding: 40px;
font-size: 2.5em;
text-align: center;
text-shadow: 0 5px 0 #000;
}
</style>
</head>
<body>
<header>
<span>Leave this room</span>
</header>
<div id="home" class="page">
<h1>Cards Against Humanity</h1>
<h2>A party game for horrible people.</h2>
<button class="bottom">Join game!</button>
</div>
<div id="become-judge" class="page">
<div class="card-list read-only">
<button class="card">The female orgasm.</button>
<button class="card">Coat hanger abortions.</button>
<button class="card">Some god-damn peace and quiet.</button>
<button class="card">Overpowering your father.</button>
<button class="card">Alcoholism.</button>
<button class="card">Count Chocula.</button>
<button class="card">My sex dungeon.</button>
<button class="card">24-hour media coverage.</button>
<button class="card">Words, words, words.</button>
<button class="card">A cop who is also a dog.</button>
</div>
<button class="bottom">Become judge!</button>
</div>
<div id="judge-collect" class="page">
<div class="card-list read-only">
<button class="card black">During high school, I never really fit in until I found _____ club.</button>
</div>
<div class="message">You have 2 cards!</div>
<div class="card-list read-only">
<button class="card">The female orgasm.</button>
<button class="card">Coat hanger abortions.</button>
<button class="card">Some god-damn peace and quiet.</button>
<button class="card">Overpowering your father.</button>
<button class="card">Alcoholism.</button>
<button class="card">Count Chocula.</button>
<button class="card">My sex dungeon.</button>
<button class="card">24-hour media coverage.</button>
<button class="card">Words, words, words.</button>
<button class="card">A cop who is also a dog.</button>
</div>
<button class="bottom">Collect!</button>
</div>
<div id="judge-choice" class="page">
<div class="card-list">
<button class="card">The female orgasm.</button>
<button class="card">Coat hanger abortions.</button>
<button class="card">Some god-damn peace and quiet.</button>
<button class="card">Overpowering your father.</button>
<button class="card">Alcoholism.</button>
<button class="card">Count Chocula.</button>
<button class="card">My sex dungeon.</button>
<button class="card">24-hour media coverage.</button>
<button class="card">Words, words, words.</button>
<button class="card">A cop who is also a dog.</button>
</div>
<div class="bottom">During high school, I never really fit in until I found _____ club..</div>
</div>
<div id="player-choice" class="page">
<div class="card-list">
<button class="card">The female orgasm.</button>
<button class="card">Coat hanger abortions.</button>
<button class="card">Some god-damn peace and quiet.</button>
<button class="card">Overpowering your father.</button>
<button class="card">Alcoholism.</button>
<button class="card">Count Chocula.</button>
<button class="card">My sex dungeon.</button>
<button class="card">24-hour media coverage.</button>
<button class="card">Words, words, words.</button>
<button class="card">A cop who is also a dog.</button>
</div>
<div class="bottom">Choose a card...</div>
</div>
</body>
</html>
|