Omnibus commited on
Commit
471c19d
·
verified ·
1 Parent(s): 27d9258

Update merm.html

Browse files
Files changed (1) hide show
  1. merm.html +0 -20
merm.html CHANGED
@@ -3,15 +3,7 @@
3
  <head>
4
  <meta charset="utf-8" />
5
  <title>Mermaid Chart Viewer</title>
6
-
7
  <meta name="viewport" content="width=device-width" />
8
- <!--meta name="twitter:card" content="player"/>
9
- <meta name="twitter:site" content=""/>
10
- <meta name="twitter:player" content="https://omnibus-text-to-chart.hf.space/file=merm.html?mermaid=$merm"/>
11
- <meta name="twitter:player:stream" content="https://omnibus-text-to-chart.hf.space/file=merm.html?mermaid=$merm"/>
12
- <meta name="twitter:player:width" content="100%"/>
13
- <meta name="twitter:player:height" content="100%"/-->
14
-
15
  <meta name="twitter:card" content="summary_large_image"/>
16
  <meta property="og:title" content="Chart Viewer\nView Charts with custom links"/>
17
  <meta property="og:description" content="View Charts with custom links"/>
@@ -24,16 +16,11 @@
24
  #chart_box{
25
  text-align: center;
26
  }
27
-
28
-
29
  </style>
30
  </head>
31
  <body>
32
-
33
-
34
  <div id="chart_box">
35
  <pre id = "chart" class="mermaid">
36
-
37
  </pre>
38
  </div>
39
  <script>
@@ -42,12 +29,9 @@
42
  const merm = urlParams.get("mermaid");
43
  console.log(merm);
44
  this_id=document.getElementById("chart");
45
- //this_id.innerHTML="graph TD\nA[Start] --> B[Task 1]\nB --> C[Task 7]\nC --> D[End]"
46
  this_id.innerText=merm;
47
-
48
  </script>
49
 
50
-
51
  <script type="module">
52
  const defaultConfig = {
53
  startOnLoad: true,
@@ -59,12 +43,8 @@
59
  useMaxWidth: 0,
60
  },
61
  }
62
- //const mermaidConfig = merge(defaultConfig, config)
63
-
64
  import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
65
  mermaid.initialize(defaultConfig);
66
- //mermaid.initialize({ securityLevel: 'loose',startOnLoad: true, useMaxWidth: 0 });
67
- //mermaid.initialize({ securityLevel: 'loose',startOnLoad: true });
68
  </script>
69
  </body>
70
  </html>
 
3
  <head>
4
  <meta charset="utf-8" />
5
  <title>Mermaid Chart Viewer</title>
 
6
  <meta name="viewport" content="width=device-width" />
 
 
 
 
 
 
 
7
  <meta name="twitter:card" content="summary_large_image"/>
8
  <meta property="og:title" content="Chart Viewer\nView Charts with custom links"/>
9
  <meta property="og:description" content="View Charts with custom links"/>
 
16
  #chart_box{
17
  text-align: center;
18
  }
 
 
19
  </style>
20
  </head>
21
  <body>
 
 
22
  <div id="chart_box">
23
  <pre id = "chart" class="mermaid">
 
24
  </pre>
25
  </div>
26
  <script>
 
29
  const merm = urlParams.get("mermaid");
30
  console.log(merm);
31
  this_id=document.getElementById("chart");
 
32
  this_id.innerText=merm;
 
33
  </script>
34
 
 
35
  <script type="module">
36
  const defaultConfig = {
37
  startOnLoad: true,
 
43
  useMaxWidth: 0,
44
  },
45
  }
 
 
46
  import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
47
  mermaid.initialize(defaultConfig);
 
 
48
  </script>
49
  </body>
50
  </html>