-
Notifications
You must be signed in to change notification settings - Fork 9
/
404.html
207 lines (183 loc) · 7.97 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
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600" media="screen" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" media="screen" rel="stylesheet" />
<style>
*{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,caption,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;vertical-align:baseline;background:transparent}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}html{font-size:16px;line-height:24px;width:100%;height:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;overflow-y:scroll;overflow-x:hidden}img{vertical-align:middle;max-width:100%;height:auto;border:0;-ms-interpolation-mode:bicubic}body{min-height:100%;-webkit-font-smoothing:subpixel-antialiased}.clearfix{clear:both;zoom:1}.clearfix:before,.clearfix:after{content:"\0020";display:block;height:0;visibility:hidden}.clearfix:after{clear:both}
</style>
<style>
.plain.error-page-wrapper {
font-family: 'Source Sans Pro', sans-serif;
background-color:#6355bc;
padding:0 5%;
position:relative;
}
.plain.error-page-wrapper .content-container {
-webkit-transition: left .5s ease-out, opacity .5s ease-out;
-moz-transition: left .5s ease-out, opacity .5s ease-out;
-ms-transition: left .5s ease-out, opacity .5s ease-out;
-o-transition: left .5s ease-out, opacity .5s ease-out;
transition: left .5s ease-out, opacity .5s ease-out;
max-width:400px;
position:relative;
left:-30px;
opacity:0;
}
.plain.error-page-wrapper .content-container.in {
left: 0px;
opacity:1;
}
.plain.error-page-wrapper .head-line {
transition: color .2s linear;
font-size:48px;
line-height:60px;
color:rgba(255,255,255,.2);
letter-spacing: -1px;
margin-bottom: 5px;
}
.plain.error-page-wrapper .subheader {
transition: color .2s linear;
font-size:36px;
line-height:46px;
color:#fff;
}
.plain.error-page-wrapper hr {
height:1px;
background-color: rgba(255,255,255,.2);
border:none;
width:250px;
margin:35px 0;
}
.plain.error-page-wrapper .context {
transition: color .2s linear;
font-size:18px;
line-height:27px;
color:#fff;
}
.plain.error-page-wrapper .context p {
margin:0;
}
.plain.error-page-wrapper .context p:nth-child(n+2) {
margin-top:12px;
}
.plain.error-page-wrapper .buttons-container {
margin-top: 45px;
overflow: hidden;
}
.plain.error-page-wrapper .buttons-container a {
transition: color .2s linear, border-color .2s linear;
font-size:14px;
text-transform: uppercase;
text-decoration: none;
color:#fff;
border:2px solid white;
border-radius: 99px;
padding:8px 30px 9px;
display: inline-block;
float:left;
}
.plain.error-page-wrapper .buttons-container a:hover {
background-color:rgba(255,255,255,.05);
}
.plain.error-page-wrapper .buttons-container a:first-child {
margin-right:25px;
}
@media screen and (max-width: 485px) {
.plain.error-page-wrapper .header {
font-size:36px;
}
.plain.error-page-wrapper .subheader {
font-size:27px;
line-height:38px;
}
.plain.error-page-wrapper hr {
width:185px;
margin:25px 0;
}
.plain.error-page-wrapper .context {
font-size:16px;
line-height: 24px;
}
.plain.error-page-wrapper .buttons-container {
margin-top:35px;
}
.plain.error-page-wrapper .buttons-container a {
font-size:13px;
padding:8px 0 7px;
width:45%;
text-align: center;
}
.plain.error-page-wrapper .buttons-container a:first-child {
margin-right:10%;
}
}
</style>
<style>
.background-color {
background-color: rgba(253, 205, 96, 1) !important;
}
.primary-text-color {
color: rgba(255, 255, 255, 1) !important;
}
.secondary-text-color {
color: rgba(255, 255, 255, 1) !important;
}
.sign-text-color {
color: #FFBA00 !important;
}
.sign-frame-color {
color: #343C3F;
}
.pane {
background-color: #FFFFFF !important;
}
.border-button {
color: rgba(245, 30, 41, 1) !important;
border-color: rgba(245, 30, 41, 1) !important;
}
.button {
background-color: rgba(245, 30, 41, 1) !important;
color: #FFFFFF !important;
}
.shadow {
box-shadow: 0 0 60px #000000;
}
</style>
</head>
<body class="plain error-page-wrapper background-color background-image">
<div class="content-container">
<div class="head-line secondary-text-color">
404
</div>
<div class="subheader primary-text-color">
Oops, the page you're <br>
looking for does not exist.
</div>
<hr>
<div class="clearfix"></div>
<div class="context primary-text-color">
<!-- doesn't use context_content because it's ALWAYS the same thing -->
<p>
You may want to head back to the homepage.<br />
If you think something is broken, report a problem.
</p>
</div>
<div class="buttons-container">
<a class="border-button" href="http://ecmascript-daily.github.io/" target="_blank">Go To Homepage</a>
<a class="border-button" href="https://github.com/ecmascript-daily/ecmascript-daily.github.com/issues" target="_blank">Report A Problem</a>
</div>
</div>
<script>
function ErrorPage(e,t,n){this.$container=$(e),this.$contentContainer=this.$container.find(n=="sign"?".sign-container":".content-container"),this.pageType=t,this.templateName=n}ErrorPage.prototype.centerContent=function(){var e=this.$container.outerHeight(),t=this.$contentContainer.outerHeight(),n=(e-t)/2,r=this.templateName=="sign"?-100:0;this.$contentContainer.css("top",n+r)},ErrorPage.prototype.initialize=function(){var e=this;this.centerContent(),this.$container.on("resize",function(t){t.preventDefault(),t.stopPropagation(),e.centerContent()}),this.templateName=="plain"&&window.setTimeout(function(){e.$contentContainer.addClass("in")},500),this.templateName=="sign"&&$(".sign-container").animate({textIndent:0},{step:function(e){$(this).css({transform:"rotate("+e+"deg)","transform-origin":"top center"})},duration:1e3,easing:"easeOutBounce"})},ErrorPage.prototype.createTimeRangeTag=function(e,t){return"<time utime="+e+' simple_format="MMM DD, YYYY HH:mm">'+e+"</time> - <time utime="+t+' simple_format="MMM DD, YYYY HH:mm">'+t+"</time>."},ErrorPage.prototype.handleStatusFetchSuccess=function(e,t){if(e=="503")$("#replace-with-fetched-data").html(t.status.description);else if(!t.scheduled_maintenances.length)$("#replace-with-fetched-data").html("<em>(there are no active scheduled maintenances)</em>");else{var n=t.scheduled_maintenances[0];$("#replace-with-fetched-data").html(this.createTimeRangeTag(n.scheduled_for,n.scheduled_until)),$.fn.localizeTime()}},ErrorPage.prototype.handleStatusFetchFail=function(e){$("#replace-with-fetched-data").html("<em>(enter a valid StatusPage.io url)</em>")},ErrorPage.prototype.fetchStatus=function(e,t){if(!e||!t||t=="404")return;var n="",r=this;t=="503"?n=e+"/api/v2/status.json":n=e+"/api/v2/scheduled-maintenances/active.json",$.ajax({type:"GET",url:n}).success(function(e,n){r.handleStatusFetchSuccess(t,e)}).fail(function(e,n){r.handleStatusFetchFail(t)})};
var ep = new ErrorPage('body', "404", "plain");
ep.initialize();
// hack to make sure content stays centered >_<
$(window).on('resize', function() {
$('body').trigger('resize')
});
</script>
</body>
</html>