-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (38 loc) · 1.51 KB
/
index.html
File metadata and controls
43 lines (38 loc) · 1.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sorting Algorithms</title>
<link rel="stylesheet" href="src/style.css">
</head>
<body onresize="generateBlocks()">
<main class="canvas">
<h1>Sorting Algorithms</h1>
<nav>
<ul>
<li onclick="changeAlgorithm(1)">Bubble Sort</li>
<li onclick="changeAlgorithm(2)">Selection Sort</li>
<li onclick="changeAlgorithm(3)">Insertion Sort</li>
<li onclick="changeAlgorithm(4)">Quick Sort</li>
<li onclick="changeAlgorithm(5)">Merge Sort</li>
<li onclick="changeAlgorithm(6)">Heap Sort</li>
</ul>
<h2 class="algorithm-header">Bubble Sort</h2>
<button class="start" onclick="sort()">start</button>
<button class="restart" onclick="reset()">reset</button>
</nav>
<div class="data-container"></div>
<div class="speed-buttons">
<h2>SPEED</h2>
<button onclick="changeSpeed(1)">slow</button>
<button onclick="changeSpeed(2)">normal</button>
<button onclick="changeSpeed(3)">fast</button>
</div>
<div class="source-link">
<a href="https://github.com/Rodriguespn/Sorting-Algorithms-Visualization" target="_blank"><img src="src/GitHub-Mark-64px.png"></img>github repository</a>
<h5>2020 @ Pedro Rodrigues</h5>
</div>
</main>
</body>
<script src="src/index.js"></script>
</html>