Skip to content

Commit 8904923

Browse files
committed
fixes #193
1 parent 971c664 commit 8904923

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<textarea readonly class='code-block'>
2-
${code}
2+
${code}
33
</textarea>
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
<textarea readonly class='code-block'>
2-
<div class='json-tree' id='code-block-json-${index}'></div>
3-
<script>
4-
function jsonTreeCreate${index}() {
5-
document.getElementById('code-block-json-${index}').innerHTML = JSONTree.create(${code});
6-
}
7-
jsonTreeCreate${index}();
8-
</script>
9-
</textarea>
1+
<div class='json-tree' id='code-block-json-${index}'></div>
2+
<script>
3+
function jsonTreeCreate${index}() {
4+
document.getElementById('code-block-json-${index}').innerHTML = JSONTree.create(${code});
5+
}
6+
jsonTreeCreate${index}();
7+
</script>

0 commit comments

Comments
 (0)