mermaid/cypress/platform/current.html

88 lines
2.1 KiB
HTML
Raw Normal View History

2019-11-27 20:15:21 +01:00
<html>
<head>
<link
href="https://fonts.googleapis.com/css?family=Montserrat&display=swap"
rel="stylesheet"
/>
<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">
<style>
2020-02-16 15:39:52 +01:00
body {
/* background: rgb(221, 208, 208); */
background:#333;
font-family: 'Arial';
2020-02-16 15:39:52 +01:00
}
h1 { color: white;}
2020-03-14 17:38:35 +01:00
.mermaid2 {
display: none;
}
</style>
2019-11-27 20:15:21 +01:00
</head>
<body>
<h1>info below</h1>
<div class="mermaid" style="width: 50%; height: 20%;">
2020-06-15 01:11:56 +02:00
graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
</div>
<div class="mermaid2" style="width: 50%; height: 20%;">
flowchart TB
subgraph 1
A --> B;
A -.-> C;
A ==> D;
A ==> E;
B <--> F
C <--> F
D <--> F
E <--> F
end
subgraph 2
A2 --x B2;
A2 -.-x C2;
A2 ==x D2;
A2 ==x E2;
B2 x--x F2
C2 x--x F2
D2 x--x F2
E2 x--x F2
end
subgraph 3
A3 --o B3;
A3 -.-o C3;
A3 ==o D3;
A3 ==o E3;
B3 o--o F3
C3 o--o F3
D3 o--o F3
E3 o--o F3
end
</div>
<script src="./mermaid.js"></script>
2019-11-27 20:15:21 +01:00
<script>
mermaid.parseError = function (err, hash) {
// console.error('Mermaid error: ', err);
};
2019-11-27 20:15:21 +01:00
mermaid.initialize({
theme: 'dark',
2019-11-27 20:15:21 +01:00
// arrowMarkerAbsolute: true,
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
logLevel: 0,
2020-06-15 01:11:56 +02:00
flowchart: { curve: 'linear',htmlLabels: false },
2019-12-11 21:12:48 +01:00
// gantt: { axisFormat: '%m/%d/%Y' },
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',
curve: 'linear',
2020-06-15 01:11:56 +02:00
securityLevel: 'loose',
htmlLabels: false
2019-11-27 20:15:21 +01:00
});
function callback(){alert('It worked');}
2019-11-27 20:15:21 +01:00
</script>
</body>
</html>