-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (41 loc) · 1.77 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
<title> tree</title>
<link rel="stylesheet" href="Treant/Treant.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="header">
<h2>Binary Tree
<small class="text-muted">visualizer</small>
</h2>
</div>
<div id="howTo" class="alert alert-secondary alert-dismissible fade show" role="alert">
<strong>How to use?</strong>
Enter the numbers in the textfield below separated by commas then hit visualize.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="input-group">
<span class="input-group-text">comma separated numbers</span>
<textarea class="form-control" aria-label="With textarea" id="numbers" font-family="Courier New"></textarea>
<button type='submit' id="visualize" class="btn btn-primary">visualize</button>
</div>
<!-- Tree visualizer goes here -->
<div class="chart" id="tree"></div>
<div id="chartForm">
<button type='submit' id="reset" class="btn btn-danger">reset</button>
</div>
<script src="Treant/library.js"></script>
<script src="Treant/Treant.js"></script>
<script src="script.js"></script>
<script>
new Treant( treeAsArray );
</script>
</body>
</html>