-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (55 loc) · 1.96 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
<!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="shortcut icon" type="image/x-icon" href="sort_favicon.ico" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1 class="nav-heading">SORTING VISUALISER</h1>
<nav>
<div class="header_right">
<div class="array-inputs">
<div>
<p>Size of the array:</p>
<input id="a_size" type="range" min="20" max="150" step="1" value="80" />
</div>
<div>
<p>Speed of the algorithm:</p>
<input id="a_speed" type="range" min="1" max="5" step="1" value="4"/>
</div>
<div><button id="a_generate">Generate New Array!</button></div>
</div>
<div class="algos">
<button>Bubble</button>
<button>Selection</button>
<button>Insertion</button>
<button>Merge</button>
<button>Quick</button>
</div>
</div>
</nav>
</header>
<section>
<div id="Info_Cont1">
<h2>Steps to use Sorting Visualizer:- </h2>
<br>
<li>Use the slider to set size of array.</li>
<li>Use the slider to set speed of sorting.</li>
<li>Generate New Array button can be used to perform sorting on a new input.</li>
<li>Use the 5 buttons labelled with the names of sorting algorithms to sort the array as per that sorting algorithm.</li>
</div>
<div id="array_container"></div>
</section>
<script src="main.js"></script>
<script src="visualizations.js"></script>
<script src="bubble_sort.js"></script>
<script src="selection_sort.js"></script>
<script src="insertion_sort.js"></script>
<script src="merge_sort.js"></script>
<script src="quick_sort.js"></script>
</body>
</html>