-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (72 loc) · 2.35 KB
/
index.html
File metadata and controls
86 lines (72 loc) · 2.35 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css" />
<title>Sorting Visualizer</title>
</head>
<body>
<div class="main">
<h1>Sorting Visualizer</h1>
<div class="content">
<button type="button" id="btn-new-arr" class="btn btn-new-arr">
New array
</button>
<div class="sliders container">
<span class="slider">
Array size:
<input
id="arr-size-slider"
type="range"
min="30"
max="120"
step="1"
value="60"
/>
</span>
<span class="slider">
Speed:
<input
id="delay-slider"
type="range"
min="0.1"
max="2"
step="0.1"
value="0.5"
/>
</span>
</div>
<div class="sort-btns-container container">
<button type="button" id="btn-bubble-sort" class="btn btn-sort">
Bubble sort
</button>
<button type="button" id="btn-selection-sort" class="btn btn-sort">
Selection sort
</button>
<button type="button" id="btn-insertion-sort" class="btn btn-sort">
Insertion sort
</button>
<!-- <button type="button" id="btn-quick-sort" class="btn btn-sort">
Quick sort
</button> -->
<!-- <button type="button" id="btn-merge-sort" class="btn btn-sort">
Merge sort
</button> -->
</div>
</div>
<div class="bar-container" id="bar-container"></div>
<footer class="footer">
<a href="https://github.com/prtvi/sorting-visualizer" target="_blank">Check out the Git repository here</a>
</footer>
</div>
<script src="js/setup.js"></script>
<script src="js/bubbleSort.js"></script>
<script src="js/selectionSort.js"></script>
<script src="js/insertionSort.js"></script>
<!-- <script src="js/quickSort.js"></script> -->
<!-- <script src="js/mergeSort.js"></script> -->
</body>
</html>