-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (76 loc) · 4.51 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Sorting Visualizer</title>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<!-- <link href="https://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css" rel="stylesheet" /> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="style.css" />
<link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'>
</head>
<body style="background-color: black"> <!-- style="background-color: #485063" -->
<canvas id="Matrix"></canvas>
<div class="innerDiv">
<div class="topbar">
Sort Visualizer
</div>
<nav class="navbar navbar-expand-xl navbar-dark">
<div class="container-fluid">
<!-- <a class="navbar-brand" href="#">Sort Visualizer</a> -->
<span style="color:white; display:flex;"> Size:
<input type="range" autocomplete="off" id="arrSize" value="75" max="150">
</span>
<span style="color:white; display:flex;"> Speed:
<input type="range" autocomplete="off" id="speed" value="795" step=5 min="200" max="795">
</span>
<!-- Add a "hamburger". Remember to add jQuery and JavaScript CDNs -->
<!-- at the bottom of the body section for this to work -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-controls="bs-example-navbar-collapse-1" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Add a link to the Signup page -->
<div class="collapse navbar-collapse justify-content-end" id="bs-example-navbar-collapse-1">
<div class="navbar-nav">
<div class="form-check form-switch">
<label style="color:white" class="form-check-label" for="sound">Sound </label>
<input class="form-check-input" type="checkbox" autocomplete="off" id="sound" name="darkmode" value="no">
</div>
<button type="button" class="btn btn-dark insertionSort">InsertionSort</button>
<button type="button" class="btn btn-dark mergeSort">MergeSort</button>
<button type="button" class="btn btn-dark quickSort">QuickSort</button>
<button type="button" class="btn btn-dark heapSort">HeapSort</button>
<button type="button" class="btn btn-dark radixSort">RadixSort</button>
<!-- <button type="button" class="btn btn-outline-primary bucketSort">BucketSort</button> -->
<button type="button" class="btn btn-dark parQuickSort">Parallel QuickSort</button>
</div>
</div><!-- /.navbar-collapse -->
</div>
</nav>
<div class="container">
<div class="box"></div>
</div>
<div class="parWarn">
JavaScript isn't [really] capable of Multi-Thread Execution.<br>
This is simply a visual trick. No Sound.
</div>
<button type="button" id="newArray" class="btn btn-dark arrayGen">New Array</button>
<button type="button" id="hiDupArray" class="btn btn-dark arrayGen">Hi-Dup Array</button>
<button type="button" id="nearlySortedArray" class="btn btn-dark arrayGen">Nearly Sorted Array</button>
</div>
<!-- Need to have JQuery and Javascript for DropDown Actions to work -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<!-- <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.11.2/jquery-ui.js"></script> -->
<!-- Latest compiled and minified JavaScript -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="setup.js" type="text/javascript"></script>
<script src="sortAlgos/insertionSort.js"></script>
<script src="sortAlgos/quickSort.js"></script>
<script src="sortAlgos/mergeSort.js"></script>
<script src="sortAlgos/heapSort.js"></script>
<script src="sortAlgos/radixSort.js"></script>
<script src="sortAlgos/parQuickSort.js"></script>
</body>
</html>