mermaid/cypress/platform/knsv2.html

113 lines
2.8 KiB
HTML
Raw Normal View History

2021-04-29 18:50:12 +02:00
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" />
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet" />
2021-04-29 18:50:12 +02:00
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link
href="https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
2021-04-29 18:50:12 +02:00
rel="stylesheet"
/>
<style>
body {
/* background: rgb(221, 208, 208); */
/* background:#333; */
font-family: 'Arial';
/* font-size: 18px !important; */
}
h1 {
color: grey;
}
2021-04-29 18:50:12 +02:00
.mermaid2 {
display: none;
}
.mermaid svg {
/* font-size: 18px !important; */
background-color: #eee;
background-image: radial-gradient(#fff 1%, transparent 11%),
radial-gradient(#fff 1%, transparent 11%);
background-size: 20px 20px;
background-position: 0 0, 10px 10px;
background-repeat: repeat;
2021-04-29 18:50:12 +02:00
}
2021-06-03 20:47:24 +02:00
.malware {
position: fixed;
bottom: 0;
left: 0;
right: 0;
2021-06-03 20:47:24 +02:00
height: 150px;
background: red;
color: black;
display: flex;
display: flex;
justify-content: center;
align-items: center;
font-family: monospace;
font-size: 72px;
}
2021-04-29 18:50:12 +02:00
</style>
</head>
<body>
2021-06-03 20:47:24 +02:00
<div>Security check</div>
<pre id="diagram" class="mermaid2">
example-diagram
2022-09-26 14:22:21 +02:00
</pre
>
<pre id="diagram" class="mermaid">
mindmap
root
A
B
C
D
E
A2
B2
C2
D2
E2
child1((Circle))
grandchild 1
grandchild 2
child2(Round rectangle)
grandchild 3
grandchild 4
child3[Square]
grandchild 5
::icon(mdi mdi-fire)
gc6((grand<br/>child 6))
::icon(mdi mdi-fire)
gc7((grand<br/>grand<br/>child 8))
</pre>
2022-10-03 11:08:55 +02:00
<!-- <div id="cy"></div> -->
<script src="http://localhost:9000/packages/mermaid-mindmap/dist/mermaid-mindmap-detector.js"></script>
<script src="./mermaid-example-diagram-detector.js"></script>
<script src="./mermaid.js"></script>
2021-04-29 18:50:12 +02:00
<script>
mermaid.parseError = function (err, hash) {
// console.error('Mermaid error: ', err);
};
2021-04-29 18:50:12 +02:00
mermaid.initialize({
theme: 'forest',
startOnLoad: true,
logLevel: 0,
basePath: './packages/',
// themeVariables: { darkMode: true },
2021-04-29 18:50:12 +02:00
});
function callback() {
alert('It worked');
}
mermaid.parseError = function (err, hash) {
console.error('In parse error:');
console.error(err);
};
2021-04-29 18:50:12 +02:00
</script>
</body>
</html>