-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (59 loc) · 2.55 KB
/
Copy pathindex.html
File metadata and controls
63 lines (59 loc) · 2.55 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>PyTorch 练习题库浏览</title>
<link rel="stylesheet" href="styles.css" />
<!-- Markdown 渲染 & 代码高亮(CDN)-->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/styles/github-dark.min.css">
<script src="https://cdn.jsdelivr.net/npm/highlight.js@11.9.0/highlight.min.js?v=2025-09-10"></script>
<!-- KaTeX CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
<!-- KaTeX core + auto-render -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js"></script>
</head>
<body>
<div class="layout">
<!-- 左侧:目录栏 -->
<aside class="sidebar">
<header class="sidebar-header">
<h1>题库</h1>
<div class="actions">
<button id="randomBtn" class="btn">随机一题 🎲</button>
</div>
<div class="search">
<input id="searchInput" type="text" placeholder="搜索题目..." />
</div>
<p class="hint">页面会自动从 <code>/content/</code> 目录加载题目。</p>
</header>
<nav id="toc" class="toc">
<!-- 目录由 JS 注入:四个分组 -->
</nav>
<footer class="sidebar-footer">
<small>支持目录:简单(easy)、中等困难(middling)、困难(hard)</small>
</footer>
</aside>
<!-- 右侧:内容栏 -->
<main class="content">
<div class="doc-toolbar">
<div class="breadcrumb" id="breadcrumb">正在加载题目列表…</div>
<div class="toolbar-right">
<button id="openRawBtn" class="icon-btn" title="在新标签打开原始 Markdown" disabled>🗎</button>
<button id="copyLinkBtn" class="icon-btn" title="复制直达链接" disabled>🔗</button>
</div>
</div>
<article id="article" class="article markdown-body">
<div class="empty">
<div class="spinner"></div>
<h2>准备就绪后从左侧选择题目</h2>
<p>若长时间未加载到内容,请确认静态服务器支持目录索引(或在 <code>/content/</code> 下添加 <code>manifest.json</code>)。</p>
</div>
</article>
</main>
</div>
<script src="app.js"></script>
</body>
</html>