2020-08-16 08:45:44 +02:00
|
|
|
<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';
|
2021-04-26 19:08:16 +02:00
|
|
|
/* font-size: 18px !important; */
|
2020-08-16 08:45:44 +02:00
|
|
|
}
|
|
|
|
h1 { color: grey;}
|
|
|
|
.mermaid2 {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-01-21 21:20:35 +01:00
|
|
|
.mermaid svg {
|
2021-04-26 19:08:16 +02:00
|
|
|
/* font-size: 18px !important; */
|
2021-01-21 21:20:35 +01:00
|
|
|
}
|
2020-08-16 08:45:44 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2021-04-26 19:08:16 +02:00
|
|
|
<div>info below</div>
|
2020-08-16 08:45:44 +02:00
|
|
|
<div class="flex">
|
2020-10-15 19:04:48 +02:00
|
|
|
|
2021-05-02 08:44:28 +02:00
|
|
|
<div class="mermaid" style="width: 100%; height: 20%;">
|
2021-05-06 20:26:00 +02:00
|
|
|
%%{int:{
|
2021-05-06 07:50:24 +02:00
|
|
|
"themeVariables": {
|
|
|
|
"transitionColor":"red",
|
|
|
|
"labelColor":"yellow",
|
|
|
|
"transitionLabelColor":"blue",
|
|
|
|
"stateBkg":"green",
|
|
|
|
"compositeBackground":"pink",
|
|
|
|
"altBackground":"purple",
|
|
|
|
"clusterTitleBackground":"blue",
|
2021-05-06 20:26:00 +02:00
|
|
|
"compositeBorder":"red",
|
|
|
|
"noteBorderColor":"#522",
|
|
|
|
"noteBkgColor":"#522",
|
|
|
|
"noteTextColor":"white"
|
2021-05-06 07:50:24 +02:00
|
|
|
}}}%%
|
2021-05-06 20:26:00 +02:00
|
|
|
%%{int:{
|
|
|
|
"themeVariables": {
|
|
|
|
"altBackground":"purple"
|
|
|
|
}}}%%
|
|
|
|
stateDiagram-v2
|
|
|
|
state CompositeState {
|
|
|
|
state AnotherCompositeState {
|
|
|
|
AnotherState --> YetANotherState:a label
|
2021-05-06 07:50:24 +02:00
|
|
|
}
|
2021-05-06 20:26:00 +02:00
|
|
|
}
|
|
|
|
note left of CompositeState
|
|
|
|
Important information! You can write
|
|
|
|
notes.
|
|
|
|
end note
|
2021-04-30 13:50:21 +02:00
|
|
|
|
2021-04-29 18:50:12 +02:00
|
|
|
</div>
|
2021-05-06 20:26:00 +02:00
|
|
|
<div class="mermaid" style="width: 100%; height: 20%;">
|
|
|
|
%%{int:{
|
2021-05-06 07:50:24 +02:00
|
|
|
"themeVariables": {
|
|
|
|
"transitionColor":"red",
|
|
|
|
"labelColor":"yellow",
|
|
|
|
"transitionLabelColor":"blue",
|
|
|
|
"stateBkg":"green",
|
|
|
|
"compositeBackground":"pink",
|
|
|
|
"altBackground":"purple",
|
2021-05-06 20:26:00 +02:00
|
|
|
"clusterTitleBackground":"blue",
|
|
|
|
"compositeBorder":"red"
|
2021-05-06 07:50:24 +02:00
|
|
|
}}}%%
|
2021-05-06 20:26:00 +02:00
|
|
|
stateDiagram
|
|
|
|
state CompositeState {
|
|
|
|
state AnotherCompositeState {
|
|
|
|
AnotherState --> YetANotherState:a label
|
2021-04-26 19:08:16 +02:00
|
|
|
}
|
2021-05-06 20:26:00 +02:00
|
|
|
}
|
2021-04-26 19:08:16 +02:00
|
|
|
|
2021-05-06 20:26:00 +02:00
|
|
|
</div>
|
|
|
|
<div class="mermaid" style="width: 100%; height: 20%;">
|
|
|
|
sequenceDiagram
|
|
|
|
Alice->>+John: Hello John, how are you?
|
|
|
|
Alice->>+John: John, can you hear me?
|
|
|
|
John-->>-Alice: Hi Alice, I can hear you!
|
|
|
|
John-->>-Alice: I feel great!
|
|
|
|
note right of John: Hello note reader
|
|
|
|
</div>
|
2020-08-16 08:45:44 +02:00
|
|
|
<script src="./mermaid.js"></script>
|
|
|
|
<script>
|
|
|
|
mermaid.parseError = function (err, hash) {
|
|
|
|
// console.error('Mermaid error: ', err);
|
|
|
|
};
|
|
|
|
mermaid.initialize({
|
2021-05-06 20:29:07 +02:00
|
|
|
theme: 'dark',
|
2021-04-26 19:08:16 +02:00
|
|
|
arrowMarkerAbsolute: true,
|
2020-08-16 08:45:44 +02:00
|
|
|
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
|
|
|
logLevel: 0,
|
2021-02-23 20:56:01 +01:00
|
|
|
flowchart: { nodeSpacing: 10, curve: 'cardinal', htmlLabels: true },
|
2020-08-23 20:02:51 +02:00
|
|
|
htmlLabels: true,
|
2020-08-16 08:45:44 +02:00
|
|
|
// gantt: { axisFormat: '%m/%d/%Y' },
|
2021-02-25 10:06:13 +01:00
|
|
|
sequence: { actorFontFamily: 'courier',actorMargin: 50, showSequenceNumbers: false },
|
2020-08-16 08:45:44 +02:00
|
|
|
// sequenceDiagram: { actorMargin: 300 } // deprecated
|
2021-04-26 19:08:16 +02:00
|
|
|
// fontFamily: '"times", sans-serif',
|
|
|
|
// fontFamily: 'courier',
|
2021-04-30 13:50:21 +02:00
|
|
|
state:{
|
|
|
|
nodeSpacing: 50,
|
|
|
|
rankSpacing: 50,
|
2021-05-06 20:26:00 +02:00
|
|
|
// defaultRenderer: 'dagre-wrapper',
|
2021-04-30 13:50:21 +02:00
|
|
|
},
|
2021-04-30 17:27:05 +02:00
|
|
|
|
2021-04-26 19:08:16 +02:00
|
|
|
fontSize: 18,
|
2020-08-16 08:45:44 +02:00
|
|
|
curve: 'cardinal',
|
2021-01-21 21:20:35 +01:00
|
|
|
securityLevel: 'loose',
|
2021-04-26 19:08:16 +02:00
|
|
|
// themeVariables: {relationLabelColor: 'red'}
|
2020-08-16 08:45:44 +02:00
|
|
|
});
|
|
|
|
function callback(){alert('It worked');}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|