-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (75 loc) · 2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
box-sizing: border-box;
padding: 0;
margin: 0;
}
.input-container {
position: absolute;
top:1rem;
left:1rem;
display: flex;
flex-direction: column;
gap: 1rem;
width:10rem;
}
textarea{
resize: none;
width:100%;
}
.action-btn{
width:100%;
display: flex;
gap: 1rem;
}
.algo-btn{
width:100%;
display: flex;
flex-direction: column;
gap: 1rem;
}
.algo-area {
width: 100%;
display: flex;
align-items: center;
gap: 1rem;
}
button{
width:5rem;
height:2rem;
}
</style>
</head>
<body>
<div class="input-container">
<textarea class="input" rows="5"></textarea>
<div class="action-btn">
<button class="apply-btn">Apply</button>
<button class="clear-btn">Clear</button>
</div>
<div class="algo-btn">
<div>Traverse Tree</div>
<div class="algo-area">
<button class="in-order-btn">In Order</button>
<div class="in-order-algo-result"></div>
</div>
<div class="algo-area">
<button class="pre-order-btn">Pre Order</button>
<div class="pre-order-algo-result"></div>
</div>
<div class="algo-area">
<button class="post-order-btn">Post Order</button>
<div class="post-order-algo-result"></div>
</div>
</div>
</div>
<canvas></canvas>
<script type="module" src="./drawBinaryTree.js"></script>
</body>
</html>