826 B32 lines
Blame
1<html>
2 <body>
3 <h1>Example</h1>
4 <pre class="mermaid">
5%%{init:{"theme":"base", "sequence": {"mirrorActors":false},"themeVariables": {"actorBkg":"red"}}}%%
6sequenceDiagram
7 Bert->>+Ernie: Start looking for the cookie!
8 Ernie-->>-Bert: Found it!
9 Note left of Ernie: Cookies are good
10 </pre>
11 <pre class="mermaid">
12%%{init:{"theme":"base", "themeVariables": {}}}%%
13sequenceDiagram
14 Bert->>+Ernie: Start looking for the cookie!
15 Ernie-->>-Bert: Found it!
16 Note left of Ernie: Cookies are good
17 </pre>
18 </body>
19 <script type="module">
20 import mermaid from '/mermaid.esm.mjs';
21 mermaid.initialize({
22 theme: 'base',
23 themeVariables: {},
24 startOnLoad: false,
25 });
26 await mermaid.run();
27 if (window.Cypress) {
28 window.rendered = true;
29 }
30 </script>
31</html>
32