-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (74 loc) · 2.67 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Sort Visualizer</title>
<link rel="stylesheet" href="./styles.css"/>
</head>
<body>
<a href="https://github.com/prasadthx/SortVisualizer">
<img src="assets/gihub.svg" height="30rem" width="30rem" style="position: fixed;border-radius: 50%"/>
</a>
<p style="position: fixed; right: 1rem; color: white; margin-top: 0; ">
Created By:- Prasad Zore
</p>
<div id="mainBox">
<H1> Sort Visualizer </H1>
<div class="sizeSpeed">
<div>
<div style="flex:0.2; text-align:center">
<h3>Size</h3>
</div>
<div style="flex:0.8">
<input type="range" min=10 max=50 value=25 class="slider" id="myRange">
</div>
</div>
<div>
<div style="flex:0.2; text-align:center">
<h3>Speed</h3>
</div>
<div style="flex:0.8">
<input type="range" min=50 max=500 value=100 class="slider" id="sortSpeed">
</div>
</div>
</div>
<div class="FlexBox">
<div id="DataBox">
</div>
</div>
<div class="controlButtons">
<div>
<button id="haltButton" onclick="haltSort();">Halt</button>
</div>
<div>
<button id="resetButton" onclick="resetSort()">Reset</button>
</div>
</div>
<div class="sortButtons">
<div style="width: 60%; display: flex; flex-wrap: wrap; align-items: center; justify-content:space-evenly;">
<div>
<button class="sortButton" onclick="BubbleSort(barArray)">Bubble Sort</button>
</div>
<div>
<button class="sortButton" onclick="InsertionSort(barArray)">Insertion Sort</button>
</div>
<div>
<button class="sortButton" onclick="SelectionSort(barArray)">Selection Sort</button>
</div>
<div>
<button class="sortButton" onclick="MergeSort(barArray, 0, barArray.length - 1)">Merge Sort</button>
</div>
<div>
<button class="sortButton" onclick="QuickSort(barArray, 1, barArray.length - 1)">Quick Sort</button>
</div>
<div>
<button class="sortButton" onclick="ShellSort(barArray)">Shell Sort</button>
</div>
<!-- <button onclick="CountingSort(barArray)">Counting Sort</button>-->
</div>
</div>
</div>
<script src="./script.js"></script>
</body>
</html>