-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (53 loc) · 2.49 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Sorting Algorithms Visualizer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="google-site-verification" content="SRoJf07saWyGoF6ifL02JLwUqA2mosfQa8IpTVW0jHg" />
<script src="https://cdn.jsdelivr.net/npm/p5@1.5.0/lib/p5.js"></script>
<script src="scripts/algorithms.js"></script>
<script src="scripts/sketch.js"></script>
<script src="scripts/eventListeners.js"></script>
<script src="scripts/helpers.js"></script>
<link rel="stylesheet" href="styles/style.css">
<link rel="icon" href="favicon.png">
</head>
<body>
<h1>Sorting Algorithms Visualizer</h1>
<form id="firstButtonsContainer">
<div class="sortingOption">
<input type="radio" name="algorithm" id="bubbleSortButton" checked>
<label for="bubbleSortButton" unselectable>Bubble Sort</label>
</div>
<div class="sortingOption">
<input type="radio" name="algorithm" id="selectionSortButton">
<label for="selectionSortButton" unselectable>Selection Sort</label>
</div>
<div class="sortingOption">
<input type="radio" name="algorithm" id="insertionSortButton">
<label for="insertionSortButton" unselectable>Insertion Sort</label>
</div>
<div class="sortingOption">
<input type="radio" name="algorithm" id="mergeSortButton">
<label for="mergeSortButton" unselectable>Merge Sort</label>
</div>
<div class="sortingOption">
<input type="radio" name="algorithm" id="quickSortButton">
<label for="quickSortButton" unselectable>Quick Sort</label>
</div>
<input type="button" class="button" id="changeArrayButton" value="Change Array">
<input type="button" class="button" id="sortButton" value="Sort">
</form>
<div id="secondButtonsContainer">
<input type="range" id="arraySizeRange" min="4" max="100" value="48">
<input type="range" id="sortingSpeedRange" min="1" max="70" value="35">
<input type="button" class="button" id="pauseButton" value="Pause" disabled="true">
<p id="sizeText">Array Size</p>
<p id="speedText">Sorting Speed</p>
</div>
<div id="canvasContainer"></div>
<hr>
<p id="descriptionText" style="text-align: center; opacity: 0.6;">Sort the array by selecting next rectangles to be swapped</p>
</body>
</html>