forked from izaiasmachado/TrabalhoSGBD-2023_1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
257 lines (237 loc) · 8.61 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Visualização Árvores</title>
<link rel="icon" href="assets/img/favicon.ico" />
<link rel="stylesheet" href="assets/css/style.css" />
<script src="assets/js/utils.js"></script>
<script src="assets/js/Controlls.js"></script>
<script src="assets/js/EventQueue.js"></script>
<script src="assets/js/EventProcessor.js"></script>
<link rel="stylesheet" href="assets/css/TopBar/NavBar.css" />
<link rel="stylesheet" href="assets/css/TopBar/SelectInputType.css" />
<link rel="stylesheet" href="assets/css/TopBar/InsertValues.css" />
<link rel="stylesheet" href="assets/css/TopBar/TreeOptions.css" />
<!-- Components -->
<script src="assets/js/Components/ActionSelector.js"></script>
<script src="assets/js/Components/ActionListener.js"></script>
<script src="assets/js/Components/BottomBar.js"></script>
<script src="assets/js/Components/TreeSelector.js"></script>
<script src="assets/js/Components/OptionListener.js"></script>
<link rel="stylesheet" href="assets/css/BottomBar/BottomControllsBar.css" />
<link rel="stylesheet" href="assets/css/TreeSelector/TreeSelector.css" />
<!-- Base Tree -->
<script src="assets/js/BaseTree/BaseNode.js"></script>
<!-- B Plus Tree -->
<script src="assets/js/BPlusTree/BPlusTree.js"></script>
<script src="assets/js/BPlusTree/BPlusTreeVisualizer.js"></script>
<script src="assets/js/BPlusTree/BPlusTreeNode.js"></script>
<script src="assets/js/BPlusTree/BPlusTreeNodeVisualizer.js"></script>
<script src="assets/js/BPlusTree/InternalNode.js"></script>
<script src="assets/js/BPlusTree/LeafNode.js"></script>
<script src="assets/js/BTree/BTree.js"></script>
<script src="assets/js/BTree/BTreeNode.js"></script>
<script src="assets/js/BTree/BTreeVisualizer.js"></script>
<!-- <script src="assets/js/TypeInput.js"></script> -->
</head>
<body>
<!-- minimo 1 milisecond -->
<!-- default 610 -->
<!-- maximum 1220 -->
<canvas id="canvas"></canvas>
<div id="container">
<div class="titleBar">
<div class="treeSelector">
<div id="logo">
<img src="assets/img/tree.png" />
</div>
<div id="b-plus-button" class="treeSelectorTitle selected">
Árvore B+
</div>
<div class="treeSelectorIcon" id="b-icon">
<img src="assets/img/chevron-left.svg" />
</div>
<div class="treeSelectorIcon selected" id="b-plus-icon">
<img src="assets/img/chevron-right.svg" />
</div>
<div id="b-button" class="treeSelectorTitle">Árvore B</div>
</div>
<div class="githubLogo">
<a
href="https://github.com/izaiasmachado/TrabalhoSGBD-2023_1"
target="_blank"
>
<img src="assets/img/github-mark.svg" />
</a>
</div>
</div>
<div id="navbarContainer">
<nav id="navbar">
<!-- <div class="insertItemsContainer"></div> -->
<div class="treeInputOptions">
<div class="selectInputTypeContainer">
<div
id="select-input-manual"
class="selectedInputOption selected"
>
Manual
</div>
<div id="select-insert-random" class="selectedInputOption">
Inserção Aleatória
</div>
<div id="select-delete-random" class="selectedInputOption">
Deleção Aleatória
</div>
</div>
<!-- <div class="treeInput"></div> -->
<div id="manual-container" class="treeOptionInput">
<div class="treeInsertionInputs">
<input
class="input-bar"
id="manual-input-key"
placeholder="Digite uma Chave"
/>
</div>
<div class="treeInsertionButtons">
<button
class="input-button pure-material-button-contained"
id="manual-insert-button"
>
Inserir
</button>
<button
class="input-button pure-material-button-contained"
id="manual-search-button"
>
Buscar
</button>
<button
class="input-button pure-material-button-contained"
id="manual-delete-button"
>
Deletar
</button>
</div>
</div>
<div id="random-insert-container" class="treeOptionInput">
<div class="treeInsertionInputs">
<input
id="random-insert-input-start"
class="input-bar"
type="number"
placeholder="Índice inicial"
/>
<input
id="random-insert-input-end"
class="input-bar"
type="number"
placeholder="Índice Final"
/>
<input
id="random-insert-input-count"
class="input-bar"
type="number"
placeholder="N° de elementos"
/>
</div>
<div class="treeInsertionButtons">
<button id="random-insert-button" class="input-button">
Inserir
</button>
</div>
</div>
<div id="random-delete-container" class="treeOptionInput">
<div class="treeInsertionInputs">
<input
id="random-deletion-input-count"
class="input-bar"
type="number"
placeholder="N° de elementos"
/>
</div>
<div class="treeInsertionButtons">
<button id="random-delete-button" class="input-button">
Deletar
</button>
</div>
</div>
</div>
<div class="treeOptionsContainer">
<h3>Opções</h3>
<div class="treeOption">
<div class="treeOptionTitle">Fanout</div>
<div class="treeOptionSelector fanoutSelector">
<button
class="fanoutIncrease fanoutSelectorItem"
id="increase-fanout-button"
>
+
</button>
<div class="treeFanout fanoutSelectorItem" id="show-fanout">
4
</div>
<button
class="fanoutDescrease fanoutSelectorItem"
id="decrease-fanout-button"
>
-
</button>
</div>
</div>
<div class="treeOption">
<div class="treeOptionTitle">Velocidade</div>
<div class="treeOptionSelector">
<input
type="range"
class="treeSpeedSelector"
id="tree-speed-selector"
min="1"
max="1219"
value="610"
step="1"
/>
</div>
</div>
<div class="treeOption" id="tree-option-button">
<button
class="input-button pure-material-button-contained"
id="clear-tree-button"
>
Limpar Árvore
</button>
</div>
</div>
</nav>
</div>
<div id="bottom-controlls-bar">
<div class="bottomControllsInfo">
<div class="bottomControllsInfoTitle">Tempo:</div>
<div id="bottom-bar-timer-value" class="bottomControllsInfoValue">
0
</div>
</div>
<div class="bottomControllsInfo">
<div class="bottomControllsInfoTitle">Leitura em Nós:</div>
<div
id="bottom-bar-read-nodes-value"
class="bottomControllsInfoValue"
>
0
</div>
</div>
<div class="bottomControllsInfo">
<div class="bottomControllsInfoTitle">Escrita em Nós:</div>
<div
id="bottom-bar-written-nodes-value"
class="bottomControllsInfoValue"
>
0
</div>
</div>
</div>
<div id="tree"></div>
</div>
</body>
</html>