-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (35 loc) · 1.04 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
<html>
<head>
<title>
Visualizing sorting algorithms
</title>
<script type="text/javascript" src="./sorting.js"></script>
<style type="text/css">
html, body {
margin: 0px;
}
canvas {
display: block;
background-color: black;
border: 2px solid orange;
color: g
}
</style>
</head>
<body>
<canvas id="canvas" height="600" width="1300">
</canvas>
<input type="text" placeholder="enter the size of the array to be sorted" id="arr">
<button id="selection">selectionSort</button>
<button id="bubble">bubbleSort</button>
<button id="insertion">insertionSort</button>
<button id="quick">quickSort</button>
<input type="text" placeholder="enter speed in millisec" id="speed">
<script>
window.onload = (ev) => {
var visualizer = new SortingVisualizer();
visualizer.init();
}
</script>
</body>
</html>