-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (31 loc) · 1.58 KB
/
index.html
File metadata and controls
34 lines (31 loc) · 1.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Algorithm visualizer | Sonu Tiwari</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h1>Algorithm visualizer</h1>
<h3>Linear Search, Binary Search, Bubble Sort, Selection Sort</h3>
<div class="controls">
<input type="number" id="dataset-size" class="ipt" min="5" placeholder="Dataset size" onblur="handleDatasetSizeChange()"/>
<input type="number" id="search-number" class="ipt" min="5" placeholder="Enter number for search" onblur="handleSearchNumberChange()"/>
<button id="generate-array" class="btn" onclick="generateArray()">Generate Array</button>
<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>
</div>
<div id="lines-container">
</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>
<script src="./animations.js"></script>
<script src="./index.js"></script>
</body>
</html>