-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
106 lines (104 loc) · 2.77 KB
/
index.html
File metadata and controls
106 lines (104 loc) · 2.77 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
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>AutoGo ScriptEngine</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="AutoGo ScriptEngine - 为 AutoGo 提供 JavaScript 和 Lua 脚本引擎支持">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="style/vue.css">
<link rel="icon" href="icon.svg" type="image/x-icon">
<style>
.app-name-link img {
max-width: 80%;
}
.markdown-section {
max-width: 800px;
}
.sidebar {
padding: 1.5rem 0;
}
/* 回到顶部按钮样式 */
.to-top {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #42b983;
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transition: opacity 0.3s;
z-index: 999;
font-size: 12px;
font-weight: bold;
}
.to-top.visible {
opacity: 1;
}
.to-top:hover {
background-color: #3aa676;
}
</style>
</head>
<body>
<div id="app"></div>
<div class="to-top">Top</div>
<script>
window.$docsify = {
name: 'AutoGo ScriptEngine',
repo: 'https://github.com/ZingYao/autogo_scriptengine',
loadSidebar: true,
subMaxLevel: 3,
auto2top: true,
homepage: 'README.md',
coverpage: true,
collapsible: true,
sidebarDisplayLevel: 1,
search: {
maxAge: 86400000,
paths: 'auto',
placeholder: '搜索',
noData: '没有结果',
depth: 6,
},
copyCode: {
buttonText: '复制',
errorText: '错误',
successText: '成功'
}
}
</script>
<!-- Docsify v4 -->
<script src="vendor/docsify/docsify.min.js"></script>
<script src="vendor/docsify/search.min.js"></script>
<script src="vendor/docsify/docsify-copy-code.min.js"></script>
<script src="vendor/prismjs/components/prism-go.min.js"></script>
<script src="vendor/prismjs/components/prism-javascript.min.js"></script>
<script src="vendor/prismjs/components/prism-lua.min.js"></script>
<script>
// 回到顶部按钮功能
const toTopBtn = document.querySelector('.to-top');
// 监听滚动事件
window.addEventListener('scroll', function() {
if (window.pageYOffset > 300) {
toTopBtn.classList.add('visible');
} else {
toTopBtn.classList.remove('visible');
}
});
// 点击按钮回到顶部
toTopBtn.addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
</script>
</body>
</html>