2020-09-02 20:34:24 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
2022-09-04 21:18:36 +02:00
|
|
|
<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" />
|
2020-09-02 20:34:24 +02:00
|
|
|
<link
|
2022-09-04 21:18:36 +02:00
|
|
|
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"
|
2020-09-02 20:34:24 +02:00
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
/* background: rgb(221, 208, 208); */
|
|
|
|
/* background:#333; */
|
|
|
|
font-family: 'Arial';
|
2022-09-04 21:18:36 +02:00
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
color: grey;
|
|
|
|
}
|
2020-09-02 20:34:24 +02:00
|
|
|
.mermaid2 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>info below</h1>
|
|
|
|
<div class="flex">
|
2022-09-04 21:18:36 +02:00
|
|
|
<pre class="mermaid2" style="width: 50%; height: 20%">
|
2020-09-02 20:34:24 +02:00
|
|
|
flowchart BT
|
|
|
|
subgraph two
|
|
|
|
b1
|
|
|
|
end
|
|
|
|
subgraph three
|
|
|
|
c1-->c2
|
|
|
|
end
|
|
|
|
c1 --apa apa apa--> b1
|
|
|
|
two --> c2
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
|
|
|
<pre class="mermaid2" style="width: 50%; height: 200px">
|
2020-09-02 20:34:24 +02:00
|
|
|
sequenceDiagram
|
2022-06-27 05:29:50 +02:00
|
|
|
Alice->>Bob:Extremely utterly long line of longness which had previously overflown the actor box as it is much longer than what it should be
|
2020-09-02 20:34:24 +02:00
|
|
|
Bob->>Alice: I'm short though
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
|
|
|
<pre class="mermaid2" style="width: 50%; height: 200px">
|
2020-09-02 20:34:24 +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;
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
|
|
|
<pre class="mermaid2" style="width: 50%; height: 200px">
|
2020-09-02 20:34:24 +02:00
|
|
|
|
|
|
|
flowchart BT
|
|
|
|
subgraph a
|
|
|
|
b1 -- ok --> b2
|
|
|
|
end
|
|
|
|
a -- sert --> c
|
|
|
|
c --> d
|
|
|
|
b1 --> d
|
|
|
|
a --asd123 --> d
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
|
|
|
<pre class="mermaid2" style="width: 50%; height: 20%">
|
2020-09-02 20:34:24 +02:00
|
|
|
stateDiagram-v2
|
|
|
|
state A {
|
|
|
|
B1 --> B2: ok
|
|
|
|
}
|
|
|
|
A --> C: sert
|
|
|
|
C --> D
|
|
|
|
B1 --> D
|
|
|
|
A --> D: asd123
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
<pre class="mermaid2" style="width: 50%; height: 20%">
|
2020-09-02 20:34:24 +02:00
|
|
|
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#ff0000'}}}%%
|
|
|
|
flowchart LR
|
|
|
|
a -->b
|
|
|
|
subgraph A
|
|
|
|
B
|
|
|
|
end
|
|
|
|
subgraph B
|
|
|
|
b
|
|
|
|
end
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
|
|
|
<pre class="mermaid" style="width: 50%; height: 20%">
|
2020-09-02 20:34:24 +02:00
|
|
|
flowchart TB
|
|
|
|
subgraph A
|
|
|
|
b-->B
|
|
|
|
a-->c
|
|
|
|
end
|
|
|
|
subgraph B
|
|
|
|
c
|
|
|
|
end
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
|
|
|
<pre class="mermaid2" style="width: 50%; height: 20%">
|
2020-09-02 20:34:24 +02:00
|
|
|
sequenceDiagram
|
|
|
|
Alice->Bob: Hello Bob, how are you?
|
|
|
|
Note over Alice,Bob: Looks
|
|
|
|
Note over Bob,Alice: Looks back
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
2020-09-02 20:34:24 +02:00
|
|
|
|
2022-09-04 21:18:36 +02:00
|
|
|
<script src="./mermaid.js"></script>
|
2020-09-02 20:34:24 +02:00
|
|
|
<script>
|
|
|
|
mermaid.parseError = function (err, hash) {
|
2021-12-05 00:28:40 +01:00
|
|
|
// console.error('Mermaid error: ', err);
|
|
|
|
};
|
2020-09-02 20:34:24 +02:00
|
|
|
mermaid.initialize({
|
|
|
|
// theme: 'forest',
|
|
|
|
// themeVariables:{primaryColor: '#ff0000'},
|
|
|
|
// arrowMarkerAbsolute: true,
|
|
|
|
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
|
|
|
logLevel: 0,
|
2021-12-05 00:28:40 +01:00
|
|
|
flowchart: { curve: 'cardinal', htmlLabels: false },
|
2020-09-02 20:34:24 +02:00
|
|
|
// gantt: { axisFormat: '%m/%d/%Y' },
|
|
|
|
sequence: { actorMargin: 50, showSequenceNumbers: true },
|
|
|
|
// sequenceDiagram: { actorMargin: 300 } // deprecated
|
|
|
|
fontFamily: '"arial", sans-serif',
|
|
|
|
curve: 'cardinal',
|
2021-12-05 00:28:40 +01:00
|
|
|
securityLevel: 'strict',
|
2020-09-02 20:34:24 +02:00
|
|
|
});
|
2021-12-05 00:28:40 +01:00
|
|
|
function callback() {
|
2022-09-04 21:18:36 +02:00
|
|
|
alert('It worked');
|
|
|
|
}
|
2020-09-02 20:34:24 +02:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|