mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
40 lines
1019 B
HTML
40 lines
1019 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<title>Mermaid Quick Test Page</title>
|
|
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" />
|
|
<style>
|
|
body {
|
|
font-family: 'trebuchet ms', verdana, arial;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre class="mermaid2">
|
|
%%{init: { 'themeCSS': '} * { background: lightblue }' } }%%
|
|
flowchart TD
|
|
a --> b
|
|
</pre>
|
|
<pre class="mermaid">
|
|
%%{init:{"theme":"base", "themeVariables": {"primaryColor":"#411d4e", "titleColor":"white", "darkMode":true}}}%%
|
|
flowchart LR
|
|
subgraph A
|
|
a --> b
|
|
end
|
|
subgraph B
|
|
i -->f
|
|
end
|
|
A --> B
|
|
</pre>
|
|
<script src="./mermaid.js"></script>
|
|
<script>
|
|
function showFullFirstSquad(elemName) {
|
|
console.log('show ' + elemName);
|
|
}
|
|
mermaid.initialize({ startOnLoad: true, securityLevel: 'loose', logLevel: 0 });
|
|
</script>
|
|
</body>
|
|
</html>
|