-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharcTree.html
86 lines (79 loc) · 2.3 KB
/
arcTree.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Arc Tree</title>
<!-- link rel="icon" type="image/x-icon" href="./logo.jpg" / -->
<link rel="stylesheet" href="./arcTree.css" />
<script defer src="./arcTree.js"></script>
<script
defer
src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.3.4/purify.min.js"
></script>
</head>
<body>
<div id="arctree-container">
<div id="arctree-options">
<div>ArcTree Options:<br /></div>
<input
type="button"
value="Collapse Leafs"
title="Hide nodes with no children"
onclick="collapseLeafs();"
/>
<input
type="button"
value="Expand Leafs"
title="Show nodes with no children"
onclick="showLeafs();"
/>
<input
type="button"
value="Collapse Tree"
title="Collapse Entire Tree"
onclick="collapseTree();"
/>
<input
type="button"
value="Expand Tree"
title="Expand Entire Tree"
onclick="expandTree();"
/>
<div>
<label title="Font size in em's" id="arctree-font-size-label">
Font size: <span id="arctree-font-size-value"></span>
<input
type="range"
step="0.5"
min="0.5"
value="1"
max="5"
id="arctree-font-size"
list="step-list"
oninput="updateFontSize(this)"
/>
<datalist id="step-list">
<option>1.0</option>
<option>2.0</option>
<option>3.0</option>
<option>4.0</option>
<option>5</option>
</datalist>
</label>
</div>
</div>
<label title="Select a JSON file to view">
<span id="arctree-file-label">JSON file:</span>
<input
type="file"
onChange="fileChange(this.files[0])"
accept=".json"
id="arctree-file"
/>
</label>
<ul id="unordered-arctree" class="arctree"></ul>
</div>
</body>
</html>