-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
210 lines (184 loc) · 6.29 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<html>
<header>
<style type="text/css">
.treeView{
-moz-user-select:none;
position:relative;
}
.treeView ul{
margin:0 0 0 -1.5em;
padding:0 0 0 1.5em;
}
.treeView ul ul{
background:url('list-item-contents.png') repeat-y left;
}
.treeView li.lastChild > ul{
background-image:none;
}
.treeView li{
margin:0;
padding:0;
background:url('list-item-root.png') no-repeat top left;
list-style-position:inside;
list-style-image:url('button.png');
cursor:auto;
}
.treeView li.collapsibleListOpen{
list-style-image:url('button-open.png');
cursor:pointer;
}
.treeView li.collapsibleListClosed{
list-style-image:url('button-closed.png');
cursor:pointer;
}
.treeView li li{
background-image:url('list-item.png');
padding-left:1.5em;
}
.treeView li.lastChild{
background-image:url('list-item-last.png');
}
.treeView li.collapsibleListOpen{
background-image:url('list-item-open.png');
}
.treeView li.collapsibleListOpen.lastChild{
background-image:url('list-item-last-open.png');
}
</style>
<link rel="stylesheet" href="../../css/jsplumbtoolkit-defaults.css">
<link rel="stylesheet" href="../../css/main.css">
<link rel="stylesheet" href="../../css/jsplumbtoolkit-demo.css">
<link rel="stylesheet" href="demo.css">
<script>var runOnLoad=function(c,o,d,e){function x(){for(e=1;c.length;)c.shift()()}o[d]?(document[d]('DOMContentLoaded',x,0),o[d]('load',x,0)):o.attachEvent('onload',x);return function(t){e?o.setTimeout(t,0):c.push(t)}}([],window,'addEventListener');</script>
<script type="text/javascript" src="collapsibleLists.src.js"></script>
<script type="text/javascript">
runOnLoad(function(){ CollapsibleLists.apply(); });
</script>
</header>
<body>
<div class="jtk-demo-main">
<div class="jtk-demo-canvas" id="canvas">
<div class="list list-lhs" id="list-one">
<h3>LIST ONE xx</h3>
<ul class="treeView">
<li>
Collapsible lists
<ul jtk-scrollable-list source class="collapsibleList ">
<li>
item one</li>
<li>
item two
<ul>
<li>test1</li>
<li class="lastChild">test2</li>
</ul>
</li>
<li>item fifteen
<ul>
<li>test a</li>
<li>item b</li>
<li>item c</li>
<li>item d</li>
<li>item e</li>
<li>item f</li>
<li>item g</li>
<li>item h</li>
<li>item i</li>
<li>item j</li>
<li>item j</li>
<li>item l</li>
<li class="lastChild">m</li>
</ul>
</li>
<li>item sixteen</li>
<li>item seventeen</li>
<li>item eighteen</li>
<li>item nineteen</li>
<li>item twenty</li>
<li>item twenty one</li>
<li>item twenty two</li>
<li>item twenty three</li>
<li>item twenty four</li>
<li>item twenty five</li>
<li>item twenty six</li>
<li>item twenty seven</li>
<li>item twenty eight</li>
<li>item twenty nine</li>
<li>item thirty</li>
<li>item thirty one</li>
<li>item thirty two</li>
<li>item thirty three</li>
<li class="lastChild">item three</li>
</ul>
</li>
</ul>
</div>
<div class="list list-rhs" id="list-two">
<h3>LIST TWO</h3>
<ul class="treeView">
<li> test
<ul jtk-scrollable-list target class="collapsibleList">
<li>item one</li>
<li>item two</li>
<li>item three</li>
<li>item four</li>
<li>item five</li>
<li>item six
<ul>
<li>test a</li>
<li>item b</li>
<li>item c</li>
<li>item d</li>
<li>item e</li>
<li>item f</li>
<li>item g</li>
<li>item h</li>
<li>item i</li>
<li>item j</li>
<li>item j</li>
<li>item l</li>
<li class="lastChild">m</li>
</ul>
</li>
<li>item seven</li>
<li>item eight</li>
<li>item nine</li>
<li>item ten</li>
<li>item eleven</li>
<li>item twelve</li>
<li>item thirteen</li>
<li>item fourteen</li>
<li>item fifteen</li>
<li>item sixteen</li>
<li>item seventeen</li>
<li>item eighteen</li>
<li>item nineteen</li>
<li>item twenty</li>
<li>item twenty one</li>
<li>item twenty two</li>
<li>item twenty three</li>
<li>item twenty four</li>
<li>item twenty five</li>
<li>item twenty six</li>
<li>item twenty seven</li>
<li>item twenty eight</li>
<li>item twenty nine</li>
<li>item thirty</li>
<li>item thirty one</li>
<li>item thirty two</li>
<li>item thirty three</li>
<li>item thirty four</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- JS -->
<script src="../../dist/js/jsplumb.js"></script>
<!-- /JS -->
<!-- demo code -->
<script src="demo.js"></script>
<!-- demo list -->
<script src="../demo-list.js"></script>
</body>
<html>