2022-06-21 21:17:53 +02:00
|
|
|
<html>
|
2022-09-05 01:00:47 +05:30
|
|
|
<script>
|
2022-06-21 21:17:53 +02:00
|
|
|
// %%{ init: { "logLevel":0, "themeVariables" : { "primaryColor": "#fff000","textColor": "green","apa":"} #target { background-color: crimson }" } } }%%
|
2022-09-05 01:00:47 +05:30
|
|
|
</script>
|
|
|
|
<body>
|
2022-06-21 21:17:53 +02:00
|
|
|
<div id="target">
|
2022-12-08 13:21:56 +01:00
|
|
|
<h1>Background should be yellow!!!</h1>
|
2022-06-21 21:17:53 +02:00
|
|
|
</div>
|
2022-09-05 01:00:47 +05:30
|
|
|
<svg id="diagram"></svg>
|
2022-06-21 21:17:53 +02:00
|
|
|
|
|
|
|
<script src="./mermaid.js"></script>
|
|
|
|
<script>
|
2022-09-05 01:00:47 +05:30
|
|
|
mermaid.initialize({ startOnLoad: false, logLevel: 0 });
|
2022-06-21 21:17:53 +02:00
|
|
|
|
2022-09-05 01:00:47 +05:30
|
|
|
const graph = `
|
2022-06-21 21:17:53 +02:00
|
|
|
%%{ init: { "themeVariables" : { "textColor": "green;} #target { background-color: crimson }", "mainBkg": "#fff000" } } }%%
|
|
|
|
graph TD
|
|
|
|
A[Goose]
|
|
|
|
`;
|
|
|
|
|
2022-09-05 01:00:47 +05:30
|
|
|
const diagram = document.getElementById('diagram');
|
|
|
|
const svg = mermaid.render('diagram-svg', graph);
|
|
|
|
diagram.innerHTML = svg;
|
2022-06-21 21:17:53 +02:00
|
|
|
</script>
|
2022-09-05 01:00:47 +05:30
|
|
|
</body>
|
2022-06-21 21:17:53 +02:00
|
|
|
</html>
|