mermaid/cypress/platform/knsv2.html

211 lines
5.1 KiB
HTML
Raw Normal View History

2021-04-29 18:50:12 +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" />
2021-04-29 18:50:12 +02:00
<link
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"
/>
<link
href="https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css"
rel="stylesheet"
/>
<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); */
/* background: #333; */
2021-04-29 18:50:12 +02:00
font-family: 'Arial';
/* font-size: 18px !important; */
}
2024-08-09 15:07:09 +02:00
h1 {
color: grey;
}
2024-08-09 15:07:09 +02:00
2021-04-29 18:50:12 +02:00
.mermaid2 {
display: none;
}
2024-08-09 15:07:09 +02:00
2021-04-29 18:50:12 +02:00
.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%);
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
}
2024-08-09 15:07:09 +02:00
2021-06-03 20:47:24 +02:00
.malware {
position: fixed;
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;
}
2024-08-09 15:07:09 +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>
2024-08-09 15:07:09 +02:00
2021-04-29 18:50:12 +02:00
<body>
<div class="flex">
<pre id="diagram" class="mermaid">
2024-08-09 15:07:09 +02:00
---
title: hello2
config:
look: handDrawn
layout: elk
elk:
nodePlacementStrategy: BRANDES_KOEPF
2024-08-09 15:07:09 +02:00
---
flowchart LR
A[Start] --Some text--> B(Continue)
B --> C{Evaluate}
C -- One --> D[Option 1]
C -- Two --> E[Option 2]
C -- Three --> F[fa:fa-car Option 3]
</pre
>
<pre id="diagram" class="mermaid2">
---
config:
look: handdrawn
flowchart:
htmlLabels: true
---
flowchart
A[I am a long text, where do I go??? handdrawn - true]
</pre
>
</div>
<div class="flex">
<pre id="diagram" class="mermaid2">
---
config:
flowchart:
htmlLabels: false
---
flowchart
A[I am a long text, where do I go??? classic - false]
</pre
>
<pre id="diagram" class="mermaid2">
---
config:
flowchart:
htmlLabels: true
---
flowchart
A[I am a long text, where do I go??? classic - true]
</pre
>
</div>
2024-08-09 15:07:09 +02:00
<pre id="diagram2" class="mermaid2">
2024-06-10 13:55:12 +02:00
flowchart LR
id1(Start)-->id2(Stop)
style id1 fill:#f9f,stroke:#333,stroke-width:4px
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
2024-06-13 14:17:36 +02:00
</pre>
2024-08-09 15:07:09 +02:00
<pre id="diagram3" class="mermaid2">
flowchart LR
A:::foo & B:::bar --> C:::foobar
classDef foo stroke:#f00
classDef bar stroke:#0f0
classDef ash color:red
class C ash
style C stroke:#00f, fill:black
</pre>
2024-08-09 15:07:09 +02:00
<pre id="diagram4" class="mermaid2">
2024-05-28 15:27:13 +02:00
stateDiagram
A:::foo
B:::bar --> C:::foobar
classDef foo stroke:#f00
classDef bar stroke:#0f0
style C stroke:#00f, fill:black, color:white
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';
import layouts from './mermaid-layout-elk.esm.mjs';
mermaid.registerLayoutLoaders(layouts);
2021-04-29 18:50:12 +02:00
mermaid.parseError = function (err, hash) {
console.error('Mermaid error: ', err);
};
window.callback = function () {
alert('A callback was triggered');
};
2021-04-29 18:50:12 +02:00
mermaid.initialize({
2024-05-28 15:27:13 +02:00
// theme: 'base',
2024-08-09 15:07:09 +02:00
// handDrawnSeed: 12,
// look: 'handDrawn',
// 'elk.nodePlacement.strategy': 'NETWORK_SIMPLEX',
2024-06-13 14:27:10 +02:00
// layout: 'dagre',
2024-06-10 13:55:12 +02:00
// layout: 'elk',
// layout: 'fixed',
// htmlLabels: false,
2024-05-08 14:13:18 +02:00
flowchart: { titleTopMargin: 10 },
// fontFamily: 'Caveat',
2024-06-13 14:27:10 +02:00
// fontFamily: 'Kalam',
2024-05-28 15:27:13 +02:00
// fontFamily: 'courier',
2024-05-08 14:13:18 +02:00
sequence: {
actorFontFamily: 'courier',
noteFontFamily: 'courier',
messageFontFamily: 'courier',
},
fontSize: 12,
logLevel: 0,
securityLevel: 'loose',
2021-04-29 18:50:12 +02:00
});
function callback() {
alert('It worked');
}
mermaid.parseError = function (err, hash) {
console.error('In parse error:');
console.error(err);
};
2021-04-29 18:50:12 +02:00
</script>
</body>
</html>