mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-10 05:59:18 +08:00
41 lines
2.3 KiB
HTML
41 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Markmap</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
#mindmap {
|
|
display: block;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.15.4/dist/style.css">
|
|
</head>
|
|
<body>
|
|
<svg id="mindmap"></svg>
|
|
<script src="https://cdn.jsdelivr.net/npm/d3@7.8.5/dist/d3.min.js"></script><script src="https://cdn.jsdelivr.net/npm/markmap-view@0.15.4/dist/browser/index.js"></script><script src="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.15.4/dist/index.js"></script><script>(r => {
|
|
setTimeout(r);
|
|
})(() => {
|
|
const {
|
|
markmap,
|
|
mm
|
|
} = window;
|
|
const toolbar = new markmap.Toolbar();
|
|
toolbar.attach(mm);
|
|
const el = toolbar.render();
|
|
el.setAttribute('style', 'position:absolute;bottom:20px;right:20px');
|
|
document.body.append(el);
|
|
})</script><script>((getMarkmap, getOptions, root, jsonOptions) => {
|
|
const markmap = getMarkmap();
|
|
window.mm = markmap.Markmap.create('svg#mindmap', (getOptions || markmap.deriveOptions)(jsonOptions), root);
|
|
})(() => window.markmap,null,{"type":"heading","depth":0,"payload":{"lines":[0,1]},"content":"思维导图","children":[{"type":"blockquote","depth":1,"payload":{"lines":[2,3]},"content":"","children":[{"type":"paragraph","depth":2,"payload":{"lines":[2,3]},"content":"思维导图汇总整理,内容更新慢于笔记,赶稿中...","children":[]}]},{"type":"bullet_list","depth":1,"payload":{"lines":[4,9]},"content":"","children":[{"type":"list_item","depth":2,"payload":{"lines":[4,5]},"content":"<a href=\"../mark-map/ds-map.html\" target=\"_blank\">数据结构</a>","children":[]},{"type":"list_item","depth":2,"payload":{"lines":[5,6]},"content":"<a href=\"../mark-map/os-map.html\" target=\"_blank\">操作系统</a>","children":[]},{"type":"list_item","depth":2,"payload":{"lines":[6,7]},"content":"<a href=\"../mark-map/ccp-map.html\" target=\"_blank\">计算机组成原理</a>","children":[]},{"type":"list_item","depth":2,"payload":{"lines":[7,8]},"content":"<a href=\"../mark-map/cn-map.html\" target=\"_blank\">计算机网络</a>","children":[]}]}]},null)</script>
|
|
</body>
|
|
</html>
|