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-09-16 20:43:10 +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; */
|
2021-09-18 08:03:34 +02:00
|
|
|
width: 100%;
|
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>
|
2021-09-18 08:03:34 +02:00
|
|
|
<div class="flex flex-wrap">
|
2020-10-15 19:04:48 +02:00
|
|
|
|
2021-08-26 18:55:47 +02:00
|
|
|
<div class="mermaid" style="width: 100%; height: 20%;">
|
2021-06-06 11:37:23 +02:00
|
|
|
stateDiagram-v2
|
2021-11-18 17:10:36 +01:00
|
|
|
[*] --> S1
|
|
|
|
state "Some long name" as S1
|
2021-06-06 11:37:23 +02:00
|
|
|
|
2021-11-18 17:10:36 +01:00
|
|
|
</div>
|
2021-06-06 11:37:23 +02:00
|
|
|
|
2020-08-16 08:45:44 +02:00
|
|
|
<script src="./mermaid.js"></script>
|
|
|
|
<script>
|
|
|
|
mermaid.parseError = function (err, hash) {
|
2021-12-04 15:28:40 -08:00
|
|
|
// console.error('Mermaid error: ', err);
|
|
|
|
};
|
2020-08-16 08:45:44 +02:00
|
|
|
mermaid.initialize({
|
2021-09-16 20:43:10 +02:00
|
|
|
// theme: 'dark',
|
|
|
|
theme: 'forest',
|
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-08-26 17:05:10 +02:00
|
|
|
flowchart: { nodeSpacing: 10, curve: 'cardinal', htmlLabels: false },
|
2020-08-16 08:45:44 +02:00
|
|
|
// gantt: { axisFormat: '%m/%d/%Y' },
|
2021-12-04 15:28:40 -08: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-12-04 15:28:40 -08:00
|
|
|
state: {
|
2021-04-30 13:50:21 +02:00
|
|
|
nodeSpacing: 50,
|
|
|
|
rankSpacing: 50,
|
2021-05-09 11:12:22 +02:00
|
|
|
defaultRenderer: 'dagre-wrapper',
|
2021-04-30 13:50:21 +02:00
|
|
|
},
|
2021-12-04 15:28:40 -08: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
|
|
|
});
|
2021-12-04 15:28:40 -08:00
|
|
|
function callback() {
|
|
|
|
alert('It worked');
|
|
|
|
}
|
2020-08-16 08:45:44 +02:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|