This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 367
/
404.html
82 lines (78 loc) · 2.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
<link rel="stylesheet" type="text/css" href="/main.css"/>
<div class="title">
<h1 id="title1">404 not found</h1>
<h1 id="title5">Starting up proxy...</h1>
</div>
<div class="belowtitle" onclick="gohome();">
<h4 id="title3">it looks like you mistyped a link.</h4>
<h4 id="title4">If you aren't redirected after 10 seconds, please click Start up Proxy</h4>
<h4 id="title2" class="title2"> go home?</h4>
<form id="regform">
<button onclick="window.location.reload(1);" id="uv-register-sw" value="Register service worker" type="submit">
Start up Proxy
</button>
</form>
</div>
<style>
#uv-register-sw{
border:2px solid white;
color:white;
background:none;
border-radius:25px;
}
.belowtitle{
font-family: "Roboto", Arial, Helvetica, sans-serif;
position: absolute;
width: 100%;
height: 100px;
top:48%;
float: center;
align: center;
text-align: center;
color: #FFFFFF;
}
.title{
font-family: "Roboto", Arial, Helvetica, sans-serif;
position: absolute;
width: 100%;
height: 100px;
top:17%;
float: center;
align: center;
text-align: center;
color: #FFFFFF;
}
.title2{
color: blue;
}
body{
background: black;
}
</style>
<script>
if (window.location.href.includes("/service/")){
document.getElementById("title2").style.display="none";
document.getElementById("title3").style.display="none";
document.getElementById("title1").style.display="none";
}
else{
document.getElementById("title4").style.display="none";
document.getElementById("title5").style.display="none";
document.getElementById("uv-register-sw").style.display="none";
}
var fontsize1=2560/screen.width*18;
title1.style.fontSize=fontsize1+"px";
var fontsize2=2560/screen.width*7.5;
title2.style.fontSize=fontsize2+"px";
var fontsize3=2560/screen.width*7.5;
title3.style.fontSize=fontsize3+"px";
function gohome(){
window.location.href=window.location.origin;
}
</script>
<script src="/uv/uv.bundle.js" defer></script>
<script src="/uv/uv.config.js" defer></script>
<script src="/register-sw.js" defer></script>
<script src="/search.js" defer></script>
<script src="/scripts/load.js" defer></script>
<script src="/error.js" defer></script>