2020-10-15 17:49:39 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
2022-09-04 21:18:36 +02:00
|
|
|
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" />
|
2020-10-15 17:49:39 +02:00
|
|
|
<link
|
2022-09-04 21:18:36 +02:00
|
|
|
rel="stylesheet"
|
|
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
|
2020-10-15 17:49:39 +02:00
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background: rgb(221, 208, 208);
|
|
|
|
/*background:#333;*/
|
|
|
|
font-family: 'Arial';
|
2022-09-04 21:18:36 +02:00
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
color: white;
|
|
|
|
}
|
2020-10-15 17:49:39 +02:00
|
|
|
.mermaid2 {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-09-04 21:18:36 +02:00
|
|
|
.customCss > rect,
|
|
|
|
.customCss {
|
|
|
|
fill: #ff0000 !important;
|
|
|
|
stroke: #ffff00 !important;
|
|
|
|
stroke-width: 4px !important;
|
|
|
|
}
|
2020-10-15 17:49:39 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>info below</h1>
|
2022-09-04 21:18:36 +02:00
|
|
|
<pre class="mermaid" style="width: 100%; height: 20%">
|
2020-10-15 17:49:39 +02:00
|
|
|
|
|
|
|
gitGraph
|
|
|
|
class BankAccount{
|
|
|
|
+String owner
|
|
|
|
+BigDecimal balance
|
|
|
|
+deposit(amount) bool
|
|
|
|
+withdrawl(amount) int
|
|
|
|
}
|
|
|
|
cssClass "BankAccount" customCss
|
2022-09-04 21:18:36 +02:00
|
|
|
</pre>
|
2020-10-15 17:49:39 +02:00
|
|
|
|
2022-09-04 21:18:36 +02:00
|
|
|
<script src="./mermaid.js"></script>
|
2020-10-15 17:49:39 +02:00
|
|
|
<script>
|
|
|
|
mermaid.parseError = function (err, hash) {
|
2022-03-10 19:58:56 +01:00
|
|
|
// console.error('Mermaid error: ', err);
|
|
|
|
};
|
2020-10-15 17:49:39 +02:00
|
|
|
mermaid.initialize({
|
|
|
|
theme: 'default',
|
|
|
|
// arrowMarkerAbsolute: true,
|
|
|
|
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
|
|
|
logLevel: 0,
|
2022-03-10 19:58:56 +01:00
|
|
|
flowchart: { curve: 'linear', htmlLabels: true },
|
2020-10-15 17:49:39 +02:00
|
|
|
// gantt: { axisFormat: '%m/%d/%Y' },
|
|
|
|
sequence: { actorMargin: 50, showSequenceNumbers: true },
|
|
|
|
// sequenceDiagram: { actorMargin: 300 } // deprecated
|
|
|
|
// fontFamily: '"arial", sans-serif',
|
|
|
|
// themeVariables: {
|
|
|
|
// fontFamily: '"arial", sans-serif',
|
|
|
|
// },
|
|
|
|
curve: 'linear',
|
2022-03-10 19:58:56 +01:00
|
|
|
securityLevel: 'loose',
|
2020-10-15 17:49:39 +02:00
|
|
|
});
|
2022-03-10 19:58:56 +01:00
|
|
|
function callback() {
|
2022-09-04 21:18:36 +02:00
|
|
|
alert('It worked');
|
|
|
|
}
|
2020-10-15 17:49:39 +02:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|