-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
61 lines (61 loc) · 1.74 KB
/
404.html
File metadata and controls
61 lines (61 loc) · 1.74 KB
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
---
layout: default
title: 404 - Page Not Found
permalink: /404.html
---
<!-- <html>
<head>
<title>{{ page.title }}</title>
</head>
<body> -->
<style>
hr.grad {
border: 0;
height: 1px;
background-image: linear-gradient(to right, #8df, #000, #8df);
}
div.grad {
background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgb(198, 244, 255) 100%);
}
div.fixed, span.fixed {
font-size: smaller;
font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
}
/* div.vSpace {
height: 80%;
} */
</style>
<div class="grad" style="height:100%">
<h2>Error: {{ page.title }}</h2>
<hr class="grad" width="60%" align="center">
<div>Cannot find the file specified: <span id="PathName" class="fixed">placeholder</span></div>
<br>
<div class="fixed vSpace">
<span id="FullURL">placeholder</span>
</div>
<div id="spacer"> </div>
<hr class="grad">
<div style="text-align: right; color: #888;">
{{ page.path }}
</div>
</div>
<script>
window.onload = () => {
document.getElementById("PathName").innerText = window.location.pathname;
document.getElementById("FullURL").innerText = window.location.href;
padPage(document.documentElement.scrollHeight - 200);
};
function padPage(height) {
var spacer = document.getElementById("spacer")
var div = document.createElement("div");
div.innerHTML = "<br>";
spacer.appendChild(div);
while (div.offsetTop < height) {
div = document.createElement("div");
div.innerHTML = "<br>";
spacer.appendChild(div);
}
}
</script>
<!-- </body>
</html> -->