2020-08-16 08:45:44 +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">
|
|
|
|
<link 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" rel="stylesheet">
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
/* background: rgb(221, 208, 208); */
|
2021-09-16 20:43:10 +02:00
|
|
|
/* background:#333; */
|
2020-08-16 08:45:44 +02:00
|
|
|
font-family: 'Arial';
|
2021-04-26 19:08:16 +02:00
|
|
|
/* font-size: 18px !important; */
|
2021-09-18 08:03:34 +02:00
|
|
|
width: 100%;
|
2020-08-16 08:45:44 +02:00
|
|
|
}
|
|
|
|
h1 { color: grey;}
|
2021-05-16 08:36:30 +02:00
|
|
|
.mermaid2,.mermaid3 {
|
2020-08-16 08:45:44 +02:00
|
|
|
display: none;
|
|
|
|
}
|
2021-01-21 21:20:35 +01:00
|
|
|
.mermaid svg {
|
2021-04-26 19:08:16 +02:00
|
|
|
/* font-size: 18px !important; */
|
2021-01-21 21:20:35 +01:00
|
|
|
}
|
2020-08-16 08:45:44 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-01-21 18:15:18 +01:00
|
|
|
<div id="apa" style="background: aliceblue; width: 150px; height: 75px;">APA</div>
|
2022-01-21 17:17:31 +01:00
|
|
|
<div class="mermaid2" style="width: 100%;">
|
|
|
|
pie title Pets adopted by volunteers
|
|
|
|
"Dogs" : 386
|
|
|
|
"Cats" : 85
|
|
|
|
"Rats" : 15
|
|
|
|
</div>
|
2022-01-22 11:47:03 +01:00
|
|
|
<div class="mermaid" style="width: 100%;">
|
2022-01-21 17:17:31 +01:00
|
|
|
gantt
|
|
|
|
title Adding GANTT diagram functionality to mermaid
|
|
|
|
excludes :excludes the named dates/days from being included in a charted task..
|
2022-01-22 11:47:03 +01:00
|
|
|
section Screening
|
|
|
|
Lexplore :active, des1, 2023-01-06,2023-01-08
|
|
|
|
H4 :active, des2, 2024-01-09, 3d
|
2022-01-21 17:17:31 +01:00
|
|
|
Future task : des3, after des2, 5d
|
|
|
|
Future task2 : des4, after des3, 5d
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="mermaid2" style="width: 100%;">
|
|
|
|
info
|
|
|
|
</div>
|
|
|
|
<div class="mermaid2" style="width: 100%;">
|
|
|
|
gitGraph:
|
|
|
|
options
|
|
|
|
{
|
|
|
|
"nodeSpacing": 150,
|
|
|
|
"nodeRadius": 10
|
|
|
|
}
|
|
|
|
end
|
|
|
|
commit
|
|
|
|
branch newbranch
|
|
|
|
checkout newbranch
|
|
|
|
commit
|
|
|
|
commit
|
|
|
|
checkout master
|
|
|
|
commit
|
|
|
|
commit
|
|
|
|
merge newbranch
|
|
|
|
</div>
|
2022-01-21 18:15:18 +01:00
|
|
|
<div class="mermaid" style="width: 100%;">
|
|
|
|
sequenceDiagram
|
|
|
|
participant a as Alice
|
|
|
|
participant j as John
|
|
|
|
note right of a: Hello world!
|
|
|
|
properties a: {"class": "internal-service-actor", "type": "@clock"}
|
|
|
|
properties j: {"class": "external-service-actor", "type": "@computer"}
|
|
|
|
links a: {"Repo": "https://www.contoso.com/repo", "Swagger": "https://www.contoso.com/swagger"}
|
|
|
|
links j: {"Repo": "https://www.contoso.com/repo"}
|
|
|
|
links a: {"Dashboard": "https://www.contoso.com/dashboard", "On-Call": "https://www.contoso.com/oncall"}
|
|
|
|
link a: Contacts @ https://contacts.contoso.com/?contact=alice@contoso.com
|
|
|
|
a->>j: Hello John, how are you?
|
|
|
|
j-->>a: Great!
|
|
|
|
</div>
|
2022-01-21 17:17:31 +01:00
|
|
|
<div class="mermaid2" style="width: 100%;">
|
|
|
|
journey
|
|
|
|
title My working day
|
|
|
|
section Go to work
|
|
|
|
Make tea: 5: Me
|
|
|
|
Go upstairs: 3: Me
|
|
|
|
Do work: 1: Me, Cat
|
|
|
|
section Go home
|
|
|
|
Go downstairs: 5: Me
|
|
|
|
Sit down: 5: Me
|
|
|
|
</div>
|
|
|
|
<div class="mermaid2" style="width: 100%;">
|
|
|
|
requirementDiagram
|
|
|
|
|
|
|
|
requirement test_req {
|
|
|
|
id: 1
|
|
|
|
text: the test text.
|
|
|
|
risk: high
|
|
|
|
verifymethod: test
|
|
|
|
}
|
|
|
|
|
|
|
|
functionalRequirement test_req2 {
|
|
|
|
id: 1.1
|
|
|
|
text: the second test text.
|
|
|
|
risk: low
|
|
|
|
verifymethod: inspection
|
|
|
|
}
|
|
|
|
|
|
|
|
performanceRequirement test_req3 {
|
|
|
|
id: 1.2
|
|
|
|
text: the third test text.
|
|
|
|
risk: medium
|
|
|
|
verifymethod: demonstration
|
|
|
|
}
|
|
|
|
|
|
|
|
element test_entity {
|
|
|
|
type: simulation
|
|
|
|
}
|
|
|
|
|
|
|
|
element test_entity2 {
|
|
|
|
type: word doc
|
|
|
|
docRef: reqs/test_entity
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
test_entity - satisfies -> test_req2
|
|
|
|
test_req - traces -> test_req2
|
|
|
|
test_req - contains -> test_req3
|
|
|
|
test_req <- copies - test_entity2
|
|
|
|
</div>
|
|
|
|
<div class="mermaid2" style="width: 100%;">
|
|
|
|
erDiagram
|
|
|
|
CUSTOMER }|..|{ DELIVERY-ADDRESS : has
|
|
|
|
CUSTOMER ||--o{ ORDER : places
|
|
|
|
CUSTOMER ||--o{ INVOICE : "liable for"
|
|
|
|
DELIVERY-ADDRESS ||--o{ ORDER : receives
|
|
|
|
INVOICE ||--|{ ORDER : covers
|
|
|
|
ORDER ||--|{ ORDER-ITEM : includes
|
|
|
|
PRODUCT-CATEGORY ||--|{ PRODUCT : contains
|
|
|
|
PRODUCT ||--o{ ORDER-ITEM : "ordered in"
|
|
|
|
</div>
|
|
|
|
<div class="mermaid2" style="width: 100%;">
|
|
|
|
graph TB
|
|
|
|
subgraph One
|
|
|
|
a1-->a2-->a3
|
|
|
|
end
|
|
|
|
</div>
|
|
|
|
<div class="mermaid2" style="width: 100%;">
|
|
|
|
stateDiagram
|
|
|
|
[*] --> S1
|
|
|
|
state "Some long name" as S1
|
|
|
|
</div>
|
|
|
|
<div class="mermaid2" style="width: 100%;">
|
|
|
|
classDiagram
|
|
|
|
Animal "1" <|-- Duck
|
|
|
|
Animal <|-- Fish
|
|
|
|
Animal <--o Zebra
|
|
|
|
Animal : +int age
|
|
|
|
Animal : +String gender
|
|
|
|
Animal: +isMammal()
|
|
|
|
Animal: +mate()
|
|
|
|
class Duck{
|
|
|
|
+String beakColor
|
|
|
|
+swim()
|
|
|
|
+quack()
|
|
|
|
}
|
|
|
|
class Fish{
|
|
|
|
-int sizeInFeet
|
|
|
|
-canEat()
|
|
|
|
}
|
|
|
|
class Zebra{
|
|
|
|
+bool is_wild
|
|
|
|
+run()
|
|
|
|
}
|
2022-01-20 19:37:52 +01:00
|
|
|
</div>
|
2021-06-06 11:37:23 +02:00
|
|
|
|
2020-08-16 08:45:44 +02:00
|
|
|
<script src="./mermaid.js"></script>
|
|
|
|
<script>
|
|
|
|
mermaid.parseError = function (err, hash) {
|
2021-12-04 15:28:40 -08:00
|
|
|
// console.error('Mermaid error: ', err);
|
|
|
|
};
|
2020-08-16 08:45:44 +02:00
|
|
|
mermaid.initialize({
|
2021-09-16 20:43:10 +02:00
|
|
|
// theme: 'dark',
|
|
|
|
theme: 'forest',
|
2022-01-21 17:17:31 +01:00
|
|
|
// arrowMarkerAbsolute: true,
|
2020-08-16 08:45:44 +02:00
|
|
|
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
|
2022-01-21 17:17:31 +01:00
|
|
|
flowchart: {
|
|
|
|
nodeSpacing: 10,
|
|
|
|
curve: 'cardinal',
|
|
|
|
htmlLabels: true,
|
|
|
|
defaultRenderer: 'dagre-d3',
|
|
|
|
},
|
|
|
|
class: {
|
|
|
|
defaultRenderer: 'dagre-d3',
|
|
|
|
},
|
2020-08-16 08:45:44 +02:00
|
|
|
// gantt: { axisFormat: '%m/%d/%Y' },
|
2021-12-04 15:28:40 -08:00
|
|
|
sequence: { actorFontFamily: 'courier', actorMargin: 50, showSequenceNumbers: false },
|
2022-01-21 18:15:18 +01:00
|
|
|
// sequenceDiagram: { actorMargin: 300, forceMenus: false }, // deprecated
|
2021-04-26 19:08:16 +02:00
|
|
|
// fontFamily: '"times", sans-serif',
|
|
|
|
// fontFamily: 'courier',
|
2021-12-04 15:28:40 -08:00
|
|
|
state: {
|
2021-04-30 13:50:21 +02:00
|
|
|
nodeSpacing: 50,
|
|
|
|
rankSpacing: 50,
|
2022-01-21 17:17:31 +01:00
|
|
|
defaultRenderer: 'dagre-d3',
|
2021-04-30 13:50:21 +02:00
|
|
|
},
|
2021-12-04 15:28:40 -08:00
|
|
|
logLevel: 0,
|
2021-04-26 19:08:16 +02:00
|
|
|
fontSize: 18,
|
2020-08-16 08:45:44 +02:00
|
|
|
curve: 'cardinal',
|
2022-01-21 18:15:18 +01:00
|
|
|
securityLevel: 'sandbox',
|
2021-04-26 19:08:16 +02:00
|
|
|
// themeVariables: {relationLabelColor: 'red'}
|
2020-08-16 08:45:44 +02:00
|
|
|
});
|
2021-12-04 15:28:40 -08:00
|
|
|
function callback() {
|
|
|
|
alert('It worked');
|
|
|
|
}
|
2020-08-16 08:45:44 +02:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|