-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
146 lines (134 loc) · 5.84 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="I'm Erik Yang, a software engineer studying at UC Berkeley.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Favicon-->
<!--Credit:https://realfavicongenerator.net/-->
<link rel="apple-touch-icon" sizes="57x57" href="/favicons/apple-touch-icon-57x57.png?v=0">
<link rel="apple-touch-icon" sizes="60x60" href="/favicons/apple-touch-icon-60x60.png?v=0">
<link rel="apple-touch-icon" sizes="72x72" href="/favicons/apple-touch-icon-72x72.png?v=0">
<link rel="apple-touch-icon" sizes="76x76" href="/favicons/apple-touch-icon-76x76.png?v=0">
<link rel="apple-touch-icon" sizes="114x114" href="/favicons/apple-touch-icon-114x114.png?v=0">
<link rel="apple-touch-icon" sizes="120x120" href="/favicons/apple-touch-icon-120x120.png?v=0">
<link rel="apple-touch-icon" sizes="144x144" href="/favicons/apple-touch-icon-144x144.png?v=0">
<link rel="apple-touch-icon" sizes="152x152" href="/favicons/apple-touch-icon-152x152.png?v=0">
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon-180x180.png?v=0">
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png?v=0" sizes="32x32">
<link rel="icon" type="image/png" href="/favicons/android-chrome-192x192.png?v=0" sizes="192x192">
<link rel="icon" type="image/png" href="/favicons/favicon-96x96.png?v=0" sizes="96x96">
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png?v=0" sizes="16x16">
<link rel="manifest" href="/favicons/manifest.json?v=0">
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg?v=0" color="#dc143c">
<link rel="shortcut icon" href="/favicons/favicon.ico?v=0">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/favicons/mstile-144x144.png?v=0">
<meta name="msapplication-config" content="/favicons/browserconfig.xml?v=0">
<meta name="theme-color" content="#ffffff">
<!--Icons-->
<!--Fonts-->
<link href="https://fonts.googleapis.com/css?family=Lato:400,700|Montserrat" rel="stylesheet">
<!--Stylesheets-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<style>
body{
font-family: 'Lato', sans-serif;
font-size: 16px;
font-weight: 400;
}
#background{
background-color: #ff7e75;
background: -moz-linear-gradient(120deg, #ff7e75, #ff9988, #a91f56);
background: -webkit-linear-gradient(120deg, #ff7e75, #ff9988, #a91f56);
background: linear-gradient(120deg, #ff7e75, #ff9988, #a91f56);
position: relative;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
}
#center-box{
background-color: white;
border: 1px solid #DDD;
color: #222;
text-align: center;
-webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.1);
-moz-box-shadow: 0 1px 5px rgba(0,0,0,0.1);
box-shadow: 0 5px 5px rgba(0,0,0,0.1);
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
display: table;
padding: 20px;
}
hr{
margin: 10px 0;
}
h1{
font-family: 'Montserrat', sans-serif;
font-size: 50px;
margin: 3px 0px;
}
h2{
font-family: 'Montserrat', sans-serif;
font-size: 20px;
margin: 3px 0px;
}
.btn img{
height: 30px;
}
#button-text{
display: inline-block;
vertical-align: middle;
}
@media (max-width: 768px) {
.hide-in-mobile{
display: none;
}
}
</style>
<title>
Erik Yang | Page Not Found
</title>
</head>
<!--
TODO:
Red herring mouse
-->
<body>
<div id="background">
<div id="center-box">
<h1>404 Error</h1>
<h2>File not found</h2>
<hr>
<p>Sorry, the page you were finding doesn't exist.</p>
<p><a href="https://www.github.com/erikyangs">Go to @erikyangs Github profile</a></p>
<p class="hide-in-mobile">On the bright side, here's an Easter Egg.</p>
<div id="easteregg" class="btn btn-primary hide-in-mobile"><img src="https://erikyangs.github.io/img/easteregg.png" alt=""></img> <div id="button-text">Activate Easter Egg</div></div>
</div>
</div>
<!--Javascript-->
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script>
$("#easteregg").click(function(){
var noselect = {"-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"};
$("body").css(noselect);
var nocursor = {"cursor":"none"};
$("body").css(nocursor);
$("#center-box").empty().html("<div style='width:100px;height:100px;margin:auto;background-size:contain;background-repeat:no-repeat;background-image:url(\"https://erikyangs.github.io/img/crazydancingmouse.GIF\")';></div><h2>Mouse and Keyboard have been sabotaged</h2>");
$('#background').append("<a href=''><div id='stop' class='btn btn-primary' style='padding:3px 5px;margin:10px;position:absolute;bottom:0;right:0;'>stop this madness</div></a>");
//disable right click
$(document).bind("contextmenu", function(event) {
event.preventDefault();
});
//disable keyboard
$(document).keydown(function(event) {
return false;
});
});
</script>
</body>
</html>