mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
43 lines
1.1 KiB
HTML
43 lines
1.1 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<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>
|
||
|
div.mermaid {
|
||
|
/* font-family: 'trebuchet ms', verdana, arial; */
|
||
|
font-family: 'Courier New', Courier, monospace !important;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h2>Sample</h2>
|
||
|
<div class="mermaid">
|
||
|
graph LR
|
||
|
DataStore[|Database|] -->|input| Process((System)) -->|output| Entity[Customer]
|
||
|
</div>
|
||
|
|
||
|
<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>
|
||
|
</html>
|