-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsortingVisualizer.html
More file actions
30 lines (26 loc) · 1.1 KB
/
sortingVisualizer.html
File metadata and controls
30 lines (26 loc) · 1.1 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
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/addons/p5.dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/addons/p5.sound.min.js"></script>
<script src="sorting.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="sortingVisualizer.css">
<meta charset="utf-8" />
</head>
<body>
<h1>Sorting Visualizer</h1>
<!--Set of buttons to choose sorting method-->
<div class = "buttons">
<button class="button" id="regenerate">Regenerate</button>
<button class="button" id="bubbleSort">Bubble Sort</button>
<button class="button" id="quickSort">Quick Sort</button>
<button class="button" id="mergeSort">Merge Sort</button>
<div>
<!--Slider to change the number of values in the array to sort-->
<input type="range" min="5" max="40" value="10" class="slider" id="myRange">
</div>
</div>
<script src="drawing.js"></script>
</body>
</html>