-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
159 lines (150 loc) · 6.24 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!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">
<title>Sorting Algorithm Visualization</title>
<meta name="description"
content="Sorting is commonly used as the introductory problem in various Computer Science classes to showcase a range of algorithmic ideas.">
<meta name="keywords" content="Sorting Bubble Select Selection Insert Insertion Merge Heap Quick">
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='./styles/index.css'>
<link rel="icon" type="image/png" href="images/header.png" />
<!--
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="favicon/site.webmanifest"> -->
</head>
<body>
<header>
<!-- <span id="navbar-collapse">➪</span>
<span id="navbar-collapse">◎</span>
<span id="navbar-collapse">❖</span> -->
<section id="navbar-collapse">
<span>⥱</span>
</section>
<div class='logo'>
<img src="images/header.png" alt="" />
<h4>Sorting Algorithm Visualization</h4>
</div>
<nav>
<!-- Main Navigation inside <header> -->
</nav>
</header>
<aside>
<section id="sidetitle">
<p>ALGORITHMS</p>
<dl>
<dt>LOGARITHMIC TIME</dd>
<!-- ~O(nLog(n))</dt> -->
<dd>Quick Sort</dd>
<dd>Merge Sort</dd>
<dd>Heap Sort</dd>
<dt>QUADRATIC TIME</dd>
<!-- ~O(n<sup>2</sup>)</dt> -->
<dd>Bubble Sort</dd>
<dd>Selection Sort</dd>
<dd>Insertion Sort</dd>
</dl>
</section>
<section id="sideinfo">
</section>
</aside>
<main>
<section id="controls">
<!-- <button class="move_up">Move Up</button>
<button class="move_down">Move Down</button>
<button class="left">Left</button>
<button class="right">Right</button> -->
<section class="controls__generate">
<ul class="controls__generate__options">
<li>Random</li>
<li>Sorted Ascending</li>
<li>Sorted Descending</li>
</ul>
<button>Generate</button>
</section>
<button class="controls__sort" disabled>Sort</button>
<div class="controls__range">
<section class="controls__range__count">
<label for="count">Total</label>
<input type="number" min="5" max="100" value="10" id="count" required />
</section>
<section class="controls__range__sortspeed">
<input type="range" min="0.01" max="100.01" value="50" id="speed">
<label for="speed"> Normal</label>
</section>
</div>
</section>
<section id="compare">
<span>⥃</span>
</section>
<div class="sortbox">
<span class="sortbox__timer">00:00:000</span>
<div class="sortbox__select">
<label for="sortType">Select algorithm </label>
<div class="sortbox__select__dropdown">
<input type="text" value="Quick Sort" id="sortType" readonly>
<section id="drop">
<span>⇩</span>
</section>
<ul>
<li>Quick Sort</li>
<li>Merge Sort</li>
<li>Heap Sort</li>
<li>Bubble Sort</li>
<li>Selection Sort</li>
<li>Insertion Sort</li>
</ul>
</div>
</div>
<ul class="sortbox__container">
</ul>
<div class="algorithm">
<section class="algorithm__title">
<span>Algorithm<span>
</section>
<span class="algorithm__tracker"></span>
<div class="algorithm__steps"></div>
</div>
</div>
</main>
<footer>
<div class="contact">
<section>
<img alt="My Github" src="images/svg/github-brands.svg" width="20" height="20">
<a href="https://github.com/evanigwilo" target="_blank"> Github</a>
</section>
<section>
<img alt="My Linkedin" src="images/svg/linkedin-brands.svg" width="20" height="20">
<a href="https://www.linkedin.com/in/evanigwilo" target="_blank"> Linkedin</a>
</section>
</div>
<div class="copyright">
<pre>© Copyright <span id="copyright_date"></span> Developed by <u>Evan Igwilo</u></pre>
</div>
<div class="reference">
<p>Reference</p>
<section>
<img alt="Wikipedia"
src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Wikipedia-logo-v2.svg/300px-Wikipedia-logo-v2.svg.png"
width="20" height="20">
<a href="https://en.wikipedia.org/wiki/Sorting_algorithm" target="_blank"> Wikipedia</a>
</section>
</div>
</footer>
<script src='scripts/utils/stopWatch.js'></script>
<script src='scripts/utils/adjustSizes.js'></script>
<script src='scripts/animationRoutines.js'></script>
<script src='scripts/boxRoutines.js'></script>
<script src='scripts/index.js'></script>
<script src='scripts/sorts/bubbleSort.js'></script>
<script src='scripts/sorts/insertionSort.js'></script>
<script src='scripts/sorts/selectionSort.js'></script>
<script src='scripts/sorts/heapSort.js'></script>
<script src='scripts/sorts/quickSort.js'></script>
<script src='scripts/sorts/mergeSort.js'></script>
</body>
</html>