mermaid/cypress/platform/ghsa1.html

27 lines
818 B
HTML
Raw Normal View History

<html>
2022-09-05 01:00:47 +05:30
<script>
// %%{ init: { "logLevel":0, "themeVariables" : { "primaryColor": "#fff000","textColor": "green","apa":"} #target { background-color: crimson }" } } }%%
2022-09-05 01:00:47 +05:30
</script>
<body>
<div id="target">
2022-12-08 13:21:56 +01:00
<h1>Background should be yellow!!!</h1>
</div>
2022-09-05 01:00:47 +05:30
<svg id="diagram"></svg>
<script src="./mermaid.js"></script>
<script>
2022-09-05 01:00:47 +05:30
mermaid.initialize({ startOnLoad: false, logLevel: 0 });
2022-09-05 01:00:47 +05:30
const graph = `
%%{ 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;
</script>
2022-09-05 01:00:47 +05:30
</body>
</html>