Skip to content

Commit 1a85298

Browse files
committed
makeup
1 parent 17fca17 commit 1a85298

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

public/index.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@
7070
fclose($pipes[0]);
7171

7272
$csv = stream_get_contents($pipes[1]);
73-
echo '<p><label>Response &mdash; <a href="http://ilk.uvt.nl/conll/#dataformat">CoNLL-X</a> (CSV):</label></p>';
74-
echo "<pre>$csv</pre>";
7573

7674
$return_value = proc_close($process);
7775
// echo '<p><label>Val:</label></p>';
@@ -85,7 +83,7 @@
8583

8684
<p><label>Processed response:</label></p>
8785

88-
</div>
86+
<div id="tree"></div>
8987

9088
<script>
9189

@@ -104,7 +102,7 @@
104102
var diagonal = d3.svg.diagonal()
105103
.projection(function(d) { return [d.y, d.x]; });
106104

107-
var svg = d3.select("body").append("svg")
105+
var svg = d3.select("#tree").append("svg")
108106
.attr("width", width + margin.right + margin.left)
109107
.attr("height", height + margin.top + margin.bottom)
110108
.append("g")
@@ -230,6 +228,12 @@ function click(d) {
230228

231229
</script>
232230

231+
<?php
232+
echo '<p><label>Response &mdash; <a href="http://ilk.uvt.nl/conll/#dataformat">CoNLL-X</a> (CSV):</label></p>';
233+
echo "<pre>$csv</pre>";
234+
?>
235+
236+
</div>
233237

234238
</body>
235239
</html>

0 commit comments

Comments
 (0)