-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
142 lines (133 loc) · 4.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="" content="" />
<!-- Bootstrap CSS -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl"
crossorigin="anonymous"
/>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap"
rel="stylesheet"
/>
<!-- External CSS -->
<link rel="stylesheet" href="style.css" />
<title>Sorting Visualizer</title>
<!-- External JS -->
<script async defer src="index.js"></script>
</head>
<body>
<!-- Navigation Bar -->
<div>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand appName header" href="#">
<p id="animateText">Visualize Sorting</p>
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div>
<li>
<label for="arrayRange" class="form-label text-white fw-bold"
>Array Size</label
>
<input
type="range"
min="2"
max="40"
value="15"
id="arrayRange"
onchange="arraySizeChange(this.value)"
/>
</li>
<li>
<label for="speedRange" class="form-label text-white fw-bold"
>Speed</label
>
<input
type="range"
min="10"
max="200"
value="50"
id="speedRange"
onchange="speedChange(this.value)"
/>
</li>
</div>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav navItemsList">
<li class="nav-item">
<a
class="nav-link newArray toChange"
aria-current="page"
href="#"
>Generate New Array</a
>
</li>
<li class="nav-item">
<a
class="nav-link newArray toChange"
aria-current="page"
href="#"
id="reset"
>RESET</a
>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle active disabled"
href="#"
id="navbarDropdownMenuLink"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>Bubble Sort</a
>
<ul
class="dropdown-menu navDropdown"
aria-labelledby="navbarDropdownMenuLink"
>
<li><a class="dropdown-item" href="#">Insertion Sort</a></li>
<li><a class="dropdown-item" href="#">Selection Sort</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
<!-- Bars -->
<div class="barsCon"></div>
<!-- Sorting Button -->
<div>
<button
class="offset-8 my-5 btn btn-outline-light rounded-pill btn-lg"
id="sortBtn"
>
Sort
</button>
</div>
<!-- Bootstrap JS -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
crossorigin="anonymous"
></script>
</body>
</html>