Spaces:
Running
Running
Update index.html
Browse files- index.html +5 -4
index.html
CHANGED
|
@@ -8,19 +8,20 @@
|
|
| 8 |
<script src="https://code.jquery.com/jquery-3.7.1.js" integrity="sha256-eKhayi8LEQwp4NKxN+CfCh+3qOVUtJn3QNZ0TciWLP4=" crossorigin="anonymous"></script>
|
| 9 |
|
| 10 |
<style>
|
| 11 |
-
.
|
| 12 |
align-content: center;
|
| 13 |
display: flex;
|
| 14 |
flex-direction: column;
|
| 15 |
align-items: center;
|
| 16 |
}
|
|
|
|
| 17 |
</style>
|
| 18 |
</head>
|
| 19 |
<body>
|
| 20 |
|
| 21 |
|
| 22 |
-
<div id="
|
| 23 |
-
<pre id = "
|
| 24 |
|
| 25 |
</pre>
|
| 26 |
</div>
|
|
@@ -29,7 +30,7 @@
|
|
| 29 |
const urlParams = new URLSearchParams(queryString);
|
| 30 |
const merm = urlParams.get("mermaid");
|
| 31 |
console.log(merm);
|
| 32 |
-
this_id=document.getElementById("
|
| 33 |
//this_id.innerHTML="graph TD\nA[Start] --> B[Task 1]\nB --> C[Task 7]\nC --> D[End]"
|
| 34 |
this_id.innerText=merm;
|
| 35 |
|
|
|
|
| 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 |
display: flex;
|
| 14 |
flex-direction: column;
|
| 15 |
align-items: center;
|
| 16 |
}
|
| 17 |
+
|
| 18 |
</style>
|
| 19 |
</head>
|
| 20 |
<body>
|
| 21 |
|
| 22 |
|
| 23 |
+
<div id="chart_box">
|
| 24 |
+
<pre id = "chart" class="mermaid">
|
| 25 |
|
| 26 |
</pre>
|
| 27 |
</div>
|
|
|
|
| 30 |
const urlParams = new URLSearchParams(queryString);
|
| 31 |
const merm = urlParams.get("mermaid");
|
| 32 |
console.log(merm);
|
| 33 |
+
this_id=document.getElementById("chart");
|
| 34 |
//this_id.innerHTML="graph TD\nA[Start] --> B[Task 1]\nB --> C[Task 7]\nC --> D[End]"
|
| 35 |
this_id.innerText=merm;
|
| 36 |
|