-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (46 loc) · 1.68 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
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
<meta name="viewport"
content="width=device-width,initial-scale=.9"/>
<script src="sketch.js"></script>
<script src="scripts/Book.js"></script>
<script src="scripts/algorithms/AlgoBase.js"></script>
<script src="scripts/algorithms/BubbleSort.js"></script>
<script src="scripts/algorithms/QuickSort.js"></script>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<header id="header">Sorting Algorithm Visualizations</header>
<div id="container">
<section id="information">
<h1 class="heading"><u>How to Use</u></h1>
<ol class="list">
<li>
Select one of the sorting algorithms from the dropdown
menu below.
</li>
<li>
Click "Run" to watch the selected algorithm sort the array.
</li>
</ol>
<select id="algorithm">
<option value="" selected="selected">Select an Algorithm</option>
<option value="bubble">Bubble Sort</option>
<option value="quick">Quick Sort</option>
</select>
<button id="run_button">Run</button>
<h1 class="heading"><u>What the Array Represents</u></h1>
<ul class="list">
<li>
Each vertical rectangle represents the length of a book (in pages).
The book data was scraped from a website, Hamiltonbook.com. Some outliers
have been removed.
</li>
</ul>
</section>
<section id="canvas"></section>
<section id="clear"></section>
</div>
</body>
</html>