-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·99 lines (82 loc) · 2.15 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<html>
<style>
#InputArea span {
display: inline-block;
margin-bottom: 10px;
}
#Steps * {
vertical-align: top;
}
#Steps span {
padding-top: 60px;
display: inline-block;
}
#TreeArray tr {
text-align: center;
}
#TreeArray {
border-collapse: collapse;
}
#TreeArray td {
border: 1px solid #777;
padding: 5px;
min-width: 20px;
}
#TreeArray tr:first-child td {
border-top: 0;
}
#TreeArray tr td:first-child {
border-left: 0;
}
#TreeArray tr:last-child td {
border-bottom: 0;
}
#TreeArray tr td:last-child {
border-right: 0;
}
</style>
<script src="./Comparator.js"></script>
<script src="./TreeNode.js"></script>
<script src="./Tree.js"></script>
<script src="./AvlTree.js"></script>
<script src="./VisualTree.js"></script>
<body>
<div id="InitializeArea">
<h3>Initialize Area</h3>
<span>Tree Type: </span>
<select id="TreeType" onchange="eventTreeTypeChange()">
<option value="bst">Binary Search Tree</option>
<option value="avl">AVL Tree</option>
</select>
<br>
</div>
<div id="InputArea">
<h3>Input Area</h3>
<span>Insert: </span>
<input id="InsertField" onkeyup="eventInsertFieldChange(event)" />
<br>
<span>Delete: </span>
<input id="DeleteField" onkeyup="eventDeleteFieldChange(event)" />
<br>
</div>
<hr />
<div id="OutputArea">
<h3>Output Area</h3>
<div id="Information">
<h4>Information</h4>
<span>Pre-order: </span><span id="PreOrder"></span><br>
<span>In-order: </span><span id="InOrder"></span><br>
<span>Post-order: </span><span id="PostOrder"></span><br>
<span>Array: </span><br>
<table id="TreeArray">
<tr id="IdxTr"></tr>
<tr id="ContentTr"></tr>
</table><br>
</div>
<div id="Steps">
<h4>Steps</h3>
</div>
</div>
<script src="./app.js"></script>
</body>
</html>