-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.html
48 lines (46 loc) · 1.58 KB
/
test.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
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Show as tree test</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="excanvas.js"></script>
<script type="text/javascript" src="jit.js"></script>
<script type="text/javascript" src="jquery.spacetree.js"></script>
<script type="text/javascript">
$(document).ready(function (){
$('#tree').spacetree('#spacetree').hide();
});
</script>
<link type="text/css" rel="stylesheet" href="jquery.spacetree.css" media="screen" />
</head>
<body>
<div id="tree">
<div id="root">Root content</div>
<ul>
<li>
<div id="child1">first child</div>
<ul>
<li>
<div id="subchild1">subchild element 1</div>
</li>
<li>
<div id="subchild2">subchild element 2</div>
</li>
</ul>
</li>
<li>
<div id="child2" class="selected">child element 2</div>
</li>
<li>
<div id="child3">child element 3</div>
</li>
<li>
<div id="child4">child element 4</div>
</li>
</ul>
</div>
<div id="spacetree">
</div>
</body>
</html>