-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
86 lines (82 loc) · 2.79 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
<!DOCTYPE html>
<html lang="ja" dir="ltr">
<head>
<link rel="icon" sizes="16x16" href="https://i.imgur.com/z54eEqZ.png">
<meta charset="UTF-8">
<title>404 Not Found</title>
<style>
h1 {
font-size: 48px;
margin-bottom: 20px;
}
/* 新しいCSSルールを追加して、パスの文字色を変更 */
#path-text {
animation: rainbowText 0.7s infinite;
}
@keyframes rainbowText {
0% {
color: blue;
}
14% {
color: red;
}
28% {
color: yellow;
}
42% {
color: green;
}
57% {
color: purple;
}
71% {
color: orange;
}
85% {
color: indigo;
}
100% {
color: blue;
}
}
</style>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://cgengokyo.github.io/official-sites/style.css">
</head>
<body bgcolor="black">
<nav class="menu">
<ul>
<!-- "target="_blank"は無効 -->
<li><a href="index.html " target="">ホーム</a></li>
<li><a href="overview.html">概要</a></li>
<li><a href="notification.html" target="">お知らせ</a></li>
<li><a href="aboutus.html" target="">歴史</a></li>
<li><a href="shop.html" target="">ショップ</a></li>
<li><a href="inquiry.html" target="">お問い合わせ</a></li>
</ul>
</nav>
<font color="white">
<h1 style="text-align:center">404 Not Found</h1>
<br>
<div id="error-message"></div>
<script>
// ページのURLを取得
var currentURL = window.location.href;
// URLからパス部分を抽出
var path = new URL(currentURL).pathname;
// パスの文字色を変更する要素にIDを追加
var pathElement = document.getElementById('error-message');
pathElement.innerHTML = '<font face="MS P明朝"><h2 style="text-align:center">The requested URL </font><font face="MS P明朝" id="path-text">' + path + '</font><font face="MS P明朝"> was not found on this server.</font></h2>';
</script>
<br>
<br>
<div class="copyright" style="padding: 1px; border: 3px solid #333333; border-radius: 10px;"
align="center">
<footer>
<h2 style="text-align:center">
<font color="white">
<font face="MS P明朝">Copyright © B.C 114514 Cgengokyo Inc. All Rights Reserved.</h2>
</footer>
</div>
</body>
</html>