152 lines
4.5 KiB
HTML
Raw Normal View History

<html>
<head>
<link
href="https://fonts.googleapis.com/css?family=Montserrat&display=swap"
rel="stylesheet"
/>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap" rel="stylesheet">
<style>
body {
/* background: rgb(221, 208, 208); */
/* background:#333; */
font-family: 'Arial';
}
h1 { color: grey;}
.mermaid2 {
display: none;
}
2021-01-21 21:20:35 +01:00
.mermaid svg {
2021-01-28 07:52:17 +01:00
font-size: 12px !important;
2021-01-21 21:20:35 +01:00
}
</style>
</head>
<body>
<h1>info below</h1>
<div class="flex">
<div class="mermaid2" style="width: 50%; height: 400px;">
2020-10-15 17:37:16 +02:00
graph TD
2020-10-15 19:00:35 +02:00
A[Christmas] ==> D
2020-10-15 17:37:16 +02:00
A[Christmas] -->|Get money| B(Go shopping)
2020-10-15 19:00:35 +02:00
A[Christmas] ==> C
2020-10-15 17:37:16 +02:00
subgraph T ["Test"]
A
B
2020-10-15 19:00:35 +02:00
C
2020-10-07 20:16:36 +02:00
end
2020-10-15 17:37:16 +02:00
classDef Test fill:#F84E68,stroke:#333,color:white;
class A,T Test
classDef TestSub fill:green;
class T TestSub
2020-10-15 19:00:35 +02:00
linkStyle 0,1 color:orange, stroke: orange;
</div>
<div class="mermaid2" style="width: 50%; height: 400px;">
2020-10-15 17:37:16 +02:00
flowchart TD
2020-10-15 19:00:35 +02:00
A[Christmas] ==> D
2020-10-15 17:37:16 +02:00
A[Christmas] -->|Get money| B(Go shopping)
2020-10-15 19:00:35 +02:00
A[Christmas] ==> C
2020-10-15 17:37:16 +02:00
subgraph T ["Test"]
A
B
2020-10-15 19:00:35 +02:00
C
2020-10-15 17:37:16 +02:00
end
2020-10-15 17:37:16 +02:00
classDef Test fill:#F84E68,stroke:#333,color:white;
class A,T Test
classDef TestSub fill:green;
class T TestSub
2020-10-15 19:00:35 +02:00
linkStyle 0,1 color:orange, stroke: orange;
2020-08-16 21:49:36 +02:00
</div>
<div class="mermaid2" style="width: 50%; height: 20%;">
sequenceDiagram
Actor1 -) Actor2:Async
Actor1 --) Actor2:Async dotted
Actor1 ->> Actor2:Sync
Actor1 -->> Actor2:Sync dotted
</div>
2021-01-21 21:20:35 +01:00
<div class="mermaid2" style="width: 50%; height: 20%;">
flowchart TD
C -->|fa:fa-car Car| F[fa:fa-car Car]
2020-08-16 21:49:36 +02:00
</div>
<div class="mermaid2" style="width: 50%; height: 20%;">
2021-01-21 21:20:35 +01:00
%%{init: { 'logLevel': 0, 'theme': 'forest'} }%%
2020-08-16 13:01:45 +02:00
graph TD
2021-01-21 21:20:35 +01:00
A(Start) --> B[/Another/]
A[/Another/] --> C[End]
subgraph section
B
C
end
2020-08-16 13:01:45 +02:00
</div>
<div class="mermaid2" style="width: 50%; height: 20%;">
2021-01-21 21:20:35 +01:00
%%{init: {'theme': 'base' }}%%
%%{init2: { 'logLevel': 0, 'theme': 'forest'} }%%
flowchart TD
L1 --- L2
L2 --- C
M1 ---> C
R1 .-> R2
R2 <.-> C
C -->|Label 1| E1
C <-- Label 2 ---> E2
C ----> E3
C <-...-> E4
C ======> E5
</div>
2021-01-28 20:55:58 +01:00
<div class="mermaid" style="width: 50%; height: 21%;">
2021-01-28 07:52:17 +01:00
flowchart LR
2021-02-18 19:52:50 +01:00
A[red text] -->|default style| B(blue text)
C([red text]) -->|default style| D[[blue text]]
E[(red text)] -->|default style| F((blue text))
G>red text] -->|default style| H{blue text}
I{{red text}} -->|default style| J[/blue text/]
K[
ed text] -->|default style| L[/blue text]
M[
ed text/] -->|default style| N[blue text]
linkStyle default color:Sienna;
style A stroke:#ff0000,fill:#ffcccc,color:#ff0000
style B stroke:#0000ff,fill:#ccccff,color:#0000ff
style C stroke:#ff0000,fill:#ffcccc,color:#ff0000
style D stroke:#0000ff,fill:#ccccff,color:#0000ff
style E stroke:#ff0000,fill:#ffcccc,color:#ff0000
style F stroke:#0000ff,fill:#ccccff,color:#0000ff
style G stroke:#ff0000,fill:#ffcccc,color:#ff0000
style H stroke:#0000ff,fill:#ccccff,color:#0000ff
style I stroke:#ff0000,fill:#ffcccc,color:#ff0000
style J stroke:#0000ff,fill:#ccccff,color:#0000ff
style K stroke:#ff0000,fill:#ffcccc,color:#ff0000
style L stroke:#0000ff,fill:#ccccff,color:#0000ff
style M stroke:#ff0000,fill:#ffcccc,color:#ff0000
style N stroke:#0000ff,fill:#ccccff,color:#0000ff
</div>
<script src="./mermaid.js"></script>
<script>
mermaid.parseError = function (err, hash) {
// console.error('Mermaid error: ', err);
};
mermaid.initialize({
// theme: 'forest',
// themeVariables:{primaryColor: '#ff0000'},
// arrowMarkerAbsolute: true,
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
logLevel: 0,
flowchart: { curve: 'cardinal', htmlLabels: true },
htmlLabels: true,
// gantt: { axisFormat: '%m/%d/%Y' },
2020-08-16 21:49:36 +02:00
sequence: { actorFontFamily: 'courier',actorMargin: 50, showSequenceNumbers: true },
// sequenceDiagram: { actorMargin: 300 } // deprecated
2021-01-21 21:20:35 +01:00
fontFamily: '"arial", sans-serif',
2020-08-16 21:49:36 +02:00
fontFamily: 'courier',
curve: 'cardinal',
2021-01-21 21:20:35 +01:00
securityLevel: 'loose',
sequence:{mirrorActors:false}
});
function callback(){alert('It worked');}
</script>
</body>
</html>