-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (49 loc) · 1.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Sorting Visualization</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 90vh;
margin: 0;
}
#title {
font-size: 24px;
margin-top: 40px;
margin-bottom: 200px;
}
#container {
margin-top: 20px;
}
#button-container {
margin-top: auto;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div id="title">Algorithm Visualizer</div>
<div id="container"></div>
<div id="button-container">
<button onclick="generateRandomArray()">Generate Random Array</button>
<button onclick="bubbleSort()">Bubble Sort</button>
<button onclick="mergeSort()">Merge Sort</button>
<button onclick="gnomeSort()">Gnome Sort</button>
<button onclick="bucketSort()">Bucket Sort</button>
<button onclick="stoogeSort()">Stooge Sort</button>
<button onclick="combSort()">Comb Sort</button>
<button onclick="selectionSort()">Selection Sort</button>
<button onclick="quickSort()">Quick Sort</button>
<button onclick="heapSort()">Heap Sort</button>
<button onclick="shellSort()">Shell Sort</button>
</div>
<script src="scripts.js"></script>
</body>
</html>