-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreeder.html
45 lines (34 loc) · 908 Bytes
/
treeder.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<head>
<title>treeder</title>
</head>
<body>
<div class="container">
{{> main}}
</div>
</body>
<template name="main">
<h1>Parser</h1>
<input type="button" value="parse" class="btn" id="parse" />
<input type="button" value="connectAll" class="btn" id="connect" />
<br>
<br>
<div class="tree-container container">
<p>height of tree = <strong>{{height}}</strong></p>
<div id="node-container">
{{#each levels}}
{{> node}}
{{/each}}
</div>
</div>
</template>
<template name="node">
<div class="node-row" style="top: {{boundaryTop}}px; margin-left: {{marginLeft}}px">
{{#each nodes}}
{{#if data}}
<div class="node" data-identification="{{identification}}" data-parent="{{parent}}" style="left: {{xAxis}}px;">{{data}}</div>
{{else}}
<div class="node-empty" style="left: {{xAxis}}px;">{{data}}</div>
{{/if}}
{{/each}}
</div>
</template>