-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.html
More file actions
34 lines (32 loc) · 1.49 KB
/
embed.html
File metadata and controls
34 lines (32 loc) · 1.49 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mermaid Diagram — MermZen Embed</title>
<meta name="description" content="Embedded Mermaid diagram rendered by MermZen. Create and share beautiful diagrams instantly.">
<meta name="robots" content="noindex, follow">
<link rel="canonical" href="https://eric.run.place/MermZen/embed.html">
<!-- Preconnect for fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://cdn.jsdelivr.net">
<link href="https://fonts.googleapis.com/css2?family=Kalam:wght@400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@chinese-fonts/xiaolai@3.0.0/dist/Xiaolai/result.css">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: transparent; overflow: hidden; min-height: 100vh; }
#container { width: 100%; height: 100vh; overflow: hidden; position: relative; }
#diagram { transform-origin: 0 0; cursor: grab; }
#diagram:active { cursor: grabbing; }
#error { color: #c0392b; font-family: monospace; font-size: 13px; padding: 16px; white-space: pre-wrap; }
</style>
</head>
<body>
<div id="container">
<div id="diagram"></div>
</div>
<div id="error" style="display:none"></div>
<script type="module" src="/src/embed.ts"></script>
</body>
</html>