-
Notifications
You must be signed in to change notification settings - Fork 137
/
Copy pathindex.html
372 lines (336 loc) · 16.3 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
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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>After Dark Screensavers in CSS</title>
<meta name="description" content="Relive classic 1990s Mac and PC screensavers like Flying Toasters and Aquatic Realm, remade using modern CSS techniques like animations and transforms.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="img/favicon.png" />
<link rel="stylesheet" href="all/base.css">
<style>
html,
body {
background-color: #929292;
}
a {
color: black;
}
.ribbon {
position: fixed;
right: 0;
top: 0;
}
.content {
position: relative;
z-index: 2;
width: 260px;
margin: 100px auto 0;
border: 1px solid #111;
background: #fff;
box-shadow: 1px 1px #111;
}
.title {
text-align: center;
font-size: 12px;
font-weight: normal;
padding: 1px 0;
margin: 1px 0 0 0;
border-bottom: 1px solid #111;
background-color: #f0f0f0;
box-shadow: inset 1px -3px 0px -2px #a8a9b6;
}
.title:before {
height: 11px;
width: 64px;
display: inline-block;
content: "";
background: url(img/lines.png) repeat;
margin-right: 8px;
}
.title:after {
height: 11px;
width: 64px;
display: inline-block;
content: "";
background: url(img/lines.png) repeat;
margin-left: 8px;
}
.content .ad {
text-align: center;
margin: 1em 0;
}
.content ul {
list-style-type: none;
margin: 2px 0 2em 0;
padding: 0 0 0 2em;
font-size: 12px;
}
.footer {
width: 400px;
text-align: center;
margin: 2em auto 0;
font-size: 12px;
}
.closebox {
position: absolute;
top: 3px;
left: 10px;
padding: 1px;
background-color: #d1d2e3;
border-top: 1px solid #38394a;
border-left: 1px solid #38394a;
box-shadow: 0 0 0px 1px #f0f0f0;
}
.closebox-innr {
display: block;
height: 8px;
width: 8px;
background-color: #a2a5ae;
border-bottom: 1px solid #38394a;
border-right: 1px solid #38394a;
text-indent: -99999em;
}
.closebox-innr:hover {
background-color: #ccc;
}
.maxbox {
position: absolute;
top: 3px;
right: 10px;
padding: 1px;
background-color: #d1d2e3;
border-top: 1px solid #38394a;
border-left: 1px solid #38394a;
box-shadow: 0 0 0px 1px #f0f0f0;
}
.maxbox-innr {
height: 8px;
width: 8px;
background-color: #a2a5ae;
border-bottom: 1px solid #38394a;
border-right: 1px solid #38394a;
}
.maxbox-innr:before {
height: 5px;
width: 5px;
border-bottom: 1px solid #38394a;
border-right: 1px solid #38394a;
background-color: #a2a4ae;
display: block;
content: "";
}
/* Hidden Toaster */
.behind {
position: absolute;
left: 50%;
top: 200px;
z-index: 1;
margin-left: -50px;
width: 100px;
font-size: 12px;
text-align: center;
}
.toaster {
width: 64px;
height: 64px;
margin: 0 auto 2em;
background-image: url("img/toaster-sprite.gif");
-webkit-animation: flap .2s steps(4) infinite alternate;
-moz-animation: flap .2s steps(4) infinite alternate;
-o-animation: flap .2s steps(4) infinite alternate;
animation: flap .2s steps(4) infinite alternate;
}
/* Flapping animation */
@-webkit-keyframes flap {
from {
background-position: 0px;
}
to {
background-position: -256px;
}
}
@-moz-keyframes flap {
from {
background-position: 0px;
}
to {
background-position: -256px;
}
}
@-ms-keyframes flap {
from {
background-position: 0px;
}
to {
background-position: -256px;
}
}
@-o-keyframes flap {
from {
background-position: 0px;
}
to {
background-position: -256px;
}
}
@keyframes flap {
from {
background-position: 0px;
}
to {
background-position: -256px;
}
}
</style>
<script>
/* The Randomizer Script -- goes to a random screensaver */
window.onload = function () {
/* Set click events */
var elem = document.getElementById('randomizer');
elem.onclick = random;
var x = document.getElementById('x');
x.onclick = close;
function random() {
/* Build a list of href's */
var choices = Array();
var elements = document.querySelectorAll('.s');
Array.prototype.forEach.call(elements, function (el, i) {
choices.push(el.getAttribute('href'));
});
/* Count our choices */
count = choices.length;
/* Pick a screenshot at random and browse there */
choice = Math.floor(Math.random() * count);
window.location.href = choices[choice];
}
function close() {
var el = document.getElementById('content');
el.style.visibility = 'hidden';
return false;
}
}
</script>
</head>
<body>
<a href="https://github.com/bryanbraun/after-dark-css" title="Fork me on GitHub" class="ribbon">
<svg version="1.1" id="Layer_1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="147" height="147"
viewBox="28.386 1.317 147 147" overflow="visible" enable-background="new 28.386 1.317 147 147" xml:space="preserve" style="-webkit-filter: drop-shadow( 0px 0px 5px rgba(0, 0, 0, .7)); filter: drop-shadow( 0px 0px 5px rgba(0, 0, 0, .7));">
<linearGradient id="balk_5_" gradientUnits="userSpaceOnUse" x1="125.5657" y1="662.8528" x2="105.6487" y2="682.7698" gradientTransform="matrix(1 0 0 1 0 -614.7715)">
<stop offset="0" style="stop-color:#ba0000"/>
<stop offset="1" style="stop-color:#9a0000"/>
</linearGradient>
<polygon id="balk" fill="url(#balk_5_)" points="175.622,137.972 35.676,-1.977 55.591,-21.892 195.539,118.055" />
<g id="letters">
<path fill="#FFFFFF" d="M82.988,18.34c0.518-0.516,0.858-0.888,1.026-1.115l3.66,3.66l-1.271,1.272
c-0.145-0.19-0.414-0.482-0.811-0.879l-1.38-1.38l-1.779,1.778l1.152,1.152c0.35,0.349,0.619,0.597,0.809,0.741l-1.25,1.25
c-0.129-0.176-0.342-0.41-0.638-0.706l-1.255-1.256l-2.388,2.388c-0.448,0.448-0.772,0.803-0.973,1.061l-1.479-1.48
c0.25-0.19,0.623-0.532,1.116-1.026L82.988,18.34z"/>
<path fill="#FFFFFF" d="M82.625,31.194c-0.73-0.729-1.024-1.531-0.88-2.406c0.137-0.76,0.588-1.522,1.354-2.29
c1.716-1.716,3.278-1.871,4.687-0.463c1.392,1.392,1.229,2.944-0.487,4.661c-0.759,0.76-1.52,1.207-2.278,1.345
C84.145,32.198,83.347,31.915,82.625,31.194z M86.657,27.138c-0.351-0.349-0.747-0.413-1.195-0.19
c-0.258,0.121-0.611,0.405-1.06,0.854c-0.447,0.448-0.732,0.801-0.854,1.061c-0.22,0.447-0.157,0.847,0.192,1.193
c0.349,0.349,0.741,0.416,1.183,0.204c0.258-0.122,0.615-0.411,1.071-0.866c0.446-0.447,0.731-0.801,0.854-1.06
C87.069,27.884,87.006,27.488,86.657,27.138z"/>
<path fill="#FFFFFF" d="M85.557,33.971c0.174-0.13,0.444-0.376,0.811-0.741l3.544-3.544c0.355-0.355,0.593-0.613,0.708-0.772
l1.248,1.249l-0.346,0.341c0.492-0.038,0.898,0.102,1.217,0.42c0.137,0.136,0.254,0.313,0.354,0.531l-1.29,1.29
c-0.059-0.335-0.167-0.583-0.327-0.741c-0.212-0.212-0.553-0.333-1.021-0.362l-2.771,2.771c-0.388,0.388-0.658,0.68-0.811,0.876
L85.557,33.971z"/>
<path fill="#FFFFFF" d="M88.84,37.253c0.174-0.13,0.444-0.376,0.809-0.741l6.086-6.086c0.357-0.356,0.595-0.615,0.708-0.773
l1.293,1.293c-0.167,0.122-0.417,0.351-0.752,0.685l-3.201,3.202l1.801-0.249c0.258-0.03,0.475-0.08,0.647-0.148l1.474,1.472
l-3.488,0.432l-1.469,4.822l-1.334-1.334c0.083-0.146,0.188-0.427,0.317-0.846l0.957-3.055l-1.744,1.744
c-0.388,0.388-0.656,0.68-0.81,0.876L88.84,37.253z"/>
<path fill="#FFFFFF" d="M103.463,42.625c0.691,0.068,1.301,0.365,1.825,0.89c0.594,0.595,0.775,1.311,0.549,2.146
c-0.196,0.684-0.637,1.367-1.32,2.052l-1.562,1.561c-0.519,0.519-0.854,0.882-1.004,1.094l-1.359-1.359
c0.28-0.207,0.656-0.545,1.128-1.017l1.54-1.54c0.836-0.836,1.027-1.482,0.573-1.938c-0.312-0.31-0.603-0.479-0.874-0.51
c-0.252,0.388-0.575,0.78-0.971,1.175l-1.563,1.563c-0.518,0.517-0.853,0.881-1.005,1.093l-1.37-1.37
c0.28-0.207,0.656-0.545,1.127-1.017l1.551-1.529c0.479-0.479,0.766-0.852,0.856-1.117c0.092-0.266,0.021-0.516-0.214-0.75
c-0.229-0.227-0.55-0.343-0.967-0.35l-2.841,2.84c-0.129,0.129-0.271,0.281-0.423,0.456c-0.15,0.174-0.24,0.271-0.263,0.296
l-1.326-1.326c0.152-0.105,0.402-0.335,0.752-0.684l3.555-3.558c0.411-0.409,0.666-0.687,0.767-0.831l1.249,1.271l-0.371,0.356
c0.6,0.069,1.048,0.253,1.344,0.55C103.295,41.522,103.501,42.04,103.463,42.625z"/>
<path fill="#FFFFFF" d="M108.686,52.813l-2.528-2.528c-0.669,0.79-0.674,1.516-0.013,2.177c0.435,0.433,0.923,0.702,1.473,0.808
l-1.221,1.219c-0.631-0.281-1.125-0.602-1.48-0.957c-0.753-0.754-1.081-1.592-0.982-2.511c0.083-0.874,0.526-1.713,1.332-2.518
c0.685-0.684,1.424-1.096,2.221-1.24c0.884-0.15,1.643,0.092,2.279,0.731c0.624,0.624,0.893,1.313,0.8,2.074
c-0.091,0.715-0.471,1.404-1.139,2.072C109.168,52.398,108.921,52.623,108.686,52.813z M108.753,49.079
c-0.441-0.441-0.964-0.392-1.569,0.154l1.403,1.402C109.146,50.047,109.201,49.529,108.753,49.079z"/>
<path fill="#FFFFFF" d="M111.427,59.995c-0.729-0.73-1.022-1.532-0.88-2.407c0.137-0.759,0.588-1.522,1.354-2.29
c1.719-1.716,3.278-1.871,4.688-0.463c1.392,1.392,1.229,2.946-0.486,4.662c-0.76,0.759-1.52,1.207-2.277,1.344
C112.948,61,112.149,60.718,111.427,59.995z M115.459,55.941c-0.351-0.35-0.746-0.412-1.194-0.191
c-0.259,0.122-0.61,0.407-1.06,0.854c-0.449,0.448-0.733,0.803-0.854,1.061c-0.221,0.447-0.157,0.846,0.191,1.194
c0.35,0.35,0.743,0.415,1.184,0.203c0.259-0.122,0.615-0.41,1.07-0.866c0.448-0.447,0.732-0.802,0.854-1.06
C115.871,56.686,115.808,56.289,115.459,55.941z"/>
<path fill="#FFFFFF" d="M121.826,60.032c0.624,0.606,0.833,1.349,0.628,2.222c-0.176,0.737-0.602,1.443-1.275,2.12l-1.562,1.562
c-0.518,0.518-0.853,0.881-1.005,1.093l-1.369-1.369c0.195-0.152,0.567-0.495,1.114-1.028l1.553-1.527
c0.865-0.852,1.021-1.555,0.471-2.105c-0.25-0.25-0.633-0.382-1.149-0.396l-2.805,2.807c-0.13,0.13-0.271,0.279-0.423,0.457
c-0.152,0.174-0.24,0.271-0.263,0.295l-1.326-1.325c0.149-0.107,0.399-0.335,0.751-0.687l3.499-3.5
c0.438-0.438,0.711-0.731,0.811-0.876l1.261,1.262l-0.411,0.408C120.968,59.476,121.47,59.674,121.826,60.032z"/>
<path fill="#FFFFFF" d="M126.559,73.696c-0.28,0.082-0.627,0.062-1.037-0.063c-0.501-0.152-0.965-0.44-1.39-0.866
c-1.886-1.886-1.509-4.146,1.13-6.783c1.254-1.255,2.479-1.945,3.671-2.074c1.194-0.129,2.31,0.321,3.343,1.356
c0.595,0.594,0.916,1.296,0.971,2.109l-1.301,1.299c-0.064-0.908-0.366-1.632-0.906-2.172c-1.119-1.119-2.565-0.791-4.34,0.983
c-1.8,1.798-2.244,3.147-1.341,4.055c0.737,0.736,1.563,0.649,2.476-0.263c0.099-0.084,0.388-0.389,0.867-0.91l1.393,1.392
c-0.354,0.298-0.732,0.645-1.127,1.039l-1.322,1.321c-0.212,0.213-0.4,0.416-0.567,0.613c-0.168,0.196-0.286,0.329-0.354,0.397
c-0.066-0.038-0.146-0.118-0.239-0.239L126.559,73.696z"/>
<path fill="#FFFFFF" d="M127.679,76.093c0.167-0.138,0.434-0.388,0.797-0.753l3.545-3.545c0.357-0.356,0.599-0.611,0.721-0.763
l1.279,1.28c-0.157,0.13-0.403,0.361-0.738,0.695l-3.498,3.499c-0.39,0.388-0.661,0.677-0.821,0.865L127.679,76.093z
M134.274,70.801c-0.219-0.22-0.32-0.49-0.312-0.813c0.013-0.321,0.133-0.599,0.361-0.825c0.234-0.236,0.516-0.359,0.838-0.373
c0.322-0.013,0.595,0.092,0.813,0.313c0.212,0.211,0.313,0.479,0.301,0.805c-0.014,0.32-0.137,0.602-0.372,0.838
c-0.229,0.229-0.505,0.348-0.825,0.359C134.754,71.113,134.488,71.012,134.274,70.801z"/>
<path fill="#FFFFFF" d="M136.453,74.746l0.981,0.982l-1.104,1.104c-0.037-0.037-0.104-0.111-0.198-0.222
c-0.094-0.109-0.187-0.209-0.276-0.301l-0.484-0.483l-2.12,2.12c-0.509,0.51-0.598,0.931-0.265,1.265
c0.235,0.235,0.514,0.382,0.834,0.44l-1.141,1.141c-0.434-0.13-0.848-0.394-1.243-0.788c-0.557-0.556-0.742-1.138-0.562-1.746
c0.137-0.455,0.522-1.003,1.162-1.641l2.039-2.039l0.011,0.011l0.022-0.021l-0.161-0.184c-0.102-0.1-0.241-0.219-0.427-0.356
l1.105-1.104l0.563,0.563l0.446-0.445c0.214-0.214,0.374-0.396,0.482-0.549l1.326,1.326c-0.169,0.122-0.345,0.273-0.526,0.458
L136.453,74.746z"/>
<path fill="#FFFFFF" d="M142.807,81.917l0.376,0.377l-1.248,1.248l-0.377-0.376l-2.604,2.604
c-0.357,0.356-0.608,0.639-0.753,0.843l-1.491-1.492c0.226-0.168,0.529-0.441,0.909-0.82l2.538-2.538l-2.077-2.077l-2.527,2.526
c-0.409,0.41-0.688,0.717-0.832,0.921l-1.479-1.479c0.212-0.152,0.49-0.403,0.842-0.754l6.006-6.007
c0.35-0.35,0.601-0.631,0.754-0.842l1.48,1.48c-0.222,0.159-0.5,0.411-0.844,0.753l-2.15,2.151l2.077,2.076l1.991-1.993
c0.463-0.463,0.769-0.797,0.912-1.001l1.492,1.492c-0.197,0.139-0.443,0.354-0.739,0.65L142.807,81.917z"/>
<path fill="#FFFFFF" d="M141.046,89.549c-0.6-0.599-0.775-1.309-0.532-2.128c0.206-0.66,0.658-1.34,1.356-2.039l1.562-1.562
c0.519-0.518,0.854-0.881,1.004-1.094l1.37,1.37c-0.188,0.146-0.562,0.488-1.116,1.027l-1.551,1.528
c-0.434,0.435-0.696,0.795-0.788,1.082c-0.123,0.35-0.033,0.675,0.27,0.976c0.212,0.212,0.572,0.323,1.089,0.336l2.805-2.806
c0.13-0.13,0.271-0.285,0.423-0.468c0.153-0.183,0.236-0.279,0.252-0.297l1.326,1.326c-0.144,0.114-0.391,0.348-0.74,0.696
l-3.485,3.486c-0.449,0.447-0.728,0.739-0.833,0.877l-1.249-1.249l0.412-0.407C141.964,90.163,141.44,89.943,141.046,89.549z"/>
<path fill="#FFFFFF" d="M146.694,95.174c-0.41-0.411-0.605-0.902-0.586-1.472l-0.408,0.409l-1.204-1.203
c0.149-0.107,0.399-0.336,0.751-0.688l6.027-6.027c0.447-0.447,0.724-0.743,0.821-0.889l1.293,1.293
c-0.152,0.121-0.444,0.399-0.877,0.832l-1.976,1.99c0.567,0.131,1.021,0.363,1.354,0.697c0.604,0.602,0.81,1.339,0.618,2.213
c-0.175,0.752-0.592,1.46-1.253,2.12c-0.676,0.676-1.417,1.11-2.223,1.309C148.084,95.979,147.304,95.784,146.694,95.174z
M150.455,91.069c-0.252-0.252-0.643-0.391-1.167-0.412l-1.979,1.976c0.01,0.479,0.131,0.839,0.367,1.075
c0.299,0.299,0.688,0.357,1.167,0.185c0.381-0.136,0.75-0.384,1.108-0.741C150.814,92.288,150.981,91.595,150.455,91.069z"/>
</g>
<g opacity="0.5">
<line fill="none" stroke="#FFFFFF" stroke-dasharray="3 1.5" x1="30.705" y1="-9.861" x2="185.08" y2="144.514"/>
<line fill="none" stroke="#FFFFFF" stroke-dasharray="3 1.5" x1="46.58" y1="-27.986" x2="200.955" y2="126.389"/>
</g>
</svg>
</a>
<div id="content" class="content">
<div class="closebox"><a class="closebox-innr" id="x" href="#">Close</a></div>
<div class="maxbox">
<div class="maxbox-innr"></div>
</div>
<h1 class="title">After Dark in CSS</h1>
<div class="ad"><img src="img/after-dark-icon.png" /></div>
<ul>
<li><a class="s" href="all/flying-toasters.html" target="_blank">Flying Toasters</a></li>
<li><a class="s" href="all/fish.html" target="_blank">Fish</a></li>
<li><a class="s" href="all/globe.html" target="_blank">Globe</a></li>
<li><a href="all/hard-rain.html" target="_blank">Hard Rain</a></li>
<li><a class="s" href="all/bouncing-ball.html" target="_blank">Bouncing Ball</a></li>
<li><a class="s" href="all/warp.html" target="_blank">Warp</a></li>
<li><a class="s" href="all/messages.html" target="_blank">Messages</a></li>
<li><a class="s" href="all/messages2.html" target="_blank">Messages 2</a></li>
<li><a href="all/fade-out.html" class="s" target="_blank">Fade Out</a></li>
<li><a class="s" href="all/logo.html" target="_blank">Logo</a></li>
<li><a class="s" href="all/rainstorm.html" target="_blank">Rainstorm</a></li>
<li><a class="s" href="all/spotlight.html" target="_blank">Spotlight</a></li>
<li><a id="randomizer" href="#" target="_blank">Randomizer</a></li>
</ul>
</div>
<div class="behind">
<a href="http://codepen.io/bryanbraun/pen/bojpu" class="clearfix">
<div class="toaster"></div>
</a>
<p>Made by <a href="http://bryanbraun.com">Bryan</a></p>
</div>
</body>
</html>