mermaid/test/examples/apiTest.html
knsv 989ff03e43 Set version to 0.5.6
Removed logging
One more iteration in handling of parser API
2015-11-22 18:10:38 +01:00

27 lines
639 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';
// var cb = function(html){
// console.log(html);
// }
console.log(mermaidAPI.render(graphDefinition));
console.log(mermaidAPI.render('id',graphDefinition));
});
</script>
</head>
<body>
</body>
</html>