-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
23 lines (18 loc) · 856 Bytes
/
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
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css">
<body>
<input type="text" id="value" value="" onkeypress="handleKeyPress(event)" autofocus placeholder="Press Enter to insert (Leave empty for random number)" size="45">
<button type="button" onclick="InsertNode();">Insert</button>
<button type="button" onclick="DeleteNode();">Delete</button>
<button type="button" onclick="SearchNode();">Search</button>
<button type="button" onclick="Print(bst.inorder);">Inorder</button>
<button type="button" onclick="Print(bst.preorder);">Preorder</button>
<button type="button" onclick="Print(bst.postorder);">Postorder</button>
<br>
<span id="msg"></span>
<!-- load the d3.js library -->
<script src="d3.min.js"></script>
<script src="BST_AVL.js" charset="utf-8"></script>
<script src="graph.js" charset="utf-8"></script>
</body>