forked from dmjone/dmjone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
139 lines (115 loc) · 7.17 KB
/
Copy path404.html
File metadata and controls
139 lines (115 loc) · 7.17 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
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
<!-------------------------- © 2007 - present, dmj.one and contributors. ----------------------------------
Part of the dmjone project. Licensed under the GNU AGPL. Provided as-is, without warranty of any kind.
-------------------- Redistribution and modifications must retain this notice. --------------------------->
<!DOCTYPE html>
<html>
<head>
<script>window["page"] = 404;</script>
<script src="/js/edu_su_common.js"></script>
<noscript>
<style>
html,
body {
margin: 0;
overflow: hidden;
}
</style>
<iframe src="/frame_noscript.html" style="width:100%;height:100vh;border:none;display:block"></iframe>
</noscript>
<title>Error 404 - Page Not Found - dmj.one</title>
<!--Study with dmj.one @Shoolini University-->
<meta name="description" content="Oops there has been an error! We are unable to find the page you specified at the URL. Please return to homepage while we fix this.">
<meta property="og:image" content="/logo.png">
<meta property="og:type" content="article">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@divyamohan1993">
<meta name="twitter:creator" content="@divyamohan1993">
<meta name="twitter:image" content="/logo.png">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<style>
p {
font-size: 1rem;
}
</style>
</head>
<body>
<div id="e404_lcdinstruction_con" class="container-fluid bg-success bg-opacity-10">
<div id="e404_lcddisplaycontainer" class="shadow rounded-bottom-5 text-center bg-danger bg-gradient bg-opacity-75 mt-4 border border-1 border-danger">
<h1 id="e404_dmjone_error404" class="display-1 text-uppercase py-3 neon-effect" style="background:var(--background-color)">
Error 404
</h1>
<h3 id="e404_dmjone_pagenotfound" class="text-white py-1">Page Not Found</h3>
</div>
<p id="e404_instruction" class="shadow rounded text-center bg-info bg-gradient bg-opacity-25 p-3 my-4">Oops! The page you were looking for is off exploring new knowledge. Take a break with this quote while we guide you back in <span id="e404_countdownspace" class="fw-bold"></span> seconds! (Refresh for more quotes)</p>
</div>
<main id="main" class="container-fluid mt-3 mb-3">
<script>gen_blockquote()</script>
</main>
<script>copyright("all")</script>
<script>
(function () {
document.addEventListener('DOMContentLoaded', function () {
var e404_lcdinstruction_con = document.getElementById('e404_lcdinstruction_con');
var e404_lcddisplaycontainer = document.getElementById('e404_lcddisplaycontainer');
var error404 = document.getElementById('e404_dmjone_error404');
var pageNotFoundElement = document.getElementById('e404_dmjone_pagenotfound');
var instructionElement = document.getElementById('e404_instruction');
var mainElement = document.getElementById('main');
var countdownElement = document.getElementById('e404_countdownspace');
var footerElement = document.getElementById('defaultcopyrightfooter');
// get the element by its tag name. the tag is nav
var countdown = 15;
var referrer = document.referrer;
var origin = window.location.origin;
countdownElement.textContent = countdown;
var messages = [
{ time: 14, text: "Relax" },
{ time: 13, text: "Take a Break" },
{ time: 11, text: "Read the quote" },
{ time: 6, text: "Done ?" },
{ time: 4, text: referrer && referrer.includes(origin) ? "Let's go back" : "Let's go home" },
{ time: 2, text: "Redirecting" }
];
var interval = setInterval(function () {
countdown--;
countdownElement.textContent = countdown;
messages.forEach(function (message) {
if (countdown < message.time) {
error404.textContent = message.text;
}
});
if (countdown < 2) {
var disqusThread = document.getElementById('disqus_thread');
var disqusRecommendations = document.getElementById('disqus_recommendations');
var navElement = document.getElementsByTagName('nav')[0];
mainElement.classList.add('d-none');
instructionElement.classList.add('d-none');
footerElement.classList.add('d-none');
// navElement.classList.add('d-none');
e404_lcdinstruction_con.className = 'container-fluid bg-transparent';
e404_lcddisplaycontainer.className = 'shadow rounded-bottom-5 text-center bg-danger bg-gradient bg-opacity-75 border border-1 border-danger my-10';
error404.className = 'display-1 text-uppercase py-3 neon-effect py-10 fw-bold lato-100';
pageNotFoundElement.className = 'text-white py-1 quicksand text-uppercase fw-normal';
pageNotFoundElement.style.wordSpacing = '0.5rem';
pageNotFoundElement.style.letterSpacing = '0.1rem';
if (disqusThread) disqusThread.classList.add('d-none');
if (disqusRecommendations) disqusRecommendations.classList.add('d-none');
}
if (countdown < 4) {
pageNotFoundElement.classList.add('fw-bold');
pageNotFoundElement.textContent = `in ${countdown}...`;
}
if (countdown < 3) pageNotFoundElement.textContent = `in ${countdown}..`;
if (countdown < 2) pageNotFoundElement.textContent = `Lets go`;
if (countdown < 1) pageNotFoundElement.classList.add('d-none');
if (countdown === 1) {
clearInterval(interval);
window.location.href = referrer && referrer.includes(origin) ? referrer : origin;
}
}, 1000);
});
})();
</script>
</body>
</html>