-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (48 loc) · 1.95 KB
/
index.html
File metadata and controls
48 lines (48 loc) · 1.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sorting Visualization</title>
<link href="css/style.css" rel="stylesheet" />
</head>
<body>
<div id="main-container">
<div id="top-bar" class="section">
<div class="top-bar-item">
<h2>Sorting Algorithm Visualization</h2>
</div>
<div class="top-bar-item">
Algorithm name : <span id="algo-name"></span> Sort,
Delay : <span id="delay-ms"></span> ms
</div>
</div>
<div id="sorting-view" class="section"></div>
<div id="nav-bar" class="section">
<div class="nav-bar-item">
<label for="algo-options">Algorithm : </label>
<select id="algo-options" onchange="changeSort()"></select>
<label for="order-options">Order : </label>
<select id="order-options" onchange="changeOrder()"></select>
<label for="input-size">Input Size : </label>
<input type="number" id="input-size" name="input-size" placeholder="Enter input size" value="50" onchange="changeInputSize()">
<label for="delay-input">Delay : </label>
<input type="number" id="delay-input" name="delay-input" placeholder="Enter delay in ms" value="50" onchange="changeDelayTime()">
ms
</div>
<div class="nav-bar-item">
<button type="button" id="startBtn" onclick="start()">START</button>
<button type="button" id="resetBtn" onclick="reset()">RESET</button>
</div>
</div>
<audio id="sorting-sound">
<source src="assets/sample-sound.mp3" type="audio/mp3">
</audio>
</div>
</body>
<script src="js/initials.js"></script>
<script src="js/controls.js"></script>
<script src="js/algorithms/bubble-sort.js"></script>
<script src="js/algorithms/insertion-sort.js"></script>
<script src="js/algorithms/selection-sort.js"></script>
</html>