2019-11-27 20:15:21 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link
|
|
|
|
href="https://fonts.googleapis.com/css?family=Montserrat&display=swap"
|
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
2020-06-17 18:16:24 +02:00
|
|
|
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
|
2020-06-06 12:42:35 +02:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
2020-02-16 15:39:52 +01:00
|
|
|
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap" rel="stylesheet">
|
2019-12-08 10:10:03 +01:00
|
|
|
<style>
|
2020-02-16 15:39:52 +01:00
|
|
|
body {
|
2020-06-06 12:42:35 +02:00
|
|
|
/* background: rgb(221, 208, 208); */
|
2020-06-17 18:16:24 +02:00
|
|
|
/* background:#333; */
|
2020-03-08 09:49:41 +01:00
|
|
|
font-family: 'Arial';
|
2020-02-16 15:39:52 +01:00
|
|
|
}
|
2020-06-17 18:16:24 +02:00
|
|
|
h1 { color: grey;}
|
2020-03-14 17:38:35 +01:00
|
|
|
.mermaid2 {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-12-08 10:10:03 +01:00
|
|
|
</style>
|
2019-11-27 20:15:21 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>info below</h1>
|
2020-06-17 18:16:24 +02:00
|
|
|
<div class="flex">
|
|
|
|
<div class="mermaid2" style="width: 50%; height: 20%;">
|
|
|
|
flowchart BT
|
|
|
|
subgraph two
|
|
|
|
b1
|
|
|
|
end
|
|
|
|
subgraph three
|
|
|
|
c1-->c2
|
|
|
|
end
|
|
|
|
c1 --apa apa apa--> b1
|
|
|
|
two --> c2
|
2020-06-19 11:38:30 +02:00
|
|
|
</div>
|
2020-07-29 18:38:59 +02:00
|
|
|
<div class="mermaid2" style="width: 50%; height: 200px;">
|
2020-06-19 11:01:54 +02:00
|
|
|
sequenceDiagram
|
|
|
|
Alice->>Bob:Extremely utterly long line of longness which had preivously overflown the actor box as it is much longer than what it should be
|
|
|
|
Bob->>Alice: I'm short though
|
2020-06-17 18:16:24 +02:00
|
|
|
</div>
|
2020-07-29 18:38:59 +02:00
|
|
|
<div class="mermaid2" style="width: 50%; height: 200px;">
|
2020-07-13 16:39:52 +02:00
|
|
|
%%{init: {'securityLevel': 'loose'}}%%
|
|
|
|
graph TD
|
|
|
|
A[Christmas] -->|Get money| B(Go shopping)
|
|
|
|
B --> C{{Let me think...<br />Do I want something for work,<br />something to spend every free second with,<br />or something to get around?}}
|
|
|
|
C -->|One| D[Laptop]
|
|
|
|
C -->|Two| E[iPhone]
|
|
|
|
C -->|Three| F[Car]
|
|
|
|
click A "index.html#link-clicked" "link test"
|
|
|
|
click B callback "click test"
|
|
|
|
classDef someclass fill:#f96;
|
|
|
|
class A someclass;
|
|
|
|
class C someclass;
|
|
|
|
</div>
|
2020-07-04 11:13:54 +02:00
|
|
|
<div class="mermaid2" style="width: 50%; height: 200px;">
|
2020-06-17 18:16:24 +02:00
|
|
|
|
2020-06-17 18:28:49 +02:00
|
|
|
flowchart BT
|
2020-06-17 18:16:24 +02:00
|
|
|
subgraph a
|
|
|
|
b1 -- ok --> b2
|
|
|
|
end
|
|
|
|
a -- sert --> c
|
|
|
|
c --> d
|
|
|
|
b1 --> d
|
|
|
|
a --asd123 --> d
|
|
|
|
</div>
|
|
|
|
<div class="mermaid2" style="width: 50%; height: 20%;">
|
|
|
|
stateDiagram-v2
|
|
|
|
state A {
|
|
|
|
B1 --> B2: ok
|
|
|
|
}
|
|
|
|
A --> C: sert
|
|
|
|
C --> D
|
|
|
|
B1 --> D
|
|
|
|
A --> D: asd123
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-06 22:34:13 +02:00
|
|
|
<div class="mermaid" style="width: 50%; height: 40%;">
|
2020-09-02 20:34:24 +02:00
|
|
|
%% this does not produce the desired result
|
|
|
|
flowchart TB
|
|
|
|
subgraph container_Beta
|
|
|
|
process_C-->Process_D
|
|
|
|
end
|
|
|
|
subgraph container_Alpha
|
|
|
|
process_A-->process_B
|
|
|
|
process_B-->|via_AWSBatch|container_Beta
|
|
|
|
process_A-->|messages|process_C
|
|
|
|
end
|
|
|
|
|
|
|
|
</div>
|
2020-09-06 22:34:13 +02:00
|
|
|
<div class="mermaid" style="width: 50%; height: 40%;">
|
2020-07-31 16:04:12 +02:00
|
|
|
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#ff0000'}}}%%
|
2020-09-02 20:34:24 +02:00
|
|
|
flowchart TB
|
|
|
|
b-->B
|
|
|
|
a-->c
|
|
|
|
subgraph O
|
|
|
|
A
|
|
|
|
end
|
|
|
|
subgraph B
|
|
|
|
c
|
|
|
|
end
|
|
|
|
subgraph A
|
|
|
|
a
|
|
|
|
b
|
|
|
|
B
|
|
|
|
end
|
2020-08-09 14:02:57 +02:00
|
|
|
|
2020-07-29 18:38:59 +02:00
|
|
|
</div>
|
2020-09-06 22:34:13 +02:00
|
|
|
<div class="mermaid" style="width: 50%; height: 50%;">
|
2020-09-02 20:34:24 +02:00
|
|
|
flowchart TB
|
2020-09-06 22:34:13 +02:00
|
|
|
internet
|
|
|
|
nat
|
|
|
|
routeur
|
|
|
|
lb1
|
|
|
|
lb2
|
|
|
|
compute1
|
|
|
|
compute2
|
|
|
|
subgraph project
|
|
|
|
routeur
|
|
|
|
nat
|
|
|
|
subgraph subnet1
|
|
|
|
compute1
|
|
|
|
lb1
|
|
|
|
end
|
|
|
|
subgraph subnet2
|
|
|
|
compute2
|
|
|
|
lb2
|
|
|
|
end
|
2020-09-02 20:34:24 +02:00
|
|
|
end
|
2020-09-06 22:34:13 +02:00
|
|
|
internet --> routeur
|
|
|
|
routeur --> subnet1 & subnet2
|
|
|
|
subnet1 & subnet2 --> nat --> internet
|
2020-07-29 18:38:59 +02:00
|
|
|
</div>
|
2020-09-06 22:34:13 +02:00
|
|
|
<div class="mermaid" style="width: 50%; height: 50%;">
|
|
|
|
flowchart TD
|
|
|
|
|
|
|
|
subgraph one[One]
|
|
|
|
subgraph sub_one[Sub One]
|
|
|
|
_sub_one
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
subgraph two[Two]
|
|
|
|
_two
|
|
|
|
end
|
|
|
|
|
|
|
|
sub_one --> two
|
|
|
|
</div>
|
|
|
|
<div class="mermaid" style="width: 50%; height: 50%;">
|
|
|
|
flowchart TD
|
|
|
|
|
|
|
|
subgraph one[One]
|
|
|
|
subgraph sub_one[Sub One]
|
|
|
|
_sub_one
|
|
|
|
end
|
|
|
|
subgraph sub_two[Sub Two]
|
|
|
|
_sub_two
|
|
|
|
end
|
|
|
|
_one
|
|
|
|
end
|
|
|
|
|
|
|
|
%% here, either the first or the second one
|
|
|
|
sub_one --> sub_two
|
|
|
|
_one --> b
|
2020-04-22 20:03:41 +02:00
|
|
|
</div>
|
2020-05-06 18:51:12 +02:00
|
|
|
|
2019-12-02 21:10:37 +01:00
|
|
|
<script src="./mermaid.js"></script>
|
2019-11-27 20:15:21 +01:00
|
|
|
<script>
|
2020-06-06 12:42:35 +02:00
|
|
|
mermaid.parseError = function (err, hash) {
|
|
|
|
// console.error('Mermaid error: ', err);
|
|
|
|
};
|
2019-11-27 20:15:21 +01:00
|
|
|
mermaid.initialize({
|
2020-07-31 16:04:12 +02:00
|
|
|
// theme: 'forest',
|
2020-07-30 19:18:18 +02:00
|
|
|
// themeVariables:{primaryColor: '#ff0000'},
|
2019-11-27 20:15:21 +01:00
|
|
|
// arrowMarkerAbsolute: true,
|
2019-12-08 10:10:03 +01:00
|
|
|
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
2019-12-15 13:34:35 +01:00
|
|
|
logLevel: 0,
|
2020-07-13 16:39:52 +02:00
|
|
|
flowchart: { curve: 'cardinal', "htmlLabels": false },
|
2019-12-11 21:12:48 +01:00
|
|
|
// gantt: { axisFormat: '%m/%d/%Y' },
|
2020-02-16 15:26:08 +01:00
|
|
|
sequence: { actorMargin: 50, showSequenceNumbers: true },
|
2019-11-27 20:15:21 +01:00
|
|
|
// sequenceDiagram: { actorMargin: 300 } // deprecated
|
2020-03-14 17:38:35 +01:00
|
|
|
fontFamily: '"arial", sans-serif',
|
2020-07-13 16:39:52 +02:00
|
|
|
curve: 'cardinal',
|
|
|
|
securityLevel: 'strict'
|
2019-11-27 20:15:21 +01:00
|
|
|
});
|
2020-05-06 18:51:12 +02:00
|
|
|
function callback(){alert('It worked');}
|
2019-11-27 20:15:21 +01:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|