Omnibus commited on
Commit
5df573e
·
verified ·
1 Parent(s): 9b8cd3b

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +56 -0
index.html ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width" />
6
+ <title>My static Space</title>
7
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
8
+ <script src="https://code.jquery.com/jquery-3.7.1.js" integrity="sha256-eKhayi8LEQwp4NKxN+CfCh+3qOVUtJn3QNZ0TciWLP4=" crossorigin="anonymous"></script>
9
+
10
+ <style>
11
+ #chart_box{
12
+ align-content: center;
13
+ }
14
+
15
+ </style>
16
+ </head>
17
+ <body>
18
+
19
+
20
+ <div id="chart_box">
21
+ <pre id = "chart" class="mermaid">
22
+
23
+ </pre>
24
+ </div>
25
+ <script>
26
+ const queryString = window.location.search;
27
+ const urlParams = new URLSearchParams(queryString);
28
+ const merm = urlParams.get("mermaid");
29
+ console.log(merm);
30
+ this_id=document.getElementById("chart");
31
+ //this_id.innerHTML="graph TD\nA[Start] --> B[Task 1]\nB --> C[Task 7]\nC --> D[End]"
32
+ this_id.innerText=merm;
33
+
34
+ </script>
35
+
36
+
37
+ <script type="module">
38
+ const defaultConfig = {
39
+ startOnLoad: true,
40
+ securityLevel: 'loose',
41
+ flowchart: {
42
+ useMaxWidth: 0,
43
+ },
44
+ gantt: {
45
+ useMaxWidth: 0,
46
+ },
47
+ }
48
+ //const mermaidConfig = merge(defaultConfig, config)
49
+
50
+ import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
51
+ mermaid.initialize(defaultConfig);
52
+ //mermaid.initialize({ securityLevel: 'loose',startOnLoad: true, useMaxWidth: 0 });
53
+ //mermaid.initialize({ securityLevel: 'loose',startOnLoad: true });
54
+ </script>
55
+ </body>
56
+ </html>