-
Notifications
You must be signed in to change notification settings - Fork 103
/
404.html
71 lines (66 loc) · 2.61 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<title>RedditP 404</title>
<meta name="description" content="404 - A fullscreen presentation or slide show of reddit. RedditP" />
<link rel="shortcut icon" href="/images/favicon.png" />
<link rel="stylesheet" type="text/css" href="/css/style.css"/>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-4533496-15']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body style="text-align:center; margin: 10px; color: #aaa;">
<h2>
Sorry, couldn't find that page (404)...
</h2>
<p>Maybe try these presentations instead:</p>
<ul>
<li>
<a href="/r/earthporn">earthporn</a>
</li>
<li>
<a href="/r/aww">aww</a>
</li>
<li>
<a href="/r/foodporn">foodporn</a>
</li>
<li>
<a href="/r/funny">funny</a>
</li>
<li>
<a href="/r/gonewild">gonewild</a>
</li>
<li>
<a href="/r/spaceporn">spaceporn</a>
</li>
<li>
<a href="/r/gifs">gifs</a>
</li>
<li>
<a href="/r/all">all</a>
</li>
<li>
<a id="tagsyo-link" href="https://www.tagsyo.com">Tagsyo might have what you're looking for...</a>
</li>
</ul>
<p>You could also <a href="https://github.com/ubershmekel/redditp">find the bug</a> or email the <a href="mailto:[email protected]">author.</a></p>
<script type="text/javascript" src="/js/fix-tagsyo-link.js" async></script>
<script>
// Fix github pages 404-ing on every subreddit url like https://gh.redditp.com/r/gifs
// Inspired by https://github.com/rafgraph/spa-github-pages/blob/gh-pages/404.html
if (window.location.host === "gh.redditp.com" && window.location.pathname !== '/') {
// Go to the root page, keep the GET parameters
// TODO: avoid adding extra `/?&` characters every time
window.location = '/?' + window.location.pathname + '&' + window.location.search.substring(1);
}
</script>
</body>
</html>