-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
119 lines (115 loc) · 3.62 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
<!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="Sorting algorithm visualizer using D3js. It will help you to understand the algorithm. I've used swapping animation for clear understanding of the algorithm."
/>
<title>Sorting Algorithm Visualizer | Najmul H. Bappy</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.1/css/bootstrap.min.css"
integrity="sha512-T584yQ/tdRR5QwOpfvDfVQUidzfgc2339Lc8uBDtcp/wYu80d7jwBgAxbyMh0a9YM9F8N3tdErpFI8iaGx6x5g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="#">Algo Visualizer</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href=""
>Sorting Algo <span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item">
<a class="nav-link" href="./searching-algorithm/"
>Searching Algo</a
>
</li>
</ul>
</div>
</div>
</nav>
</header>
<p class="sound"><a id="sound" href="#">Sound 🎵</a></p>
<div class="container">
<h2>Sorting Algorithm Visualizer</h2>
</div>
<br />
<div class="container">
<div class="form-inline">
<div class="form-group">
<select class="form-control" id="get-algo">
<option value="bubble-sort">Bubble Sort</option>
<option value="selection-sort">Selection Sort</option>
</select>
</div>
<div class="form-group mx-sm-3">
<button class="btn btn-primary" id="sort">Sort</button>
</div>
<div class="form-group">
<button class="btn none btn-danger" id="stop">Stop</button>
</div>
</div>
<br />
<div class="row">
<div class="col-md-3">
<button class="btn btn-info" id="random-data">
Generate Random Data
</button>
</div>
<div class="col-md-3">
<label>
Speed:
<input
type="range"
id="speed"
name="speed"
min="100"
max="800"
value="300"
onchange="setSpeed()"
/>
</label>
</div>
</div>
</div>
<div class="container">
<div class="bar-chart">
<div id="chart"></div>
<hr />
</div>
</div>
<footer>
<div class="footer-text">
<p>
Made with <span class="love">❤</span> by
<a href="https://nbappy.me/">Najmul H. Bappy</a>
</p>
</div>
</footer>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="base.js"></script>
<script src="function.js"></script>
</body>
</html>