2021-10-09 16:22:17 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2022-09-04 21:18:36 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<title>Mermaid Quick Test Page</title>
|
|
|
|
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=" />
|
|
|
|
<style>
|
2021-10-09 16:22:17 +02:00
|
|
|
div.mermaid {
|
|
|
|
/* font-family: 'trebuchet ms', verdana, arial; */
|
|
|
|
font-family: 'Courier New', Courier, monospace !important;
|
|
|
|
}
|
2022-09-04 21:18:36 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2>Data Flow Diagram Example</h2>
|
|
|
|
<pre class="mermaid">
|
2021-11-28 12:15:00 +01:00
|
|
|
flowchart LR
|
|
|
|
DataStore[|borders:tb|Database] -->|input| Process((System)) -->|output| Entity[Customer];
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
2021-10-09 16:22:17 +02:00
|
|
|
|
2022-09-04 21:18:36 +02:00
|
|
|
<h2>Borders Example</h2>
|
|
|
|
<pre class="mermaid">
|
2021-11-28 12:24:24 +01:00
|
|
|
flowchart TD
|
|
|
|
allSides[ stroke all sides ];
|
|
|
|
allSides2[|borders:ltrb| stroke all sides ];
|
|
|
|
rbSides[|borders:rb| stroke right and bottom sides ];
|
|
|
|
ltSides[|borders:lt| stroke left and top sides ];
|
|
|
|
lrSides[|borders:lr| stroke left and right sides ];
|
|
|
|
noSide[|borders:no| stroke no side ];
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
2021-11-28 12:24:24 +01:00
|
|
|
|
2022-09-04 21:18:36 +02:00
|
|
|
<script src="./mermaid.js"></script>
|
|
|
|
<script>
|
|
|
|
mermaid.initialize({
|
|
|
|
theme: 'forest',
|
|
|
|
logLevel: 3,
|
|
|
|
securityLevel: 'loose',
|
|
|
|
flowchart: { curve: 'basis' },
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
function testClick(nodeId) {
|
|
|
|
console.log('clicked', nodeId);
|
|
|
|
var originalBgColor = document.querySelector('body').style.backgroundColor;
|
|
|
|
document.querySelector('body').style.backgroundColor = 'yellow';
|
|
|
|
setTimeout(function () {
|
|
|
|
document.querySelector('body').style.backgroundColor = originalBgColor;
|
|
|
|
}, 100);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
2021-10-09 16:22:17 +02:00
|
|
|
</html>
|