mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-26 01:14:09 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			761 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			761 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <html>
 | |
|   <head>
 | |
|     <script src="http://localhost:9000/mermaid.js"></script>
 | |
|   <script>
 | |
|       mermaid.initialize({
 | |
|        theme: 'base',
 | |
|        themeVariables: {
 | |
|       },
 | |
|       startOnLoad: true,
 | |
|       });
 | |
|   </script>
 | |
| 
 | |
|   </head>
 | |
|   <body>
 | |
|   <h1>Example</h1>
 | |
|   <div 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
 | |
|   </div>
 | |
|   <div 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
 | |
|   </div>
 | |
| </body>
 | |
| </html> | 
