-
Notifications
You must be signed in to change notification settings - Fork 2
/
404.html
299 lines (279 loc) · 9.59 KB
/
404.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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<link rel="alternate" type="application/rss+xml" title="Dear Cast & Crew" href="www.dearcastandcrew.com/feed.xml">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Page Not Found | Dear Cast & Crew</title>
<link type="text/css" rel="stylesheet" href="http://fast.fonts.net/cssapi/053a7698-a2e7-4a94-b380-2cfed49d680a.css"/>
<link rel="icon" href="/favicon.png" type="image/png">
<link href="/assets/css/app.css" rel="stylesheet" />
<script type="text/javascript" src="/assets/js/app-top-min.js"></script>
<style>
html, body{
background-color: transparent;
}
#background-image{
width: 100vw;
height: 100vh;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
z-index: 0;
transition: 2s filter linear;
transition: 2s -webkit-filter linear;
background-repeat: no-repeat;
background-position-x: center;
background-position-y: center;
background-position: fixed;
}
#main-404{
width: 100vw;
height: 100vh;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
overflow: scroll;
position: fixed;
top:0;
z-index: 5;
}
#search-404{
margin-top: 25px;
-webkit-transition: 2s; /* For Safari 3.1 to 6.0 */
transition: 2s;
}
#logo{
width:200px;
height:85px;
position: absolute;
top:15px;
left:15px;
display: block;
text-shadow: 0px 0px 3px #333;
}
#results-container{
margin: 25px auto 0 auto;
right: 0;
left: 0;
top:95px;
width: 60%;
display:block;
background-color: rgba(0,0,0,.40);
height: 0;
overflow-y: scroll;
}
h1.results{
color:#fff;
font-family: dcac-sans;
font-weight: bold;
font-size: 1.8rem;
display:none;
text-align: center;
margin-top: 1.8rem;
}
#search-results{
display: none;
}
.search-results{
margin-top: auto;
}
div.search-result{
width:405px;
}
#main-copy-1, #main-copy-2, #main-copy-3, #main-copy-4, #main-copy-5, #main-copy-6, #main-copy-7, #main-copy-8, #main-copy-9{
display: none;
text-align: center;
}
#logo-white, #logo-black{
display: none;
}
h1#main-copy-8.main-smaller, h1#main-copy-9.main-smaller{
font-size: 3rem;
line-height: 3rem;
@media @mobile{
font-size: 1.2rem;
text-align: left;
line-height: 1rem;
}
}
#site-nav{
font-family: dcac-sans;
font-weight: bold;
text-align: center;
margin-top: 10px;
}
#site-nav ul{
display: table;
margin: 0;
list-style: none;
text-align: center;
margin: 0 auto;
text-shadow: 0px 0px 3px #333;
}
#site-nav ul li{
display: table-cell;
text-align: center;
}
#site-nav ul li::after{
content: "|";
color:#fff;
font-family: dcac-sans;
}
#site-nav ul li:last-child:after{
content: "";
color:#fff;
font-family: dcac-sans;
}
#site-nav ul li a{
color:#fff;
font-family: dcac-sans;
font-weight: bold;
font-size: .8rem;
text-transform: uppercase;
text-align: center;
padding: 0 10px;
}
#site-nav ul li a:hover{
text-decoration: none;
color:#000;
}
</style>
</head>
<body>
<div id="background-image"></div>
<div id="main-404">
<div id="logo"><a href="http://www.dearcastandcrew.com">
<img id="logo-white" src="/assets/img/global/logo/dcac-full-logo-white.svg" />
<img id="logo-black" src="/assets/img/global/logo/dcac-full-logo.svg" />
</a></div>
<div class="copy">
<h1 id="main-copy-1">This is not the page you're looking for.</h1>
<h1 id="main-copy-2">There's nothing in this box.</h1>
<h1 id="main-copy-3">It's like looking for a page in a stack of pages.</h1>
<h1 id="main-copy-4">Maybe we could build a fire, sing a couple of songs, huh?</h1>
<h1 id="main-copy-5">I'd rather not spend the rest of winter looking at this f&*%ing page!</h1>
<h1 id="main-copy-6">Game over, man. GAME OVER!</h1>
<h1 id="main-copy-7">We have top men looking for your page. Top. Men.</h1>
<h1 id="main-copy-8" class="main-smaller">Call it luck, call it karma, I believe everything happens for a reason. I believe that we were destined to get thrown outta this page.</h1>
<h1 id="main-copy-9" class="main-smaller">When you go looking for anything at all, your chances of finding it are very good. Because of all the things in the world, you're sure to find some of them. But not this page.</h1>
<p class="error-txt">Your requested page was not found.</p>
</div>
<div id="search-container">
<div id="search-404" class="search-form">
<form method="get" id="search-form">
<input type="text" id="search-query" class="search-query" name="q" placeholder="Search Dear Cast & Crew" autocomplete="off" />
</form>
</div>
<div id="site-nav">
<ul>
<li><a href="http://www.dearcastandcrew.com">Home</a></li>
<li><a href="/reviews/">Reviews</a></li>
<li><a href="/features">Features</a></li>
<li><a href="/writers/">Writers</a></li>
</ul>
</div>
<div id="results-container">
<h1 class="results">Search Results</h1>
<section id="search-results" class="search-results">
<div class="entries">
</div>
</section>
</div>
</div>
<!-- <script type="text/javascript" src="/js/search.min.js"></script> -->
<script id="search-results-template" class="search-results-template" type="text/mustache">
{{#entries}}
<div class="search-results-article">
<a href="{{url}}"><div class="search-image"><img src="/assets/img/posts/thumb-300/{{image}}" /></div>
<div class="search-result">
<h1 class="search-title">{{title}}</h1>
<p class="search-addressee">Dear {{addressee}}, {{position}}</p>
<p class="search-author">By {{author}}</p>
<!-- <p class="search-date">{{#date}}<small><time datetime="{{pubdate}}" pubdate>{{displaydate}}</time></small>{{/date}}</p> -->
</div></a>
</div>
{{/entries}}
</script>
<script type="text/javascript">
var imageSet = 1 + Math.floor(Math.random() * 9);
var copyDiv = "#main-copy-" + imageSet;
$( "#background-image" ).css({
backgroundImage: "url('/assets/img/error/404-" + imageSet + ".jpg')",
})
$( copyDiv ).css({
display: "block"
})
if (imageSet >= 8) {
$( "#logo-black" ).css({
display: "block"
});
}
else{
$( "#logo-white" ).css({
display: "block"
});
}
$(function() {
$('#search-query').lunrSearch({
index: '/search.json',
results: '#search-results',
entries: '.entries',
template: '#search-results-template'
});
});
resultHeight = $(window).height()-150;
$( "#search-query" ).focusin(function() {
$("#search-query").removeAttr('placeholder');
$( ".copy" ).animate({opacity: 0, height: 0}, 'slow', function() {
$(this).remove();
//var resultHeight = window.height();
//alert(window.height());
$( "#results-container" ).animate({height:resultHeight},'slow');
$( "#results-container" ).css({
position: "fixed"
});
});
$("#site-nav").animate({opacity:0},'fast');
$( ".results" ).fadeIn('slow');
$( "#background-image" ).css({
filter: "blur(5px)",
'-webkit-filter': "blur(5px)"
});
});
</script>
<!-- Search -->
<script>
function resetForm($form) {
$form.find('input:text, input:password, input:file, select, textarea').val('');
$form.find('input:radio, input:checkbox')
.removeAttr('checked').removeAttr('selected');
}
$("#search-form").submit(function(e) {
e.preventDefault();
});
$(document).keyup(function(e){
if(e.keyCode === 27) {
$("#search-modal").css("display","none");
$("body").css("overflow","auto");
resetForm($('#search'));
}
});
</script>
<script type="text/javascript" src="/assets/js/app-bottom-min.js"></script>
<script>
Modernizr.addTest('svgasimg', document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'));
if (!Modernizr.svgasimg) {
$('img[src*="svg"]').attr('src', function() {
return $(this).attr('src').replace('.svg', '.png');
});
}
$(document).ready(function(){
var bLazy = new Blazy();
});
</script>
</div>
</body>
</html>