2021-04-29 18:50:12 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
2022-09-05 00:48:36 +05:30
|
|
|
<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" />
|
2021-04-29 18:50:12 +02:00
|
|
|
<link
|
2022-09-05 00:48:36 +05:30
|
|
|
rel="stylesheet"
|
2024-05-08 11:10:05 +02:00
|
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
|
2022-09-05 00:48:36 +05:30
|
|
|
/>
|
2022-10-03 10:05:12 +02:00
|
|
|
<link
|
|
|
|
href="https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css"
|
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
2022-09-05 00:48:36 +05:30
|
|
|
<link
|
|
|
|
href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
|
2021-04-29 18:50:12 +02:00
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
2024-05-03 12:02:19 +02:00
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
|
|
<link
|
|
|
|
href="https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap"
|
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
href="https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Kalam:wght@300;400;700&family=Rubik+Mono+One&display=swap"
|
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
href="https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Rubik+Mono+One&display=swap"
|
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
2024-04-26 14:15:07 +02:00
|
|
|
|
2021-04-29 18:50:12 +02:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
/* background: rgb(221, 208, 208); */
|
2024-05-16 14:36:02 +02:00
|
|
|
/* background: #333; */
|
2021-04-29 18:50:12 +02:00
|
|
|
font-family: 'Arial';
|
|
|
|
/* font-size: 18px !important; */
|
2022-09-05 00:48:36 +05:30
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
color: grey;
|
|
|
|
}
|
2021-04-29 18:50:12 +02:00
|
|
|
.mermaid2 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.mermaid svg {
|
|
|
|
/* font-size: 18px !important; */
|
2024-05-08 14:16:04 +02:00
|
|
|
|
2024-05-10 13:21:39 +02:00
|
|
|
/* background-color: #efefef;
|
2024-05-08 11:10:05 +02:00
|
|
|
background-image: radial-gradient(#fff 51%, transparent 91%),
|
|
|
|
radial-gradient(#fff 51%, transparent 91%);
|
2022-10-03 14:51:13 +02:00
|
|
|
background-size: 20px 20px;
|
2024-05-10 13:21:39 +02:00
|
|
|
background-position:
|
|
|
|
0 0,
|
|
|
|
10px 10px;
|
|
|
|
background-repeat: repeat; */
|
2021-04-29 18:50:12 +02:00
|
|
|
}
|
2021-06-03 20:47:24 +02:00
|
|
|
.malware {
|
|
|
|
position: fixed;
|
2022-09-05 00:48:36 +05:30
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2021-06-03 20:47:24 +02:00
|
|
|
height: 150px;
|
|
|
|
background: red;
|
|
|
|
color: black;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
font-family: monospace;
|
|
|
|
font-size: 72px;
|
|
|
|
}
|
2023-03-28 15:28:52 +02:00
|
|
|
/* tspan {
|
2024-05-08 14:16:04 +02:00
|
|
|
font-size: 6px !important;
|
|
|
|
} */
|
2021-04-29 18:50:12 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2024-06-09 15:32:28 +02:00
|
|
|
<pre id="diagram" class="mermaid">
|
|
|
|
stateDiagram
|
|
|
|
direction LR
|
|
|
|
state Gorilla0 {
|
|
|
|
state Apa0 {
|
|
|
|
A0 --> B0
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
Apa0 --> C0
|
|
|
|
A0 --> C0
|
2024-05-23 11:59:31 +02:00
|
|
|
</pre
|
|
|
|
>
|
2024-06-07 20:23:44 +02:00
|
|
|
<pre id="diagram" class="mermaid">
|
2024-06-04 16:34:20 +02:00
|
|
|
flowchart LR
|
2024-06-09 15:32:28 +02:00
|
|
|
subgraph Gorilla
|
|
|
|
subgraph Apa
|
|
|
|
A[A] --- B
|
|
|
|
end
|
2024-06-07 20:23:44 +02:00
|
|
|
end
|
2024-06-09 15:32:28 +02:00
|
|
|
Apa --- C
|
|
|
|
A --x C
|
2024-06-04 16:34:20 +02:00
|
|
|
|
2024-05-23 10:50:39 +02:00
|
|
|
</pre
|
|
|
|
>
|
2024-06-07 20:23:44 +02:00
|
|
|
<pre id="diagram" class="mermaid2">
|
2024-06-04 16:34:20 +02:00
|
|
|
%%{init: {"layout": "dagre", "mergeEdges": false} }%%
|
|
|
|
flowchart LR
|
|
|
|
A ==> B(This is B)
|
|
|
|
A[Start] --> B(Is it?)
|
|
|
|
B -- Yes --> C[OK]
|
|
|
|
C --> D[Rethink]
|
|
|
|
D --> B
|
|
|
|
B -. No ...-> E[End]
|
|
|
|
|
|
|
|
|
2024-05-24 13:28:33 +02:00
|
|
|
</pre
|
|
|
|
>
|
|
|
|
<pre id="diagram" class="mermaid2">
|
2024-05-28 15:27:13 +02:00
|
|
|
%%{init: {"layout": "elk", "mergeEdges": false, "elk.nodePlacement.strategy": "SIMPLE"} }%%
|
|
|
|
stateDiagram
|
|
|
|
state if_state <<choice>>
|
|
|
|
[*] --> IsPositive
|
|
|
|
IsPositive --> if_state
|
|
|
|
if_state --> False: if n < 0
|
|
|
|
if_state --> True : if n >= 0
|
|
|
|
</pre
|
|
|
|
>
|
2024-06-09 15:32:28 +02:00
|
|
|
<pre id="diagram" class="mermaid3">
|
2024-05-28 15:27:13 +02:00
|
|
|
%%{init: {"layout": "elk", "mergeEdges": false, "elk.nodePlacement.strategy": "SIMPLE"} }%%
|
|
|
|
stateDiagram
|
|
|
|
state if_state <<choice>>
|
|
|
|
[*] --> IsPositive
|
|
|
|
IsPositive --> if_state
|
|
|
|
if_state --> False: if n < 0
|
|
|
|
if_state --> True : if n >= 0
|
2024-05-23 11:59:31 +02:00
|
|
|
</pre
|
|
|
|
>
|
|
|
|
<pre id="diagram" class="mermaid2">
|
2024-05-23 10:50:39 +02:00
|
|
|
%%{init: {"layout": "dagre", "mergeEdges": true} }%%
|
|
|
|
stateDiagram
|
|
|
|
direction TB
|
|
|
|
State T1 {
|
2024-06-09 15:32:28 +02:00
|
|
|
T11 --> T12
|
2024-05-23 10:50:39 +02:00
|
|
|
}
|
2024-06-09 15:32:28 +02:00
|
|
|
T1 --> T2
|
|
|
|
T11 --> T2
|
2024-05-23 10:50:39 +02:00
|
|
|
</pre
|
|
|
|
>
|
2024-05-23 11:59:31 +02:00
|
|
|
<pre id="diagram" class="mermaid2">
|
2024-05-23 10:50:39 +02:00
|
|
|
%%{init: {"layout": "dagre", "mergeEdges": true} }%%
|
|
|
|
stateDiagram
|
|
|
|
State T1 {
|
|
|
|
T21
|
|
|
|
--
|
|
|
|
T22
|
|
|
|
}
|
|
|
|
</pre
|
|
|
|
>
|
2024-05-23 11:59:31 +02:00
|
|
|
<pre id="diagram" class="mermaid2">
|
2024-05-23 10:50:39 +02:00
|
|
|
%%{init: {"layout": "elk", "mergeEdges": true} }%%
|
|
|
|
stateDiagram
|
|
|
|
direction TB
|
|
|
|
State T1 {
|
|
|
|
T11
|
|
|
|
}
|
|
|
|
</pre
|
|
|
|
>
|
2024-05-23 11:59:31 +02:00
|
|
|
<pre id="diagram" class="mermaid2">
|
2024-05-23 10:50:39 +02:00
|
|
|
%%{init: {"layout": "elk", "mergeEdges": true} }%%
|
|
|
|
stateDiagram
|
|
|
|
State T1 {
|
|
|
|
T21
|
|
|
|
--
|
|
|
|
T22
|
|
|
|
}
|
|
|
|
</pre
|
|
|
|
>
|
|
|
|
<pre id="diagram" class="mermaid2">
|
|
|
|
%%{init: {"layout": "elk", "mergeEdges": true} }%%
|
|
|
|
stateDiagram
|
|
|
|
[*] --> T1
|
|
|
|
T1 --> T2
|
|
|
|
T1 --> T3
|
|
|
|
T1 --> T4
|
|
|
|
</pre
|
|
|
|
>
|
|
|
|
<pre id="diagram" class="mermaid2">
|
2024-05-20 14:21:01 +02:00
|
|
|
%%{init: {"layout": "elk"} }%%
|
2024-05-08 14:13:18 +02:00
|
|
|
stateDiagram
|
2024-05-17 12:46:02 +02:00
|
|
|
[*] --> T1
|
|
|
|
T1 --> T2
|
|
|
|
T2 --> T3
|
|
|
|
T3 --> T1
|
|
|
|
T1 --> T3
|
2024-05-06 16:21:25 +02:00
|
|
|
</pre
|
|
|
|
>
|
2024-05-23 10:50:39 +02:00
|
|
|
<pre id="diagram" class="mermaid2">
|
2024-05-08 14:13:18 +02:00
|
|
|
stateDiagram
|
|
|
|
State1: The state with a note
|
|
|
|
note right of State1
|
|
|
|
Important information! You can write
|
|
|
|
notes.
|
|
|
|
end note
|
|
|
|
</pre
|
|
|
|
>
|
2024-05-23 10:50:39 +02:00
|
|
|
<pre id="diagram" class="mermaid2">
|
2024-05-08 14:13:18 +02:00
|
|
|
stateDiagram-v2
|
2024-05-23 10:50:39 +02:00
|
|
|
direction LR
|
2024-05-08 14:13:18 +02:00
|
|
|
[*] --> Active
|
|
|
|
|
|
|
|
state Active {
|
2024-05-16 14:36:02 +02:00
|
|
|
direction BT
|
2024-05-17 09:30:51 +02:00
|
|
|
[*] --> Inner
|
|
|
|
Inner --> NumLockOn : EvNumLockPressed
|
2024-05-08 14:13:18 +02:00
|
|
|
}
|
2024-05-17 09:30:51 +02:00
|
|
|
%% Outer --> Inner
|
2024-05-08 14:13:18 +02:00
|
|
|
</pre
|
|
|
|
>
|
2022-10-05 13:14:05 +02:00
|
|
|
|
2022-11-30 11:27:13 +01:00
|
|
|
<script type="module">
|
2023-03-20 12:21:22 +01:00
|
|
|
import mermaid from './mermaid.esm.mjs';
|
2024-05-22 17:01:34 +05:30
|
|
|
import { layouts } from './mermaid-layout-elk.esm.mjs';
|
|
|
|
mermaid.registerLayoutLoaders(layouts);
|
2021-04-29 18:50:12 +02:00
|
|
|
mermaid.parseError = function (err, hash) {
|
2024-05-23 11:59:31 +02:00
|
|
|
console.error('Mermaid error: ', err);
|
2021-12-04 15:28:40 -08:00
|
|
|
};
|
2021-04-29 18:50:12 +02:00
|
|
|
mermaid.initialize({
|
2024-05-28 15:27:13 +02:00
|
|
|
// theme: 'base',
|
2024-06-04 16:34:20 +02:00
|
|
|
// handdrawnSeed: 12,
|
2024-06-07 20:23:44 +02:00
|
|
|
look: 'handdrawn',
|
|
|
|
// 'elk.nodePlacement.strategy': 'NETWORK_SIMPLEX',
|
|
|
|
// layout: 'dagre',
|
2024-06-09 15:32:28 +02:00
|
|
|
layout: 'elk',
|
2024-06-04 16:34:20 +02:00
|
|
|
// layout: 'fixed',
|
2024-06-07 20:23:44 +02:00
|
|
|
// htmlLabels: false,
|
2024-05-08 14:13:18 +02:00
|
|
|
flowchart: { titleTopMargin: 10 },
|
|
|
|
// fontFamily: 'Caveat',
|
2024-05-28 15:27:13 +02:00
|
|
|
fontFamily: 'Kalam',
|
|
|
|
// fontFamily: 'courier',
|
2024-05-08 14:13:18 +02:00
|
|
|
sequence: {
|
|
|
|
actorFontFamily: 'courier',
|
|
|
|
noteFontFamily: 'courier',
|
|
|
|
messageFontFamily: 'courier',
|
|
|
|
},
|
2024-05-23 10:50:39 +02:00
|
|
|
fontSize: 12,
|
2023-10-25 11:06:37 +02:00
|
|
|
logLevel: 0,
|
2021-04-29 18:50:12 +02:00
|
|
|
});
|
2021-12-04 15:28:40 -08:00
|
|
|
function callback() {
|
2022-09-05 00:48:36 +05:30
|
|
|
alert('It worked');
|
|
|
|
}
|
2022-09-26 10:44:18 +02:00
|
|
|
mermaid.parseError = function (err, hash) {
|
|
|
|
console.error('In parse error:');
|
|
|
|
console.error(err);
|
|
|
|
};
|
2021-04-29 18:50:12 +02:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|