-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (45 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sorting Visualiser</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Sorting Visualiser</h1>
<div class="button-container">
<button id="toggle-sound"> Sound On</button>
<button id="toggle-mode-btn">Dark Mode</button>
<button onClick="reset()">Randomise</button>
<div id="size-bars">Size</div>
<input type="range" min=""0 max="100" id="change-size-bars">
<div id="speed-bars">Speed</div>
<input type="range" min=""0 max="100" id="change-speed-bars">
<div class="dropdown" id="sort-dropdown">
<div class="select">
<span class="selected">Choose</span>
<div class="caret"></div>
<ul class="menu">
<li onClick="playBubbleSort()">Bubble Sort</li>
<li onClick="playSelectionSort()">Selection Sort</li>
<li onClick="playInsertionSort()">Insertion Sort</li>
<li onClick="playShellSort()">Shell Sort</li>
<li onClick="playGnomeSort()">Gnome Sort</li>
<li onClick="playCockSort()">Cock Sort</li>
</ul>
</div>
</div>
</div>
<hr>
<div id="container"></div>
<script src="run.js"></script>
<script src="handle-animation.js"></script>
<script src="bubble-sort.js"></script>
<script src="selection-sort.js"></script>
<script src="insertion-sort.js"></script>
<script src="shell-sort.js"></script>
<script src="gnome-sort.js"></script>
<script src="cocktail-shaker-sort.js"></script>
</body>
</html>