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); */
|
2021-05-23 10:42:07 +02:00
|
|
|
/* background:#333; */
|
2020-08-16 08:45:44 +02:00
|
|
|
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;}
|
2021-05-16 08:36:30 +02:00
|
|
|
.mermaid2,.mermaid3 {
|
2020-08-16 08:45:44 +02:00
|
|
|
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-18 21:15:06 +02:00
|
|
|
<div class="mermaid3" style="width: 100%; height: 20%;">
|
2021-05-16 10:44:34 +02:00
|
|
|
stateDiagram-v2
|
|
|
|
state S1 {
|
|
|
|
sub1 -->sub2
|
|
|
|
}
|
|
|
|
|
|
|
|
state S2 {
|
|
|
|
sub4
|
|
|
|
}
|
|
|
|
S1 --> S2
|
|
|
|
sub1 --> sub4
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="mermaid3" style="width: 100%; height: 20%;">
|
2021-05-09 11:12:22 +02:00
|
|
|
stateDiagram
|
2021-05-15 18:52:06 +02:00
|
|
|
state CompositeState {
|
|
|
|
YourState123456789012345123456789123456789012345123456789123456789012345123456789123456789012345123456789 --> MyState:a label
|
|
|
|
}
|
|
|
|
|
2021-04-29 18:50:12 +02:00
|
|
|
</div>
|
2021-05-16 10:44:34 +02:00
|
|
|
<div class="mermaid3" style="width: 100%; height: 20%;">
|
2021-05-15 18:52:06 +02:00
|
|
|
flowchart
|
|
|
|
subgraph CompositeState
|
|
|
|
subgraph AnotherCompositeStateCompositeStateCompositeStateCompositeState
|
|
|
|
YourState --a label--> MyState
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
</div>
|
2021-05-18 21:15:06 +02:00
|
|
|
<div class="mermaid" style="width: 100%; height: 20%;">
|
2021-08-05 17:35:28 +02:00
|
|
|
%%{init: { "apa":"b", "theme":"forest"}}%%
|
2021-08-03 20:10:15 +02:00
|
|
|
sequenceDiagram
|
|
|
|
Alice->>Bob: Hi Bob
|
|
|
|
Bob->>Alice: Hi Alice
|
2021-07-29 18:05:13 +02:00
|
|
|
</div>
|
2021-08-05 17:35:28 +02:00
|
|
|
<div class="mermaid2">
|
2021-08-03 20:10:15 +02:00
|
|
|
%%{init: { 'theme':'base', '__proto__': {'polluted': 'asdf'}} }%%
|
|
|
|
%%{init: { 'theme':'base', '__proto__': {'polluted': 'asdf'}} }%%
|
|
|
|
graph LR
|
|
|
|
A --> B
|
|
|
|
</div>
|
2021-07-29 18:05:13 +02:00
|
|
|
<div class="mermaid2" style="width: 100%; height: 20%;">
|
2021-07-07 16:41:36 +02:00
|
|
|
flowchart TD
|
2021-07-15 10:14:35 +02:00
|
|
|
Link --> b
|
|
|
|
click Link href "javascript:alert('XSS')" "Tooltip for
|
|
|
|
Amet"
|
2021-06-06 11:37:23 +02:00
|
|
|
</div>
|
|
|
|
<div class="mermaid2" style="width: 100%; height: 20%;">
|
|
|
|
stateDiagram-v2
|
|
|
|
state CS {
|
|
|
|
state ACS {
|
|
|
|
YourState
|
|
|
|
}
|
|
|
|
}
|
2021-05-16 08:21:28 +02:00
|
|
|
</div>
|
2021-07-07 16:41:36 +02:00
|
|
|
<div class="mermaid2" style="width: 100%; height: 20%;">
|
2021-06-06 11:37:23 +02:00
|
|
|
stateDiagram-v2
|
|
|
|
[*] --> Active
|
|
|
|
|
|
|
|
state Active {
|
|
|
|
[*] --> NumLockOff
|
|
|
|
NumLockOff --> NumLockOn : EvNumLockPressed
|
|
|
|
NumLockOn --> NumLockOff : EvNumLockPressed
|
|
|
|
--
|
|
|
|
[*] --> CapsLockOff
|
|
|
|
CapsLockOff --> CapsLockOn : EvCapsLockPressed
|
|
|
|
CapsLockOn --> CapsLockOff : EvCapsLockPressed
|
|
|
|
}
|
|
|
|
state SomethingElse {
|
|
|
|
A --> B
|
|
|
|
B --> A
|
|
|
|
}
|
|
|
|
|
|
|
|
Active --> SomethingElse
|
|
|
|
note right of SomethingElse : This is the note to the right.
|
|
|
|
|
|
|
|
SomethingElse --> [*] </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-07-07 18:06:09 +02:00
|
|
|
theme: 'base',
|
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;}',
|
2021-05-15 18:52:06 +02:00
|
|
|
logLevel: 2,
|
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-09 11:12:22 +02:00
|
|
|
defaultRenderer: 'dagre-wrapper',
|
2021-04-30 13:50:21 +02:00
|
|
|
},
|
2021-07-07 16:41:36 +02:00
|
|
|
logLevel:0,
|
2021-04-26 19:08:16 +02:00
|
|
|
fontSize: 18,
|
2020-08-16 08:45:44 +02:00
|
|
|
curve: 'cardinal',
|
2021-08-03 20:10:15 +02:00
|
|
|
securityLevel: 'strict',
|
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>
|