-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (49 loc) · 2.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sorting Visualizer</title>
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<header>
<nav>
<div class="header_right">
<p class="nav-heading" style="padding-left: 412px; padding-top: 50px;">Sorting visualizer</p>
</div>
<div class="array-inputs" style="padding-top: 45px; padding-bottom: 40px;">
<p>Size of the array:</p>
<input id="a_size" type="range" min=20 max=150 step=1 value=80>
<p>Speed of the algorithm:</p>
<input id="a_speed" type="range" min=1 max=5 step=1 value=4>
</div>
</nav>
</header>
<section>
<div id="Info_Cont1">
<p><button id="a_generate">Generate New Array!</button></p>
</div>
<div id="array_container"></div>
<div id="Info_Cont2">
<div class="header_right">
<!-- <p class="nav-heading"> -->
<div class="algos">
<button style="margin-right: 10px; margin-bottom: 50px;">Bubble</button>
<button style="margin-right: 10px; margin-bottom: 50px;">Selection</button>
<button style="margin-right: 10px; margin-bottom: 50px;">Insertion</button>
<button style="margin-right: 10px; margin-bottom: 50px;">Merge</button>
<button style="margin-right: 10px; margin-bottom: 50px;">Quick</button>
</div>
<!-- </p> -->
</div>
</section>
<script src="./scripts/main.js"></script> <!--This should be at the end of body and should be loaded before sorts.js-->
<script src="./scripts/visualizations.js"></script> <!--This should be loaded after main.js-->
<script src="./scripts/bubble_sort.js"></script>
<script src="./scripts/selection_sort.js"></script>
<script src="./scripts/insertion_sort.js"></script>
<script src="./scripts/merge_sort.js"></script>
<script src="./scripts/quick_sort.js"></script>
</body>
</html>