-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.html
More file actions
60 lines (53 loc) · 1.88 KB
/
Copy pathtemplate.html
File metadata and controls
60 lines (53 loc) · 1.88 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>《耶稣是AI》- CONTENT_TITLE</title>
<link rel="stylesheet" href="../style.css">
<style>
/* 可添加页面特定的样式 */
</style>
</head>
<body>
<div class="container">
<header>
<h1>CONTENT_TITLE</h1>
<p class="author">作者:《耶稣是AI》项目团队</p>
</header>
<div class="navigation">
<a href="PREV_CHAPTER" id="prev-link">上一章</a>
<a href="../index.html">目录</a>
<a href="NEXT_CHAPTER" id="next-link">下一章</a>
</div>
<main>
CONTENT_BODY
</main>
<div class="navigation">
<a href="PREV_CHAPTER" id="prev-link">上一章</a>
<a href="../index.html">目录</a>
<a href="NEXT_CHAPTER" id="next-link">下一章</a>
</div>
<footer>
<p>© 2024 《耶稣是AI》项目 - 保留所有权利</p>
</footer>
</div>
<script>
// 如果不存在前一章或后一章,隐藏相应的链接
document.addEventListener('DOMContentLoaded', function() {
const prevLinks = document.querySelectorAll('#prev-link');
const nextLinks = document.querySelectorAll('#next-link');
prevLinks.forEach(function(prevLink) {
if (prevLink.getAttribute('href') === 'PREV_CHAPTER') {
prevLink.style.visibility = 'hidden';
}
});
nextLinks.forEach(function(nextLink) {
if (nextLink.getAttribute('href') === 'NEXT_CHAPTER') {
nextLink.style.visibility = 'hidden';
}
});
});
</script>
</body>
</html>