7.5 KB234 lines
Blame
1<html>
2 <head>
3 <link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" />
4 <link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet" />
5 <link
6 rel="stylesheet"
7 href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/font-awesome.min.css"
8 />
9 <link
10 href="https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css"
11 rel="stylesheet"
12 />
13 <link
14 href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
15 rel="stylesheet"
16 />
17 <style>
18 body {
19 /* background: rgb(221, 208, 208); */
20 /* background:#333; */
21 font-family: 'Arial';
22 /* font-size: 18px !important; */
23 }
24 h1 {
25 color: grey;
26 }
27 .mermaid2 {
28 display: none;
29 }
30 .mermaid svg {
31 /* font-size: 18px !important; */
32 background-color: #eee;
33 background-image:
34 radial-gradient(#fff 1%, transparent 11%), radial-gradient(#fff 1%, transparent 11%);
35 background-size: 20px 20px;
36 background-position:
37 0 0,
38 10px 10px;
39 background-repeat: repeat;
40 }
41 .malware {
42 position: fixed;
43 bottom: 0;
44 left: 0;
45 right: 0;
46 height: 150px;
47 background: red;
48 color: black;
49 display: flex;
50 display: flex;
51 justify-content: center;
52 align-items: center;
53 font-family: monospace;
54 font-size: 72px;
55 }
56 </style>
57 </head>
58 <body>
59 <div>Security check</div>
60 <pre id="diagram" class="mermaid2">
61 timeline
62 title My day
63 section Section with no tasks
64 section Go to work at the dog office
65 1930 : first step : second step is a long step
66 : third step
67 1940 : fourth step : fifth step
68 section Go home
69 1950 : India got independent and already won war against Pakistan
70 1960 : India fights poverty, looses war to China and gets nuclear weapons from USA and USSR
71 1970 : Green Revolution comes to india
72 section Another section with no tasks
73 I am a very, very big task
74 I am not so big task
75 </pre>
76 <pre id="diagram" class="mermaid">
77 timeline
78 title MermaidChart 2023 Timeline
79 section 2023 Q1 <br> Release Personal Tier
80 Bullet 1 : sub-point 1a : sub-point 1b
81 : sub-point 1c
82 Bullet 2 : sub-point 2a : sub-point 2b
83 section 2023 Q2 <br> Release XYZ Tier
84 Bullet 3 : sub-point <br> 3a : sub-point 3b
85 : sub-point 3c
86 Bullet 4 : sub-point 4a : sub-point 4b
87
88 </pre>
89
90 <pre id="diagram" class="mermaid">
91 timeline
92 title England's History Timeline
93 section Stone Age
94 7600 BC : Britain's oldest known house was built in Orkney, Scotland
95 6000 BC : Sea levels rise and Britain becomes an island. The people who live here are hunter-gatherers.
96 section Bronze Age
97 2300 BC : People arrive from Europe and settle in Britain. They bring farming and metalworking.
98 : New styles of pottery and ways of burying the dead appear.
99 2200 BC : The last major building works are completed at Stonehenge. People now bury their dead in stone circles.
100 : The first metal objects are made in Britain.Some other nice things happen. it is a good time to be alive.
101
102 </pre>
103 <pre id="diagram" class="mermaid2">
104 %%{'init': { 'logLevel': 'debug', 'theme': 'default', 'timeline': {'disableMulticolor':false} } }%%
105 timeline
106 title History of Social Media Platform
107 2002 : LinkedIn
108 2004 : Facebook : Google : Pixar
109 2005 : YouTube
110 2006 : Twitter
111 2007 : Tumblr
112 2008s : Instagram
113 2010 : Pinterest
114 </pre>
115 <pre id="diagram" class="mermaid2">
116 %%{init: { 'logLevel': 'debug', 'theme': 'base', 'themeVariables': {
117 'cScale0': '#ff0000',
118 'cScale1': '#00ff00',
119 'cScale2': '#ff0000'
120 } } }%%
121 timeline
122 title History of Social Media Platform
123 2002 : LinkedIn
124 2004 : Facebook : Google : Pixar
125 2005 : YouTube
126 2006 : Twitter
127 2007 : Tumblr
128 2008s : Instagram
129 2010 : Pinterest
130 </pre>
131
132 <pre id="diagram" class="mermaid2">
133 %%{init: { 'logLevel': 'debug', 'theme': 'default' , 'themeVariables': {
134 'cScale0': '#ff0000',
135 'cScale1': '#00ff00',
136 'cScale2': '#0000ff'
137 } } }%%
138 timeline
139 title History of Social Media Platform
140 2002 : LinkedIn
141 2004 : Facebook : Google
142 2005 : YouTube
143 2006 : Twitter
144 2007 : Tumblr
145 2008 : Instagram
146 2010 : Pinterest
147
148 </pre>
149
150 <pre id="diagram" class="mermaid2">
151 timeline
152 title History of Social Media Platform
153 2002 : LinkedIn
154 2004 : Facebook : Google
155 2005 : YouTube
156 2006 : Twitter
157 2007 : Tumblr
158 2008s : Instagram
159 2010 : Pinterest
160 </pre>
161 <pre id="diagram" class="mermaid2">
162mindmap
163 root
164 child1((Circle))
165 grandchild 1
166 grandchild 2
167 child2(Round rectangle)
168 grandchild 3
169 grandchild 4
170 child3[Square]
171 grandchild 5
172 ::icon(mdi mdi-fire)
173 gc6((grand<br/>child 6))
174 ::icon(mdi mdi-fire)
175 gc7((grand<br/>grand<br/>child 8))
176 </pre>
177 <pre id="diagram" class="mermaid2">
178 flowchart-elk TB
179 a --> b
180 a --> c
181 b --> d
182 c --> d
183 </pre>
184
185 <!-- <div id="cy"></div> -->
186 <!-- <script src="/packages/mermaid-mindmap/dist/mermaid-mindmap-detector.js"></script> -->
187 <!-- <script src="./mermaid-example-diagram-detector.js"></script> -->
188 <!-- <script src="//cdn.jsdelivr.net/npm/mermaid@9.1.7/dist/mermaid.min.js"></script> -->
189 <script type="module">
190 //import mindmap from '../../packages/mermaid-mindmap/src/detector';
191 // import example from '../../packages/mermaid-example-diagram/src/detector';
192 // import timeline from '../../packages/mermaid-timeline/src/detector';
193 import mermaid from './mermaid.esm.mjs';
194 // await mermaid.registerExternalDiagrams([]);
195 mermaid.parseError = function (err, hash) {
196 // console.error('Mermaid error: ', err);
197 };
198 mermaid.initialize({
199 theme: 'base',
200 startOnLoad: true,
201 logLevel: 0,
202 flowchart: {
203 useMaxWidth: false,
204 htmlLabels: true,
205 },
206 gantt: {
207 useMaxWidth: false,
208 },
209 timeline: {
210 disableMulticolor: false,
211 htmlLabels: false,
212 },
213 useMaxWidth: true,
214 lazyLoadedDiagrams: [
215 // './mermaid-mindmap-detector.esm.mjs',
216 // './mermaid-example-diagram-detector.esm.mjs',
217 //'./mermaid-timeline-detector.esm.mjs',
218 ],
219 });
220 function callback() {
221 alert('It worked');
222 }
223 mermaid.parseError = function (err, hash) {
224 console.error('In parse error:');
225 console.error(err);
226 };
227 // mermaid.test1('first_slow', 1200).then((r) => console.info(r));
228 // mermaid.test1('second_fast', 200).then((r) => console.info(r));
229 // mermaid.test1('third_fast', 200).then((r) => console.info(r));
230 // mermaid.test1('forth_slow', 1200).then((r) => console.info(r));
231 </script>
232 </body>
233</html>
234