1.9 KB73 lines
Blame
1<html>
2 <head>
3 <link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" />
4 <link
5 rel="stylesheet"
6 href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/font-awesome.min.css"
7 />
8 <link
9 href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
10 rel="stylesheet"
11 />
12 <style>
13 body {
14 background: rgb(221, 208, 208);
15 /*background:#333;*/
16 font-family: 'Arial';
17 }
18 h1 {
19 color: white;
20 }
21 .mermaid2 {
22 display: none;
23 }
24 .customCss > rect,
25 .customCss {
26 fill: #ff0000 !important;
27 stroke: #ffff00 !important;
28 stroke-width: 4px !important;
29 }
30 </style>
31 </head>
32 <body>
33 <h1>info below</h1>
34 <pre class="mermaid" style="width: 100%; height: 20%">
35
36 gitGraph
37 class BankAccount{
38 +String owner
39 +BigDecimal balance
40 +deposit(amount) bool
41 +withdrawal(amount) int
42 }
43 cssClass "BankAccount" customCss
44 </pre>
45
46 <script type="module">
47 import mermaid from './mermaid.esm.mjs';
48 mermaid.parseError = function (err, hash) {
49 // console.error('Mermaid error: ', err);
50 };
51 mermaid.initialize({
52 theme: 'default',
53 // arrowMarkerAbsolute: true,
54 // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
55 logLevel: 0,
56 flowchart: { curve: 'linear', htmlLabels: true },
57 // gantt: { axisFormat: '%m/%d/%Y' },
58 sequence: { actorMargin: 50, showSequenceNumbers: true },
59 // sequenceDiagram: { actorMargin: 300 } // deprecated
60 // fontFamily: '"arial", sans-serif',
61 // themeVariables: {
62 // fontFamily: '"arial", sans-serif',
63 // },
64 curve: 'linear',
65 securityLevel: 'loose',
66 });
67 function callback() {
68 alert('It worked');
69 }
70 </script>
71 </body>
72</html>
73