-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.html
148 lines (134 loc) · 5.22 KB
/
home.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!--
~ Copyright © 2020. Spectrollay
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
~ in the Software without restriction, including without limitation the rights
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
~ copies of the Software, and to permit persons to whom the Software is
~ furnished to do so, subject to the following conditions:
~
~ The above copyright notice and this permission notice shall be included in
~ all copies or substantial portions of the Software.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
~ SOFTWARE.
-->
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta content="3;url=/mclang_cn/" http-equiv="refresh">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<link href="/mclang_cn/stylesheet/loading_mask.css" rel="stylesheet">
<link href="/mclang_cn/stylesheet/home.css" rel="stylesheet">
<style>
main {
align-items: center;
display: flex;
justify-content: center;
text-align: center;
}
a {
cursor: pointer;
}
.redirect_title, .redirect_message {
color: #FFFFFF;
}
.message {
margin: 10px 0;
}
</style>
<link href="/mclang_cn/images/Logo.jpg" rel="icon">
<title>中文译名修正项目</title>
</head>
<body>
<div class="loading_mask" id="loading_mask">
<div>
<div class="spinner"><img alt="" id="spinner_img" src="/mclang_cn/images/Loading_white.gif"/></div>
<div class="spinner">
<div class="spinner"><span class="spinner_text">载入中</span></div>
</div>
<noscript>
<style>
#spinner_img, .spinner_text {
display: none;
}
</style>
<div class="spinner"><img alt="" id="spinner_img_error" src="/mclang_cn/images/ErrorMessage.png"/></div>
<div class="spinner">
<div class="spinner"><span class="spinner_text_error">页面无法加载: 当前浏览器已禁用JavaScript.<br>请在启用相关功能后访问本站.</span></div>
</div>
</noscript>
</div>
</div>
<header>
<div class="header_item header_item_left" id="back" onclick="clickedBack();">
<img alt="Back" class="back_icon" id="back_icon" src=""/>
</div>
<div class="header_logo" onclick="scrollToTop();">
<img alt="Title Icon" class="title_icon" src="/mclang_cn/images/Logo.jpg"/>
<span class="header_title">Repository</span>
</div>
<div class="header_item header_item_right header_right_blank"></div>
</header>
<scroll-view>
<scroll-container class="main_scroll_container">
<main class="main_content_center scroll_container" id="main">
<div>
<h2 class="redirect_title">页面已迁移至新地址</h2>
<h4 class="message redirect_message"><span id="second">3</span>秒后将自动重定向</h4>
<h4 class="message redirect_message">没有成功重定向?<a onclick="jumpToPage('./');">点此前往</a></h4>
</div>
</main>
</scroll-container>
<custom-scrollbar class="main_custom_scrollbar">
<custom-scrollbar-track></custom-scrollbar-track>
<custom-scrollbar-thumb></custom-scrollbar-thumb>
</custom-scrollbar>
</scroll-view>
</body>
<script src="/mclang_cn/javascript/accessibility.js"></script>
<script src="/mclang_cn/javascript/home.js"></script>
<script src="/mclang_cn/javascript/custom_elements.js"></script>
<script>
function hide_mask() {
const loading_mask = document.getElementById('loading_mask');
// 延时600ms后隐藏蒙版
loading_mask.style.opacity = '0';
setTimeout(function () {
loading_mask.style.display = 'none';
}, 600);
}
// 加载超过8秒时
let count = 8;
const secondInterval = setInterval(function () {
count--;
if (count <= 0) {
clearInterval(secondInterval);
hide_mask();
}
}, 1000);
// 页面加载完成时
window.addEventListener('load', function () {
hide_mask();
const secondElement = document.getElementById('second');
if (secondElement) {
let count = parseInt(secondElement.textContent);
const secondInterval = setInterval(function () {
count--;
secondElement.textContent = count.toString();
if (count <= 0) {
clearInterval(secondInterval);
}
}, 1000);
}
});
</script>
</html>