-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCourseNotes.html
More file actions
50 lines (47 loc) · 1.96 KB
/
Copy pathCourseNotes.html
File metadata and controls
50 lines (47 loc) · 1.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Course Notes - Yuchen Wu</title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!-- 背景光效 -->
<div class="background-glow"></div>
<div class="header">
<h1>Course Notes</h1>
<p>Lots of Notes</p>
<a href="index.html" class="header-back-link">← Back to Home</a>
</div>
<div class="section paper-list-container" id="course-notes-list">
<p style="color: #666; text-align: center;">Loading course notes...</p>
</div>
<!-- 交互脚本 -->
<script src="assets/js/script.js"></script>
<script>
const courseNotesList = document.getElementById('course-notes-list');
fetch('assets/data/content-manifest.json')
.then((response) => {
if (!response.ok) throw new Error('Failed to load content manifest');
return response.json();
})
.then((manifest) => {
const notes = manifest.courseNotes || [];
courseNotesList.innerHTML = notes.map((note, index) => `
<div class="paper-item">
<div class="paper-number">${String(index + 1).padStart(2, '0')}</div>
<div class="paper-title">${note.title}</div>
<div class="paper-meta">${note.date}</div>
<div class="paper-abstract">${note.summary}</div>
<a href="${note.url}" class="read-btn">Read Notes →</a>
</div>
`).join('');
})
.catch((error) => {
console.error('Error loading course notes list:', error);
courseNotesList.innerHTML = '<p style="color: red; text-align: center;">Error loading course notes list.</p>';
});
</script>
</body>
</html>