-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
71 lines (61 loc) · 3.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sorting Visualizer</title>
<link rel="icon" href="chart-bar.svg" type = "image/x-icon">
<script src="https://kit.fontawesome.com/3a74272c7d.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-steel">
<i class="fas fa-chart-bar" style="font-size: 30px;color: white"></i>
<a class="navbar-brand" href="#">Sorting Visualizer</a>
<button id="start" type="button" class="btn btn-warning">Start Sorting</button>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" id="generateArray">Generate Random Array</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Select a Sorting Algorithm
</a>
<div class="dropdown-menu " aria-labelledby="navbarDropdown">
<h6 class="dropdown-header">O(n<sup>2</sup>) time complexity</h6>
<a class="dropdown-item" id='bubble'>Bubble Sort</a>
<a class="dropdown-item" id='selection'>Selection Sort</a>
<a class="dropdown-item" id='insertion'>Insertion Sort</a>
<div class="dropdown-divider"></div>
<h6 class="dropdown-header">O(nlogn) time complexity</h6>
<a class="dropdown-item" id='merge'>Merge Sort</a>
<a class="dropdown-item" id='quick'>Quick Sort</a>
<a class="dropdown-item" id='heap'>Heap Sort</a>
</div>
</li>
</ul>
<span class="navbar-text">
Sort Speed:
<input id="sortSpeed" type="range" min="0" max="9" value="5" >
Array Size:
<input id="arraySize" type="range" min="0" max="6" value="3" >
</span>
</div>
</nav>
<div class="container" style="margin-top: 24px; margin-bottom: 124px;">
<div class="row">
</div>
</div>
<div class="container" id="main-container">
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="dist/bundle.js"></script>
</body>
</html>