mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-02 23:26:44 +02:00
25 lines
554 B
HTML
25 lines
554 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
|
|
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
|
|
<script src="../../dist/mermaidAPI.js"></script>
|
|
|
|
<script>
|
|
mermaidAPI.initialize({
|
|
startOnLoad:true,
|
|
logLevel:2
|
|
});
|
|
$(function(){
|
|
var graphDefinition = 'graph TB\na-->b';
|
|
console.log(mermaidAPI.render(graphDefinition));
|
|
console.log(mermaidAPI.render('id',graphDefinition));
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
</body>
|
|
</html>
|