-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (81 loc) · 1.65 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ItemSelector test</title>
<script type="text/javascript" src="ItemSelector.js"></script>
<link rel="stylesheet" type="text/css" href="page.css">
</head>
<body class='dark'>
<script type="text/javascript">
const IS = new ItemSelector(false);
IS.setTheme(document.body.classList[0]);
IS.show(json = {
text: '根文件夹',
children: [{
text: '文件 1',
}, {
text: '文件 2',
}, {
text: '一级子文件夹 1',
children: [{
text: '文件 3',
}, {
text: '二级子文件夹',
children: [{
text: '文件 4',
}, {
text: '文件 5',
}, {
text: '三级子文件夹 1',
children: [{
text: '文件 6'
}, {
text: '文件 7'
}, {
text: '文件 8'
}, {
text: '四级子文件夹(空)',
children: []
}]
}, {
text: '三级子文件夹 2',
children: [{
text: '文件 9'
}, {
text: '文件 10'
}, {
text: '文件 11'
}, {
text: '四级子文件夹',
children: [{
text: '文件12'
}]
}]
}, {
text: '三级子文件夹 3(空)',
children: []
}]
}, {
text: '文件 13'
}]
}, {
text: '一级子文件夹 2(空)',
children: [],
}],
otherProp: [0,1,2,3,'a','b','c',true,false,null,undefined,{},[]]
}, {
title: 'ItemSelector window',
onok: function(e, selected) {
console.log(selected);
},
oncancel: function(e) {
console.log('cancelled');
},
onclose: function(e) {
console.log('closed')
}
})
</script>
</body>
</html>