-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (90 loc) · 3.05 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
<!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" />
<meta
name="description"
content="Visualize babbla sort like never before!"
/>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.0/css/all.css"
integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="./logo.png" type="image/x-icon" />
</head>
<title>Sorting Visualizer</title>
<body class="m-3 m-md-4 m-sm-4 bg-dark">
<main class="">
<div class="controls py-4">
<div class="settings mt-2 mb-4 row">
<div class="speed-selection text-center col-lg-6 mb-4">
<label for="speed-range" class="form-label text-light"
>Animation Speed
<span
class="badge badge-pill badge-secondary text-light"
id="speed-val"
></span>
</label>
<br />
<input
type="range"
class="form-range"
min="100"
max="500"
value="300"
id="speed-range"
/>
</div>
<div class="size-selection text-center col-lg-6 mb-4">
<label for="speed-range" class="form-label text-light"
>Array Size
<span
class="badge badge-pill badge-secondary text-light"
id="size-val"
></span>
</label>
<br />
<input
type="range"
class="form-range"
min="5"
max="25"
value="15"
id="size-range"
/>
</div>
</div>
<div class="w-100 buttons mb-0 text-center">
<button class="btn btn-sm btn-secondary mb-2" id="randomise">
Generate Array
</button>
<button class="btn btn-sm btn-success mb-2" id="bubble-sort" disabled>
Bubble Sort
</button>
</div>
</div>
<div class="presentation-area">
<h4 class="text-center mb-3" id="arr-header">Array</h4>
<div class="array"></div>
</div>
</main>
</body>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<!-- Custom JavaScript -->
<script src="./app.js"></script>
</html>