/
index.html
271 lines (234 loc) · 13.1 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
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale:0.25, maximum-scale:1.6, user-scalable=yes;" />
<meta name="author" content="Gordon Mei" />
<title>Speechless - Studio Gordon Mei - Lab</title>
<style>
/* General (and footer) */
* {margin: 0; padding: 0; font: normal 14pt "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue","Helvetica","Arial",sans-serif; font-weight: 300;}
body {margin: 2em 5em;}
a:link, a:visited, a:focus, a:active {color: #009aff;}
a:hover {color: #ff5c80; text-decoration: line-through;}
section, footer {display: block;}
fieldset {border: 0;}
label {cursor: pointer;}
#sosumi {margin: 1em 0;}
#sosumi a:hover {text-decoration: none; color: #abc;}
#sosumi, #sosumi a, #sosumi p, #sosumi p a {font-size: 10pt;}
#sosumi p, #sosumi p a {color: #999; font-style: italic;}
@media only screen and (max-device-width:480px) {body {margin: 1em 0.3em;}}
/* Radio Buttons - An analogy future generations might not understand. */
input[type="radio"] {
display: none;
}
input[type="radio"]:checked + label {
opacity: 1.0;
color: #fff;
}
input[type="radio"] + label {
opacity: 0.7;
display: inline-block;
padding: 8px 30px;
border-style: solid;
border-width: 1px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
color: #ddd;
cursor: pointer;
font-weight: bold;
font-style: italic;
text-shadow: 0 -1px 0 #000;
-moz-transition: color 0.5s linear 0s;
-webkit-transition: color 0.5s linear 0s;
}
input#whichseat_wayne + label {
background-color: #333;
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#000000');
background-image: -moz-linear-gradient(center top, #525252 0pt, #323232 50%, #2e2e2e 50%, #111111 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #525252), color-stop(0.5, #323232), color-stop(0.5, #2e2e2e), color-stop(1.0, #111111)); /* Safari 4+, Chrome 1+ */
background-image: -webkit-linear-gradient(center top, #525252 0pt, #323232 50%, #2e2e2e 50%, #111111 100%); /* Safari 5.1+, Chrome 10+ */
background-image: -o-linear-gradient(#525252 0pt, #323232 50%, #2e2e2e 50%, #111111 100%);
background-image: linear-gradient(center top, #525252 0pt, #323232 50%, #2e2e2e 50%, #111111 100%);
border-color: #222 #111 #000 #111;
/* below: inset - outer bottom, top, inner bottom, left, right */
-moz-box-shadow: 0 1px 0 #292929, 0 1px 0 #8e8e8e inset, 0 -1px 0 #333 inset, 1px 0 0 #515151 inset, -1px 0 0 #575757 inset;
-webkit-box-shadow: 0 1px 0 #292929, 0 1px 0 #8e8e8e inset, 0 -1px 0 #333 inset, 1px 0 0 #515151 inset, -1px 0 0 #575757 inset;
box-shadow: 0 1px 0 #292929, 0 1px 0 #8e8e8e inset, 0 -1px 0 #333 inset, 1px 0 0 #515151 inset, -1px 0 0 #575757 inset;
}
input#whichseat_kent + label {
background-color: #058;
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#1188cc', EndColorStr='#005588');
background-image: -moz-linear-gradient(center top, #18c 0pt, #116eaa 50%, #106099 50%, #058 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #18c), color-stop(0.5, #116eaa), color-stop(0.5, #106099), color-stop(1.0, #058)); /* Safari 4+, Chrome 1+ */
background-image: -webkit-linear-gradient(center top, #18c 0pt, #116eaa 50%, #106099 50%, #058 100%); /* Safari 5.1+, Chrome 10+ */
background-image: -o-linear-gradient(#18c 0pt, #116eaa 50%, #106099 50%, #058 100%);
background-image: linear-gradient(center top, #18c 0pt, #116eaa 50%, #106099 50%, #058 100%);
border-color: #058 #047 #034 #047;
/* below: inset - outer bottom, top, inner bottom, left, right */
-moz-box-shadow: 0 1px 0 #bfbfbf, 0 1px 0 #3ae inset, 0 -1px 0 #1072bb inset, 1px 0 0 #1270bb inset, -1px 0 0 #1270bb inset;
-webkit-box-shadow: 0 1px 0 #bfbfbf, 0 1px 0 #3ae inset, 0 -1px 0 #1072bb inset, 1px 0 0 #1270bb inset, -1px 0 0 #1270bb inset;
box-shadow: 0 1px 0 #bfbfbf, 0 1px 0 #3ae inset, 0 -1px 0 #1072bb inset, 1px 0 0 #1270bb inset, -1px 0 0 #1270bb inset;
text-shadow: 0 -1px 0 #058;
}
input#whichseat_parker + label {
background-color: #6a0;
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#cc0011', EndColorStr='#990011');
background-image: -moz-linear-gradient(center top, #cc0011 0pt, #bb0011 50%, #aa0011 50%, #990011 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #cc0011), color-stop(0.5, #bb0011), color-stop(0.5, #aa0011), color-stop(1.0, #990011)); /* Safari 4+, Chrome 1+ */
background-image: -webkit-linear-gradient(center top, #cc0011 0pt, #bb0011 50%, #aa0011 50%, #990011 100%); /* Safari 5.1+, Chrome 10+ */
background-image: -o-linear-gradient(#cc0011 0pt, #bb0011 50%, #aa0011 50%, #990011 100%);
background-image: linear-gradient(center top, #cc0011 0pt, #bb0011 50%, #aa0011 50%, #990011 100%);
border-color: #600 #500 #400 #500;
/* below: inset - outer bottom, top, inner bottom, left, right */
-moz-box-shadow: 0 1px 0 #d3d3d3, 0 1px 0 #ff001d inset, 0 -1px 0 #b20000 inset, 1px 0 0 #b90000 inset, -1px 0 0 #b90000 inset;
-webkit-box-shadow: 0 1px 0 #d3d3d3, 0 1px 0 #ff001d inset, 0 -1px 0 #b20000 inset, 1px 0 0 #b90000 inset, -1px 0 0 #b90000 inset;
box-shadow: 0 1px 0 #d3d3d3, 0 1px 0 #ff001d inset, 0 -1px 0 #b20000 inset, 1px 0 0 #b90000 inset, -1px 0 0 #b90000 inset;
text-shadow: 0 -1px 0 #990011;
}
input[type="radio"] + label:hover {
color: #fff;
}
input#whichseat_wayne + label:hover {
-moz-box-shadow: inset 0 0 5px #000;
-webkit-box-shadow: inset 0 0 5px #000;
box-shadow: inset 0 0 5px #000;
}
input#whichseat_kent + label:hover {
-moz-box-shadow: inset 0 0 5px #000;
-webkit-box-shadow: inset 0 0 5px #000;
box-shadow: inset 0 0 5px #000;
}
input#whichseat_parker + label:hover {
-moz-box-shadow: inset 0 0 5px #6a0004;
-webkit-box-shadow: inset 0 0 5px #6a0004;
box-shadow: inset 0 0 5px #6a0004;
}
/* Speech Bubble Magic */
.speechbubble {
position: absolute;
top: 0;
left: 0;
margin-top: 100px;
padding: 15px;
width: 275px;
background-color: #525252;
/* filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#000000'); */
background-image: -moz-linear-gradient(center top, #525252 0pt, #323232 50%, #2e2e2e 50%, #111111 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #525252), color-stop(0.5, #323232), color-stop(0.5, #2e2e2e), color-stop(1.0, #111111)); /* Safari 4+, Chrome 1+ */
background-image: -webkit-linear-gradient(center top, #525252 0pt, #323232 50%, #2e2e2e 50%, #111111 100%); /* Safari 5.1+, Chrome 10+ */
background-image: -o-linear-gradient(#525252 0pt, #323232 50%, #2e2e2e 50%, #111111 100%);
background-image: linear-gradient(center top, #525252 0pt, #323232 50%, #2e2e2e 50%, #111111 100%);
border-color: #222 #111 #000 #111;
border-style: solid;
border-width: 1px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
/* below: inset - outer bottom, top, inner bottom, left, right */
-moz-box-shadow: 0 1px 0 #292929, 0 1px 0 #8e8e8e inset, 0 -1px 0 #333 inset, 1px 0 0 #515151 inset, -1px 0 0 #575757 inset;
-webkit-box-shadow: 0 1px 0 #292929, 0 1px 0 #8e8e8e inset, 0 -1px 0 #333 inset, 1px 0 0 #515151 inset, -1px 0 0 #575757 inset;
box-shadow: 0 1px 0 #292929, 0 1px 0 #8e8e8e inset, 0 -1px 0 #333 inset, 1px 0 0 #515151 inset, -1px 0 0 #575757 inset;
text-shadow: 0 -1px 0 #000;
color: #fff;
font-weight: 600;
cursor: pointer;
}
.speechbubble:after {
content: "";
position: absolute;
top: -29px;
left: 50px;
border: 15px solid transparent;
border-bottom-color: #525252;
display: block;
width: 0;
}
/* Faux border around the other bubble tip */
.speechbubble:before {
content: "";
position: absolute;
top: -30px;
left: 50px;
display: block;
width: 0;
border: 15px solid transparent;
border-bottom-color: #000;
}
/* Interaction-dependent */
/* For situations where none of the radio buttons are set as checked="checked" */
input[type="radio"] ~ .speechbubble {display: none;}
input[type="radio"]:checked ~ .speechbubble {display: block;}
/* Shifting the speech bubble over based on radio input selection - compacting some of these into one line for pattern clarity */
#whichseat_wayne:checked ~ .speechbubble {
margin-left: 0;
}
#whichseat_kent:checked ~ .speechbubble {
margin-left: 112px;
}
#whichseat_parker:checked ~ .speechbubble {
margin-left: 225px;
}
#whichseat_kent:checked ~ .speechbubble #whichseat_kent_content {display: block;}
#whichseat_kent:checked ~ .speechbubble #whichseat_wayne_content {display: none;}
#whichseat_kent:checked ~ .speechbubble #whichseat_parker_content {display: none;}
#whichseat_wayne:checked ~ .speechbubble #whichseat_kent_content {display: none;}
#whichseat_wayne:checked ~ .speechbubble #whichseat_wayne_content {display: block;}
#whichseat_wayne:checked ~ .speechbubble #whichseat_parker_content {display: none;}
#whichseat_parker:checked ~ .speechbubble #whichseat_kent_content {display: none;}
#whichseat_parker:checked ~ .speechbubble #whichseat_wayne_content {display: none;}
#whichseat_parker:checked ~ .speechbubble #whichseat_parker_content {display: block;}
/* Layout */
#speechless {
position: relative;
margin-bottom: 470px;
}
#speechless h1 {
margin-bottom: 10px;
}
</style>
<link rel="shortcut icon" href="../../favico.png" type="image/png" />
</head>
<body>
<section>
<fieldset id="speechless">
<!-- Gecko and Webkit browsers currently calculate margins and offsets differently when legend is present. -->
<!--<legend>Save me, Mr.</legend>-->
<h1>Save me, Mr.</h1>
<input type="radio" id="whichseat_wayne" name="greatresponsibility" />
<label for="whichseat_wayne">Wayne</label>
<input type="radio" id="whichseat_kent" name="greatresponsibility" />
<label for="whichseat_kent">Kent</label>
<input type="radio" id="whichseat_parker" name="greatresponsibility" />
<label for="whichseat_parker">Parker</label>
<div class="speechbubble">
<div id="whichseat_kent_content">
Disclaimer: May grow disoriented around glowing green rocks and Lois Lane.
</div>
<div id="whichseat_wayne_content">
Disclaimer: Typically only available at night.
</div>
<div id="whichseat_parker_content">
Disclaimer: Only useful in dense skyscraper-dense metros.
</div>
</div>
</fieldset>
</section>
<footer id="sosumi">
2011. <a href="http://www.monstercyb.org/gordon/lab">Monstercyb.org</a>. A part of the <a href="http://www.ocf.berkeley.edu/~gordeon">GordeonBleu</a> network.
</footer>
<!--Created: 2011 June 18-->
<!--Revised: 2011 July 3-->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-299058-9");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>