-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (77 loc) · 2.79 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<title></title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;700&display=swap"
rel="stylesheet"
/>
<script src="selectionSort.js" defer></script>
<link rel="stylesheet" href="sorting.css" />
</head>
<body>
<header>
<h1 class="heading">Sorting Visualiser</h1>
<nav>
<div class="utility-div">
<button class="btn btn-new-array">New Arrays</button>
<div class="slidecontainer">
<label class="label speed-label">Speed</label>
<input
type="range"
min="0.5"
max="1"
value="0.75"
step="0.01"
class="slider"
id="speedRange"
/>
</div>
<div class="slidecontainer">
<label class="label size-label">Size</label>
<input
type="range"
min="10"
max="320"
value="20"
step="10"
class="slider"
id="sizeRange"
/>
</div>
</div>
<form class="sort-form" action="">
<select class="sort-dropdown">
<option value="bubble">Bubble</option>
<option value="selection">Selection</option>
<option value="insertion">Insertion</option>
<option value="shell">Shell</option>
<option value="heap">Heap</option>
<option value="merge">Merge</option>
<option value="quick">Quick</option>
</select>
<input class="sort-submit" type="submit" value="Run" />
</form>
<div class="btn-container">
<button class="btn btn-sort btn-quick-sort">Quick</button>
<button class="btn btn-sort btn-merge-sort">Merge</button>
<button class="btn btn-sort btn-heap-sort">Heap</button>
<button class="btn btn-sort btn-shell-sort">Shell</button>
<button class="btn btn-sort btn-insertion-sort">Insertion</button>
<button class="btn btn-sort btn-selection-sort">Selection</button>
<button class="btn btn-sort btn-bubble-sort">Bubble</button>
</div>
</nav>
</header>
<p class="info count-label">
Number of elements: <span class="element-count">0</span>
</p>
<p class="info best">Best: <span class="big-O best-span"></span></p>
<p class="info average">Avg: <span class="big-O average-span"></span></p>
<p class="info worst">Worst: <span class="big-O worst-span"></span></p>
<div id="visualiser-container"></div>
</body>
</html>