-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (73 loc) · 2.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<link rel="icon" type="image/x-icon" href="favicon.png" />
<title>Document</title>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script
src="https://kit.fontawesome.com/e8fbb55064.js"
crossorigin="anonymous"
></script>
<script src="./JS/app.js" type="module" defer></script>
</head>
<body>
<nav class="navbar">
<header class="heading">Binary Search Tree Visulizer</header>
</nav>
<div class="form-container">
<form action="" id="form1">
<input
type="text"
id="insert"
placeholder="Insert"
inputmode="numeric"
/>
<label for="insert">
<button type="submit" id="insert-btn" class="btn">
<i class="fa-sharp fa-solid fa-plus"></i>
</button>
</label>
</form>
<form action="" id="form2">
<input
type="text"
id="remove"
placeholder="Remove"
inputmode="numeric"
/>
<label for="remove">
<button type="submit" id="remove-btn" class="btn">
<i class="fa-solid fa-trash"></i></button
></label>
</form>
<form action="" id="form3">
<input type="text" id="find" placeholder="Find" inputmode="numeric" />
<label for="remove">
<button type="submit" id="find-btn" class="btn">
<i class="fa-solid fa-search"></i></button
></label>
</form>
<label for="animation-delay">Animation delay</label>
<input
type="range"
min="50"
max="1000"
value="500"
id="animation-delay"
/>
<div class="traversals">
<button id="pre" class="traversal btn" type="button">Preorder</button>
<button id="post" class="traversal btn" type="button">Postorder</button>
<button id="in" class="traversal btn" type="button">Inorder</button>
<button id="level" class="traversal btn" type="button">Level order</button>
</div>
<div class="box">
<h4 id="message-heading"></h4>
<div id="message"></div>
</div>
</div>
</body>
</html>