-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
64 lines (60 loc) · 2.05 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
<!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="index.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Sonsie+One&family=WindSong:wght@400;500&display=swap"
rel="stylesheet">
</head>
<nav>
<div>
<button onclick="createArrayAndSort()" class="button">Generate New Array</button>
</div>
<div>
<label for="sizeInput">
Size
</label>
<input type="range" min="2" max="70" value="23" id="sizeInput">
<span id="size"></span>
</div>
<div>
<label for="speedInput">
Speed
</label>
<input type="range" min="10" max="1000" value="200" id="speedInput">
<span id="speed"></span>
</div>
<div>
<button onclick="bubbleSort()" class="button"> Bubble Sort </button>
</div>
<div>
<button onclick="insertionSort()" class="button"> Insertion Sort </button>
</div>
<div>
<button onclick="selectionSort()" class="button"> Selection Sort </button>
</div>
<div>
<button onclick="mergeSort()" class="button"> Merge Sort </button>
</div>
<div>
<button onclick="quickSort()" class="button"> Quick Sort </button>
</div>
</nav>
<body>
<div class="container"></div>
<script src="index.js"></script>
<script src="Utils/sleep.js"></script>
<script src="Utils/buttonDisable.js"></script>
<script src="Utils/toast.js"></script>
<script src="Utils/swap.js"></script>
<script src="SortingAlgorithm/bubbleSort.js"></script>
<script src="SortingAlgorithm/insertionSort.js"></script>
<script src="SortingAlgorithm/selectionSort.js"></script>
<script src="SortingAlgorithm/mergeSort.js"></script>
<script src="SortingAlgorithm/quickSort.js"></script>
</body>
</html>