-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (53 loc) · 2.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/268cff249e.js" crossorigin="anonymous"></script>
<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=Inter+Tight:wght@300&display=swap" rel="stylesheet">
<link rel="icon" href="./images/favicon.png">
<link rel="stylesheet" href="style.css">
<title>Sorting Algorithms Visualizer</title>
</head>
<body>
<div class="container">
<div class="column" id="left_column">
<div class="buttons_container" id="buttons_container">
<button id="bubble" data-algorithm="bubble">Bubble Sort</button>
<button id="selection" data-algorithm="selection">Selection Sort</button>
<button id="insertion" data-algorithm="insertion">Insertion Sort</button>
<button id="quick" data-algorithm="quick">Quick Sort</button>
<button id="merge" data-algorithm="merge">Merge Sort</button>
<button id="heap" data-algorithm="heap">Heap Sort</button>
<button id="counting" data-algorithm="counting">Counting Sort</button>
</div>
<div class="speed_control">
<input type="range" id="sort_speed" min="1" max="5" value="1" class="speed_input">
<label for="speedRange" class="label"> Adjust here the speed! </label>
</div>
</div>
<div class="column" id="center_column">
<div class="bars_container" id="bars_container"></div>
</div>
<div class="column" id="right_column">
<div id="algorithm_description" class="description">
<p id="algorithm_description_text">Welcome to Sorting Visualizer. </br> Click on an algorithm to get started and witness the sorting process in action. Have fun exploring and learning! </p>
</div>
</div>
<footer>
Created and designed with <i class="far fa-heart"></i> by <a href="https://github.com/mttcrn" target="_blank">Caterina Motti</a>
</footer>
</div>
<script src="index.js"></script>
<script src="algorithms/bubbleSort.js"></script>
<script src="algorithms/selectionSort.js"></script>
<script src="algorithms/insertionSort.js"></script>
<script src="algorithms/quickSort.js"></script>
<script src="algorithms/mergeSort.js"></script>
<script src="algorithms/heapSort.js"></script>
<script src="algorithms/countingSort.js"></script>
</body>
</html>