-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path404.html
89 lines (73 loc) · 1.67 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Not Found</title>
<style media="screen">
body {
background:#f8f8f8;
}
h1 {
color:#555;
font-family: montserrat;
font-size:80px;
text-align: center;
}
.input-wrapper {
width:100%;
box-sizing: border-box;
padding:30px 250px;
}
input {
padding:16px 8px;
border:none;
width:100%;
text-align: center;
box-shadow: 0px 0px 1px 0px #ccc;
color:#777;
font-family: monospace;
font-size: 20px;
font-weight: 100;
}
input:focus {
outline: none;
}
p {
color:#888;
font-family: raleway;
font-size:32px;
line-height: 150%;
text-align: center;
}
button#go {
margin:5px 0px;
width:30%;
padding:10px;
border:none;
color:#fff;
font-size:20px;
background:#437EF2;
}
</style>
</head>
<body>
<h1>NOT FOUND 404</h1>
<div class="input-wrapper">
<input id="path" type="text" value="http://localhost/js/">
<button id="go" onclick="goto()" type="button">GO TO URL</button>
</div>
<p>
linknya kagak ada gan! salah ketik kali urlnya
</p>
<script type="text/javascript">
var path = location.href;
var pathElem = document.getElementById('path');
console.log(path);
pathElem.getAttributeNode('value').value = path;
var goto = function(){
var pathGo = pathElem.value;
location.assign(pathGo);
}
</script>
</body>
</html>