-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (84 loc) · 5.13 KB
/
index.html
File metadata and controls
89 lines (84 loc) · 5.13 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="./assets/css/main.css" />
<title>Sorting Algorithm - Visuallizer</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<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 flex-column-container border-right">
<div class="flex-row-container">
<label class="white-text" style="margin: 0 10px 0 0">List size:</label>
<input style="width: 100px;" id="listSize" class="form-control large-height" />
</div>
<div class="flex-row-container">
<span style="margin-right: 10px" class="white-text">1</span>
<input id="listSizeSlider" type="range" min="1" max="2000" step="1" value="500" class="slider" />
<span style="margin-left: 10px" class="white-text">2000</span>
</div>
</li>
<li class="nav-item flex-column-container border-right">
<select class="custom-select large-height" style="padding-top: 4px" id="algo-selector">
<option selected>Select Sorting Algorithm</option>
</select>
</li>
<li class="nav-item flex-column-container border-right">
<div class="flex-row-container">
<label class="white-text" style="margin: 0 10px 0 0">Delay speed:</label>
<input style="width: 100px;" id="delaySpeed" class="form-control large-height" />
</div>
<div class="flex-row-container">
<span style="margin-right: 10px" class="white-text">0</span>
<input id="delaySpeedSlider" type="range" min="0" max="1000" step="50" value="0" class="slider" />
<span style="margin-left: 10px" class="white-text">1000</span>
</div>
</li>
<li class="nav-item flex-row-container">
<button type="button" id="generate-button" class="btn btn-light" style="margin-right: 20px">Generate</button>
<button type="button" id="reset-list-button" class="btn btn-light" style="margin-right: 20px" disabled>Get last unsorted list</button>
<button type="button" id="sort-button" class="btn btn-light">Sort</button>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="row" id="algo-info">
<div class="col-6">
<h4>Time complexity</h4>
Best case: <b><span id="bestCaseTimeComplex"></span></b> Average case: <b><span id="averageCaseTimeComplex"></span></b> Worst case: <b><span id="worstCaseTimeComplex"></span></b>
</div>
<div class="col-6">
<h4>Memory complexity</h4>
Worst case: <b><span id="worstCaseMemoryComplex"></span></b>
</div>
</div>
<div id="list-container">
</div>
</div>
<!-- Initiallizers -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="./assets/js/Renderer.js"></script>
<script src="./assets/js/RandomArrayGenerator.js"></script>
<script src="./assets/js/Colors.js"></script>
<!-- Algorithm -->
<script src="./assets/js/algorithms/BubbleSort.js"></script>
<script src="./assets/js/algorithms/InsertionSort.js"></script>
<script src="./assets/js/algorithms/QuickSort.js"></script>
<script src="./assets/js/algorithms/MergeSort.js"></script>
<script src="./assets/js/algorithms/SelectionSort.js"></script>
<script src="./assets/js/algorithms/HeapSort.js"></script>
<!-- Global functions -->
<script src="./assets/js/index.js"></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>
</body>
</html>