-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path404.html
319 lines (287 loc) · 13.3 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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js" type="text/javascript"></script>
<title>Browser 95</title>
<style>
/* Link Colors */
a:link{
color: black;
}
a:visited{
color:black;
}
/* Text Marking */
*{
padding:0px;
margin:0px;
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
}
/* Error Window */
.button:active{
outline:none;
}
.box{
padding:0px;
overflow: hidden;
margin:0px;
width:292px;
height: 100px;
position: absolute;
background:#C0C0C0;
border-width:1px;
border-color:#FFFFFF #808080 #808080 #FFFFFF;
border-style:solid;
}
div.title{
height:18px;
width:100%;
background:#000080;
color:#FFF;
}
img.title{
float:left;
}
p.title{
margin:2px 0 0 1px;
float:left;
font-family:Tahoma;
font-weight:bold;
font-size:11px;
}
.title button{
margin:2px 2px 2px 0;
float:right;
width:14px;
height:13.5px;
background:#C0C0C0;
border-width:1px;
border-color:#FFFFFF #808080 #808080 #FFFFFF;
padding:0;
font-size:9px;
font-weight:bold;
font-family:Tahoma;
text-align:center;
focus:none;
}
div.body{
padding:13px 12px 12px;
height:100%;
width:calc(100% - 26px);
display:inline-block;
}
div.body p{
font-family:"MS Sans Serif";
font-size:11px;
}
div.body button{
font-family:"MS Sans Serif";
font-size:11px;
outline:1px solid #000000;
background:#C0C0C0;
border-width:1px;
border-style:solid;
border-color:#FFFFFF #808080 #808080 #FFFFFF;
padding:4px 10px;
margin:20px auto 3px;
display:block;
position:relative;
bottom:0px;
}
/* Task Bar */
#taskbar {
height: 26px;
background-color: rgb(192,192,192);
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
border-top: ridge 2px white;
z-index: 2147483647;
}
#start {
background-size: 17px 15px;
white-space: nowrap;
text-align: right;
font-weight: bolder;
font-size: 14px;
float: left;
height: 21px;
display: inline-block;
margin-left: 2px;
cursor: default;
user-select: none;
}
.startRest {
top: 0px;
left: 0px;
border-top: ridge 2px white;
border-left: ridge 2px white;
border-bottom: ridge 2px black;
border-right: ridge 2px black;
}
.startRest:active {
border-top: inset 2px black;
border-left: inset 2px black;
border-bottom: inset 2px white;
border-right: inset 2px white;
}
#notifications {
margin-right: 2px;
border-top: inset 2px grey;
border-left: inset 2px grey;
border-bottom: inset 2px white;
border-right: inset 2px white;
padding-top: 17px;
display: inline-block;
float: right;
width: 58px;
height: 5px;
}
#clock {
display: inline-block;
float: right;
height: 1em;
text-align: center;
margin-top: -13px;
font-size: 13px;
}
.desktopIcon {
margin: 10px 20px;
display: block;
height: 68px;
width: 50px;
text-align: center;
vertical-align: bottom;
font-size: 10px;
color: white;
}
#mycomputer {
background-color: transparent;
}
.divider{
height:1px;
border-top: ridge 1px white;
border-bottom: ridge 1px grey;
margin: 2px ;
}
/* Print Settings */
@media print {
@page {size: landscape}
html {
background-color: #008080 !important;
print-color-adjust: exact;
-webkit-print-color-adjust:exact;
}
}
</style>
</head>
<body style="background:#008080; width: 100%; height: 100%; overflow: hidden;">
<div id="win">
<div id="desktop">
<!-- Computer Icon -->
<div class="desktopIcon" id="mycomputer" onclick="openDialog()">
<img src="data:image/png;base64,AAABAAEAICAQAAEABADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAP8AAAAAgAAAgICAAAD/AADAwMAA//8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEREREREREREREREREREAABIZmZmZmZmZmZmZmZmZEAASGZmZmZmZmZmZmZmZmREAEhmM2ZmZmZmZmZkZmZkREBIZlVmZmZmYAAAAAAGZERASGZmZmZmZmRERERERmREQEhmZmZmZmZmZmZmZmZkREBIiIiIiIiIiIiIiIiIhERABEREREREREREREREREZEQAAAAAAAAAAAAAAAAABEZEAABEREREREREREREREBEZAAASGZmZmZmZmZmZmZEBEQAAEhoiIiIiIiIiIiGREAAAABIYRERERERERERhkRAAAAASGAiIiIiIiIiIYZEQAAAAEhgIiIiAAAAAiGGREAAAABIYCIiIkiIiAIhhkRAAAAASGAiIABIiIgCIYZEQAAAAEhgIiSISIiIAiGGREAAAABIYCIkiBEREQIhhkRAAAAASGAiJIiIgCIiIYZEQAAAAEhgJyAAAAAiIiGGREAAAABIYCciIiIiIiIhhkRAAAAASGAiIiIiIiIiIYZEQAAAAEhgAAAAAAAAAAGGREAAAABIZEREREREREREhkRAAAAASGZmZmZmZmZmZmZEQAAAAASIiIiIiIiIiIiIREAAAAAARmZmZmZmZmZmZoRAAAAAAARmZmZmZmZmZmZoQAAAAAAAREREREREREREREAACAAAAPAAAABwAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAA4AAAAOAAAADgAAAB4AAAB+AAAAfgAAAH4AAAB+AAAAfgAAAH4AAAB+AAAAfgAAAH4AAAB+AAAAfgAAAH4AAAB+AAAAfgAAAH8AAAB/gAAAf8AAAH/gAADw==" />
<br>
My Computer
</div>
<!-- Recycle Bin Icon-->
<div class="desktopIcon" id="trash" onclick="location.reload()">
<img src=" data:image/png;base64,AAABAAEAICAQAAEABADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAICAgADAwMAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIiAAAAAAAAAAAAAAAAAAIjIiIAAAAAAAAAAAAAAAIjMyIiIgAAAAAAAAAAAAIjMzMiIiIAAAAAAAAAAAIjMzMzIiIiAAAAAAAAAAIjMjMzMyIiIgAAAAAAACIjMyEzMzMiIiIgAAAAAAAjMzIRERMzIiIiIAAAAAAAIzExERERMyIiIiAAAAAAACMSMxEzITMiIiIgAAAAAAIxEzMxMzEzIiIiIgAAAAACMRMzMzMxMyIiIiIAAAAAAjETEzMzMzMiIiIiAAAAAAIxERMzEREzIiIiIgAAAAAjMxETMzERMyIiIiIgAAAAIzEREzMRETMiIiIiIAAAACMzMzERETEzIiIiIiAAAAAjMzMzIRM0REQiIiIgAAACMzMzMzM0QiMzREIiIgAAAjMzMzM0QiMkQzM0RCIAAAIzMzM0QiIzJEREMzNEAAACMzM0QiRCMkREREMzRAAAIzM0QiREQjQkREREJCIAACM0QiQkRCNEIkREQiIAAAAkQiREJEI0RCMkRCIAAAAAJCIkRCQjREQkJEJCAAAAACRCIkQkJERCREIkQgAAAAACJEQiIkREQkREREIAAAAAAAIiREIiREIiREIgAAAAAAAAACIkRCJCACIgAAAAAAAAAAAAAiIAIgAAAAAAAAD//+P///+A///+AD//+AAf/+AAH/+AAB/+AAAf/AAAD/wAAA/8AAAP/AAAD/gAAAf4AAAH+AAAB/gAAAfwAAAD8AAAA/AAAAPwAAAD4AAAAeAAAAHgAAAB4AAAAcAAAAPAAAAPwAAAP8AAAD/AAAA/4AAAP/gAAH//ADH//+M//w==" />
<br>
Recycle Bin
</div>
<!-- Print Icon-->
<div class="desktopIcon" id="print" onclick="window.print()">
<img src="data:image/png;base64,AAABAAEAICAQAAEABADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wAAAAAA/wCAgIAAAP8AAMDAwAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUzAAAAAAAAAAAAAAAAAAVVMzMAAAAAAAAAAAAAAAVVUwAzMwAAAAAAAAAAAAVVUzUzADMzAAAAAAAAAAVVUzU1MzMAMzMAAAAAAAVVUzVVNTMzMwAzMwAAAAA1UzVVVTUzMzMzADMzAAAAMzVVVVU1MzMzMzMAMwAAAzU1VVVVNTMzMzMzMwAAAANlNVVVVTYzMzMzMzMzAAADZTVVVVYzVTMzMzMzMzAAA2U1VVZlVTNVMzMzMzMwMANlNVZlVVVVM1UzMzMzMFMDZTZlVSJVM1UzVTMzMzBTM2YzVURVM1VVUDNVMzMwMAM2VTNVM1VVUAZQM1UzMAAAAzZVMzNVUAZmYFUzVTAAAAADNlUzMAZmEWUDVTMAAAAAAAM2VTNmEWZmAzMAAAAAAAAAAzZVNmZhFlAAAAAAAAAAAAADNjZhFmZlAAAAAAAAAAAAAAMzZmYRZlAAAAAAAAAAAAAAA2YRZmZlAAAAAAAAAAAAAAA2ZmYRZlAAAAAAAAAAAAAAA2YRZmZjMAAAAAAAAAAAAAA2ZmZjMAAAAAAAAAAAAAAAA2ZjMAAAAAAAAAAAAAAAAAAzMAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////x////wH///wAf//wAB//wAAH/wAAAf4AAAB+AAAAPgAAADwAAAA8AAAAHAAAAAwAAAAEAAAAAAAAAAAAAAAMAAAAHwAAAB/AAAB/8AAB//wAB///AAP//8AB///wAP//+AA///wAP//+AP///wP///+P//////w==" />
<br>
Printers
</div>
</div>
<div id="taskbar">
<a href="https://google.com">
<div id="start" class="startRest">
<img style="height:20px; width:20px;" src="data:image/png;base64,AAABAAEAICAQAAEABADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAP8AAAAAAIAAAAD/AACAAAAAgIAAAP8AAAD//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAgAAAhEAAABmgAAAAAIAIgIiAAIiIgCIiIAAAAACIAICIgACIiIAiIiAAAACACAAAAIAAiIiAIiIgAAAAgAAAAAAAAIiIgCIiIAAAgAAAAAAAAACIiIAiIiAAAIAAAAAAAAAABEiAIhmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAEAAAEMwAAAFVwAAAABABEBEQABEREAHd3cAAAAARABAREAARERAB3d3AAAAQAQAAABAAEREQAd3dwAAAEAAAAAAAABEREAHd3cAAEAAAAAAAAAARERAB3d3AABAAAAAAAAAAAM0QAd1UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////bn/5+yIf4fmiAAHt+gAB724AAbsiAAG5ogAB7foAAe9uAAG7IgABuaIAAe36AAHvbgABuyIAAbmiAAHt+gAB724AAbsiAAG5ogAB7foAAe//AAO//8APv////////////////////w==">
<b>Start</b>
</div>
</a>
<div id="notifications">
<div id="clock"></div>
</div>
</div>
</div>
<!-- Create error windows and handle their dragging-->
<script>
var errNum = 404;
var posZ = 0;
function spawnWindow() {
let posx = (Math.random() * ($(document).width() - 292)).toFixed();
let posy = (Math.random() * ($(document).height() - 125)).toFixed();
posZ += 1;
// Spawn new window
$('body').append(`
<div class="box draggable" style="top: ${posy}px; left: ${posx}px; z-index: ${posZ}">
<div class="title" id="header">
<img src=" data:image/png;base64,AAABAAEAICAQAAEABADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AACAAACAgIAAAP8AAMDAwAAA//8A////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEREAAAEREAAAAAAAAAAAAAEREAAREQAAAAAAAAAAAAAAEREBERAAAAAAAAAAAAAAAAEREREAAAAAAAAAAAAAAAAAEREQAAAAAAAAAAAAAAAAABEREAAAAAAAAAAAAAAAAAEREREAAAAAAAAHB3d3d3cREWERF3d3d3dwcwMzMzMxERMzEREzMzMzMDAAAAAAEREDcAEREAAAAAAAAAAAAAAAA3AAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMzMzMzMzMzMzMzMzMzAAADdVVVVVVVVVVVVVVVUzAAA3V3d3d3d3d3d3d3dVMzAAN1MzMzMzMzMzMzMzVTMwADdXd3d3d3d3d3d3d1UzMAA3UzMzMzMzMzMzMzNVMzAAN1VVVVVVVVVVVVVVVTMwADdVVVVVVVVVVVVSIlUzMAA3VVVVVVVVVVVVVERVMzAAN3d3d3d3d3d3d3d3dzMwAANVVVVVVVVVVVVVVVVTMAAANVVVVVVVVVVVVVVVVTAAAAMzMzMzMzMzMzMzMzMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////h8P//8OH///hD///8B////g////wH/9AAAACQAAAAkAAAAL/hEP///x////8f//AAAAPgAAAB4AAAAOAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAcAAAAHgAAAB8AAAA////////////////w==" width="18" height="18" class="title" />
<p class="title"> Error ${errNum}</p>
<button onclick="spawnWindow()">X</button>
<a href="https://google.com">
<button>?</button>
</a>
</div>
<div class="body">
<img style="float: left;" src="data:image/png;base64,AAABAAEAICAQAAEABADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAD/AICAgAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAREREREREQiIiIiREREREREREREREIiIiIiIiIkREREREREREQiAAAAACIiIkREREREREQgABEREREAAiIiRERERERCARERERERERAiIiREREREABERERERERERACIiREREQBERERERERERERECIkRERAERERERERERERERECIkREQBERERERERERERERAiIkRAERERMRERERETERERAiJEAREREzMRERERMzERERAiRAERETMzMREREzMzEREQIiQBERETMzMRETMzMRERECIgERERETMzMRMzMxERERECIBERERETMzMzMzERERERAiARERERETMzMzMREREREQIgERERERETMzMxERERERECIBEREREREzMzMRERERERAiARERERETMzMzMREREREQIgERERERMzMzMzMRERERECQBEREREzMzETMzMRERERAkQBERETMzMRETMzMRERECJEARERMzMxERETMzMRERAkRAERERMzERERETMxEREQRERAERERMRERERETERERAkRERAERERERERERERERECREREQBERERERERERERERBEREREQBEREREREREREREEREREREQAEREREREREREARERERERERAEREREREREQRERERERERERAABEREREABEREREREREREREQAAAAARERERERET/+Af//8AA//+AAH/+AAAf/AAAD/gAAAfwAAAH4AAAA+AAAAHAAAABgAAAAYAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAGAAAABgAAAA4AAAAfAAAAH4AAAD+AAAB/wAAA/+AAAf/4AAf//AAP//+Af/w==">
<p style="float: right;"><b>Browser 95</b>: Unable to locate your page.</p>
<button style="top: 15px; width: 60px;" class="button" onclick="spawnWindow()">OK</button>
</div>
</div>
`).find('div.draggable').draggable({scroll: false});
// Bring focussed window to front
$(".draggable").on('mousedown', function(event) {
if ($(this).css("z-index") < posZ) {
posZ += 1;
$(this).css(`z-index`, posZ);
}
});
errNum += 1;
}
</script>
<!-- Open dummy dialog by clicking on desktop icon -->
<script>
function openDialog() {
let input = document.createElement('input');
input.type = 'file';
input.click();
}
</script>
<!-- Initialize time and first error window-->
<script>
// Desktop environment
$(document).ready(function () {
startTime();
spawnWindow();
});
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
// add a zero in front of numbers<10
m = checkTime(m);
s = checkTime(s);
var hd = h;
$('#clock').html("<b>" + (hd = 0 ? "12" : hd > 12 ? hd - 12 : hd) + ":" + m + " " + (h < 12 ? "AM" : "PM") + "</b>");
t = setTimeout(function () { startTime() }, 500);
}
function checkTime(i) {
if (i < 10) {
i = "0" + i;
}
return i;
}
</script>
</body>
</html>