-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (49 loc) · 1.24 KB
/
index.html
File metadata and controls
53 lines (49 loc) · 1.24 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<title>Adaptive Sorting Algorithm Visualization</title>
<style>
body {
background-color: rgb(6, 30, 46);
text-align: center;
font-family: sans-serif;
}
#array-container {
display: flex;
justify-content: center;
align-items: flex-end;
height: 400px;
}
.array-bar {
width: 10px;
display: flex;
justify-content: center;
align-items: flex-end;
margin-right: 15px;
}
#sorting-algorithm {
margin-top: 20px;
font-weight: bold;
color: #ffffff;
font-size: 1.5rem;
}
#time-taken {
margin-top: 10px;
color: #d7f6af;
}
</style>
</head>
<body>
<h1 style="color: #ffffff; font-size: 2rem;">"Sorting Algorithm Visualization"</h1>
<div>
<label for="array-size" style="color: #ffffff">Array Size:</label>
<input type="number" id="array-size" min="5" max="100" step="1" value="20">
<button onclick="generateRandomArray()">Generate Array</button>
<button onclick="visualizeSorting()">Visualize Sorting</button>
</div>
<div id="array-container"></div>
<div id="sorting-algorithm"></div>
<div id="time-taken"></div>
<script src="script.js"></script>
</body>
</html>