-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (44 loc) · 1.03 KB
/
index.html
File metadata and controls
45 lines (44 loc) · 1.03 KB
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
<!doctype html>
<html>
<head>
<title>Webpack Package</title>
</head>
<body>
<div id="point"></div>
<script type="text/javascript">
const defaultTree = {
'src': {
type: 'folder',
children: {
'adapters': {
type: 'folder',
children: {
'webdav.js': {
type: 'file',
content: 'some code',
}
},
},
'index.js': {
type: 'file',
content: '{ name: "example" }',
}
},
},
'package.json': {
type: 'file',
content: '{ name: "example" }',
},
'yarn.lock': {
type: 'file',
content: 'list of deps',
}
};
window.onload = (event) => {
const element = document.getElementById('point');
const obj = new HexletFileTree.Component(document, element, defaultTree);
obj.start();
};
</script>
</body>
</html>