-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhtml_summary.html
More file actions
328 lines (282 loc) · 10.5 KB
/
Copy pathhtml_summary.html
File metadata and controls
328 lines (282 loc) · 10.5 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML 文档汇总</title>
<style>
/* Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap');
:root {
--primary-color: #2c3e50;
--secondary-color: #3498db;
--accent-color: #e74c3c;
--bg-color: #f8f9fa;
--text-color: #34495e;
--border-color: #e9ecef;
--card-bg: #ffffff;
--hover-color: #f8f9fa;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', 'Noto Sans SC', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-color);
min-height: 100vh;
padding: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
text-align: center;
padding: 30px 20px;
background: var(--card-bg);
border-bottom: 1px solid var(--border-color);
margin-bottom: 30px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.header h1 {
color: var(--primary-color);
font-size: 2.5rem;
margin-bottom: 15px;
}
.header p {
color: #6c757d;
font-size: 1.1rem;
max-width: 800px;
margin: 0 auto 20px;
}
.header-actions {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
flex-wrap: wrap;
}
.back-home {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--secondary-color);
color: white;
padding: 10px 20px;
border-radius: 30px;
text-decoration: none;
font-weight: 500;
transition: background 0.3s;
}
.back-home:hover {
background: #2980b9;
}
.github-link {
display: inline-flex;
align-items: center;
gap: 8px;
background: #24292e;
color: white;
padding: 10px 20px;
border-radius: 30px;
text-decoration: none;
font-weight: 500;
transition: background 0.3s;
}
.github-link:hover {
background: #000;
}
.warning {
background-color: #fff3cd;
border: 1px solid #ffeaa7;
color: #856404;
padding: 15px;
border-radius: 5px;
margin-bottom: 30px;
text-align: center;
font-size: 0.9rem;
}
.feed {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
gap: 25px;
}
.feed-item {
background: var(--card-bg);
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
border: 1px solid var(--border-color);
transition: transform 0.2s ease, box-shadow 0.2s ease;
height: fit-content;
}
.feed-item:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.feed-item-header {
margin-bottom: 15px;
}
.feed-item-title {
color: var(--primary-color);
font-size: 1.3rem;
margin-bottom: 10px;
}
.feed-item-title a {
color: inherit;
text-decoration: none;
}
.feed-item-title a:hover {
color: var(--secondary-color);
}
.feed-item-content {
margin-bottom: 20px;
color: #495057;
}
.feed-item-content p {
margin-bottom: 0;
line-height: 1.6;
}
.feed-item-footer {
text-align: right;
}
.read-more {
color: var(--secondary-color);
text-decoration: none;
font-weight: 500;
font-size: 0.95rem;
}
.read-more:hover {
text-decoration: underline;
}
.footer {
text-align: center;
padding: 30px 20px;
color: #6c757d;
font-size: 0.9rem;
margin-top: 40px;
}
.back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--secondary-color);
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
opacity: 0;
transition: opacity 0.3s;
}
.back-to-top.visible {
opacity: 1;
}
@media (max-width: 768px) {
.container {
padding: 10px;
}
.header {
padding: 20px 15px;
}
.header h1 {
font-size: 2rem;
}
.feed {
grid-template-columns: 1fr;
}
.feed-item {
padding: 15px;
}
.feed-item-title {
font-size: 1.2rem;
}
.header-actions {
flex-direction: column;
align-items: center;
}
}
</style>
</head>
<body>
<div class="container">
<header class="header">
<h1>HTML 文档汇总</h1>
<p>以下是由 AI 协助生成的技术文档</p>
<div class="header-actions">
<a href="index.html" class="back-home">
← 返回首页
</a>
<a href="https://github.com/YOUR_USERNAME/YOUR_REPO" class="github-link" target="_blank">
<svg height="16" viewBox="0 0 16 16" width="16" fill="currentColor">
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
</svg>
GitHub
</a>
</div>
</header>
<div class="warning">
⚠️ 注意:此内容由 AI 协助生成,准确性未经验证,请谨慎使用
</div>
<div class="feed" id="htmlDocuments">
<!-- HTML documents will be populated here -->
</div>
<!-- <footer class="footer">
<p>AI 个人笔记 © 2025 | 所有内容均由 AI 协助生成</p>
</footer> -->
</div>
<a href="#" class="back-to-top" id="backToTop">↑</a>
<script>
// HTML documents data
const htmlDocuments = [
{ filename: "classloader.html", title: "Java 类加载机制深度解析", description: "深入分析 Java Classpath 与类加载机制的技术文档" },
{ filename: "jvm-desc.html", title: "JVM 内部类型描述符详解", description: "JVM 字节码层面的类型描述符技术报告" },
{ filename: "springboot-start.html", title: "Spring Boot/Cloud 启动流程分析", description: "Spring Boot/Cloud 应用启动流程和上下文层次结构的诊断报告" },
{ filename: "maven-report.html", title: "Maven 项目分析报告", description: "Maven 项目构建和依赖管理的技术分析" },
{ filename: "myclassloader.html", title: "自定义类加载器实现", description: "自定义类加载器的设计与实现详解" },
{ filename: "loaderDemo.html", title: "类加载器演示案例", description: "类加载器工作原理的演示和案例分析" },
{ filename: "report.html", title: "系统诊断报告", description: "Java 系统运行时的综合诊断报告" },
{ filename: "t6-manage-spring.context.html", title: "Spring 上下文管理", description: "Spring 应用上下文管理和配置详解" },
{ filename: "java.net.preferIPv4Stack.html", title: "网络协议栈配置指南", description: "Java 网络编程中 IPv4/IPv6 协议栈配置的技术说明" }
];
// Populate HTML documents
const container = document.getElementById('htmlDocuments');
container.innerHTML = htmlDocuments.map(doc => `
<div class="feed-item">
<div class="feed-item-header">
<h2 class="feed-item-title"><a href="html/${doc.filename}">${doc.title}</a></h2>
</div>
<div class="feed-item-content">
<p>${doc.description}</p>
</div>
<div class="feed-item-footer">
<a href="html/${doc.filename}" class="read-more">阅读更多 →</a>
</div>
</div>
`).join('');
// Back to top button
const backToTopButton = document.getElementById('backToTop');
window.addEventListener('scroll', () => {
if (window.pageYOffset > 300) {
backToTopButton.classList.add('visible');
} else {
backToTopButton.classList.remove('visible');
}
});
backToTopButton.addEventListener('click', (e) => {
e.preventDefault();
window.scrollTo({top: 0, behavior: 'smooth'});
});
console.log("页面加载完成,HTML 文档汇总已就绪");
</script>
</body>
</html>