mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
28 lines
738 B
HTML
28 lines
738 B
HTML
<html>
|
|
<body>
|
|
<h1>Example</h1>
|
|
<pre class="mermaid">
|
|
%%{init:{"theme":"base", "sequence": {"mirrorActors":false},"themeVariables": {"actorBkg":"red"}}}%%
|
|
sequenceDiagram
|
|
Bert->>+Ernie: Start looking for the cookie!
|
|
Ernie-->>-Bert: Found it!
|
|
Note left of Ernie: Cookies are good
|
|
</pre>
|
|
<pre class="mermaid">
|
|
%%{init:{"theme":"base", "themeVariables": {}}}%%
|
|
sequenceDiagram
|
|
Bert->>+Ernie: Start looking for the cookie!
|
|
Ernie-->>-Bert: Found it!
|
|
Note left of Ernie: Cookies are good
|
|
</pre>
|
|
</body>
|
|
<script type="module">
|
|
import mermaid from '/mermaid.esm.mjs';
|
|
mermaid.initialize({
|
|
theme: 'base',
|
|
themeVariables: {},
|
|
startOnLoad: true,
|
|
});
|
|
</script>
|
|
</html>
|