-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
executable file
·75 lines (68 loc) · 1.96 KB
/
search.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
<!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">
<link rel="stylesheet" href="style.css">
<title>Searching Visualizer || Kelompok 3</title>
</head>
<body>
<div class="navbar">
<div class="header">
<h1>Sorting and Searching Visualizer</h1>
<p>Let's make sorting and searching more fun!</p>
</div>
<div class="pages">
<a href="index.html">Sorting</a>
<a href="search.html">Searching</a>
</div>
</div>
<div class="content">
<div class="menu">
<button id="new_arr">New Array</button>
<div class="input_range">
<div class="size">
<input type="range" id="arr_size" min="5" max="100" step="1" value="60" orient="vertical">
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd"
clip-rule="evenodd">
<path
d="M0 22h1v-5h4v5h2v-10h4v10h2v-15h4v15h2v-21h4v21h1v1h-24v-1zm4-4h-2v4h2v-4zm6-5h-2v9h2v-9zm6-5h-2v14h2v-14zm6-6h-2v20h2v-20z" />
</svg>
</div>
</div>
</div>
<div class="visual">
<div class="wrap_container">
<div class="algo_name">
<p id="algo">Searching</p>
</div>
<div class="container"></div>
</div>
<div class="time">
<div class="exectime">
<p>Time Execution :</p>
<p id="timeExec">-</p>
</div>
<div class="asimtotic">
<p>Big-O Notation :</p>
<p id="notation">-</p>
</div>
</div>
</div>
<div class="options">
<div class="option_text">
<p>Searching Algorithm</p>
<span>Click a bar to start searching..</span>
<hr width="150px">
</div>
<button class="linearSearch">Linear Search</button>
<button class="binarySearch">Binary Search</button>
</div>
</div>
<!-- Script dari setiap search -->
<script src="search/script_search.js"></script>
<script src="search/linear_search.js"></script>
<script src="search/binary_search.js"></script>
</body>
</html>