-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
178 lines (171 loc) · 6.03 KB
/
index.html
File metadata and controls
178 lines (171 loc) · 6.03 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Algorithm visualizer - by Mahim</title>
<link
rel="shortcut icon"
href="./assets/img/bar-chart-2.png"
type="image/x-icon"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link rel="stylesheet" href="css/style.css" />
<!-- Particles.js CDN -->
<script src="js/lib/particles.min.js"></script>
</head>
<body>
<!-- Add a div for the particles.js background -->
<div
id="particles-js"
style="position: absolute; width: 100vw; height: 100vh; z-index: -1"
></div>
<header class="header">
<div
style="
display: flex;
justify-content: space-between;
align-items: center;
"
>
<div class="logo" style="margin-right: 2rem">
<img
width="50"
height="50"
src="./assets/img/bar-chart-2.png"
alt=""
srcset=""
/>
</div>
<div id="inputButton">
<div>
<input
style="width: 600px"
type="text"
id="dataset-size"
class="ipt"
placeholder="Enter Array value comma separated (min 5 and value must within 5-500)"
onblur="handleDatasetSizeChange()"
/>
<input
type="number"
id="search-number"
class="ipt"
placeholder="Enter number for search"
onblur="handleSearchNumberChange()"
/>
</div>
<button
id="generate-array"
class="btn"
onclick="generateArray()"
>
Generate Array
</button>
</div>
</div>
<div>
<div class="dropdown">
<button class="btn">Algorithms</button>
<div class="dropdown-content">
<button
id="linear-search"
class="btn"
onclick="doLinearSearch()"
>
Linear Search
</button>
<button
id="binary-search"
class="btn"
onclick="doBinarySearch()"
>
Binary Search
</button>
<button
id="bubble-sort"
class="btn"
onclick="doBubbleSort()"
>
Bubble Sort
</button>
<button
id="selection-sort"
class="btn"
onclick="doSelectionSort()"
>
Selection Sort
</button>
<button
id="insertion-sort"
class="btn"
onclick="doInsertionSort()"
>
Insertion Sort
</button>
<button
id="merge-sort"
class="btn"
onclick="doMergeSort()"
>
Merge Sort
</button>
<button
id="quick-sort"
class="btn"
onclick="doQuickSort()"
>
Quick Sort
</button>
</div>
</div>
</div>
</header>
<div class="line-container-parent">
<div id="lines-container"></div>
</div>
<div id="toast">
<div id="toast-img">
<i
id="toast-icon"
class="fa fa-2x fa-check-circle"
aria-hidden="true"
style="color: #d0f0c0"
></i>
</div>
<div id="toast-desc"></div>
</div>
<!-- show searching or sorting results as a text -->
<div id="result-container">
<h2 id="result"></h2>
<h4 id="execution-time"></h4>
</div>
<!-- list to show all execution time with their name -->
<ul id="execution-time-list"></ul>
<h1 style="text-align: center; margin-bottom: 20px">
Algorithm visualizer
</h1>
<footer
style="
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 18px;
"
>
<p>
Develop by
<span style="color: #000; font-weight: bold"
>Mahim & Fazlul</span
>
</p>
</footer>
<script type="module" src="js/main.js"></script>
<!-- Initialize Particles.js -->
<script src="js/particle-main.js"></script>
</body>
</html>