forked from meryllblanchet/petplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
95 lines (87 loc) · 3.05 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
<!DOCTYPE html>
<html>
<head>
<title>Page not found</title>
<script type="text/javascript">
window.isErrorPage = true;
window.errorCode = '404';
</script>
<meta name="template" content="searchresults">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Page not found">
<script src="/scripts/lib-franklin.js" type="module"></script>
<script src="/scripts/scripts.js" type="module"></script>
<link rel="stylesheet" href="/styles/styles.css"/>
<script type="module">
import { sampleRUM } from '/scripts/lib-franklin.js';
let redirecting = false;
// Trying to fix URLs producing 404s
// Redirect RSS feeds
if (window.location.pathname.endsWith('/feed/')) {
redirecting = true;
sampleRUM('redirect-rss-feed', { source: document.referrer, target: window.location.href });
window.location.replace('/rss.xml');
}
window.addEventListener('load', () => {
if (document.referrer) {
const { origin, pathname } = new URL(document.referrer);
if (origin === window.location.origin) {
const backBtn = document.createElement('a');
backBtn.classList.add('button', 'error-button-back');
backBtn.href = pathname;
backBtn.textContent = 'Go back';
backBtn.title = 'Go back';
const btnContainer = document.querySelector('.button-container');
btnContainer.append(backBtn);
}
}
});
sampleRUM('404', { source: document.referrer, target: window.location.href });
</script>
<script>
window.googletag ||= { cmd: [] };
window.dataLayer ||= [];
window.clarity ||= function() {
(window.clarity.q ||= []).push(arguments)
}
window.PushlySDK ||= [];
function gtag() { window.dataLayer.push(arguments); }
gtag('consent', 'default', {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied'
});
</script>
<link rel="stylesheet" href="/styles/lazy-styles.css">
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
let f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.type = 'text/javascript';
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-WP2SGNL');
</script>
<script src="https://www.googletagmanager.com/gtag/js?id=AW-11334653569" async></script>
</head>
<body class="">
<header></header>
<main class="error">
<div class="section">
<svg viewBox="1 0 38 18" class="error-number">
<text x="0" y="17">404</text>
</svg>
<h2 class="error-message">Page Not Found</h2>
<p class="button-container">
<a href="/" class="button secondary error-button-home">Go home</a>
</p>
</div>
</main>
<footer></footer>
</body>
</html>