|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
7 | 7 | <meta |
8 | 8 | name="description" |
9 | | - 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." |
| 9 | + content="Algorithm visualizer using D3js. It will help you to understand the algorithm. I've used swapping animation for clear understanding of the algorithm." |
| 10 | + /> |
| 11 | + <title>Algorithm Visualizer | Najmul H. Bappy</title> |
| 12 | + <link |
| 13 | + rel="stylesheet" |
| 14 | + href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.1/css/bootstrap.min.css" |
| 15 | + integrity="sha512-T584yQ/tdRR5QwOpfvDfVQUidzfgc2339Lc8uBDtcp/wYu80d7jwBgAxbyMh0a9YM9F8N3tdErpFI8iaGx6x5g==" |
| 16 | + crossorigin="anonymous" |
| 17 | + referrerpolicy="no-referrer" |
10 | 18 | /> |
11 | | - <title>Sorting Algorithm Visualizer | Najmul H. Bappy</title> |
12 | 19 | <link rel="stylesheet" href="style.css" /> |
13 | 20 | </head> |
14 | 21 | <body> |
| 22 | + <header> |
| 23 | + <nav class="navbar navbar-expand-lg navbar-light bg-light"> |
| 24 | + <div class="container"> |
| 25 | + <a class="navbar-brand" href="/">Algo Visualizer</a> |
| 26 | + <button |
| 27 | + class="navbar-toggler" |
| 28 | + type="button" |
| 29 | + data-toggle="collapse" |
| 30 | + data-target="#navbarNav" |
| 31 | + aria-controls="navbarNav" |
| 32 | + aria-expanded="false" |
| 33 | + aria-label="Toggle navigation" |
| 34 | + > |
| 35 | + <span class="navbar-toggler-icon"></span> |
| 36 | + </button> |
| 37 | + <div class="collapse navbar-collapse" id="navbarNav"> |
| 38 | + <ul class="navbar-nav"> |
| 39 | + <li class="nav-item"> |
| 40 | + <a class="nav-link" href="/">Sorting Algo </a> |
| 41 | + </li> |
| 42 | + <li class="nav-item"> |
| 43 | + <a class="nav-link active" href="#">Searching Algo</a> |
| 44 | + </li> |
| 45 | + </ul> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + </nav> |
| 49 | + </header> |
15 | 50 | <p class="sound"><a id="sound" href="#">Sound 🎵</a></p> |
16 | | - <h1>Sorting Algorithm Visualizer</h1> |
17 | | - <button id="random-data">Generate Random Data</button> |
18 | | - <div class="radio"> |
19 | | - <form action=""> |
20 | | - <label |
21 | | - ><input |
22 | | - type="radio" |
23 | | - name="algo-name" |
24 | | - value="binary-search" |
25 | | - checked |
26 | | - />Binary Search</label |
27 | | - > |
28 | | - <label> |
29 | | - <input type="radio" name="algo-name" value="linear-search" />Linear |
30 | | - Search</label |
31 | | - > |
32 | | - <!--- <label> |
33 | | - <input type="radio" name="algo-name" value="merge-sort" />Merge |
34 | | - Sort</label |
35 | | - > ---> |
| 51 | + <div class="container"> |
| 52 | + <h2>Searching Algorithm Visualizer</h2> |
| 53 | + </div> |
36 | 54 |
|
37 | | - <br /> |
38 | | - <br /> |
39 | | - <label> |
40 | | - Speed: |
| 55 | + <br /> |
| 56 | + <div class="container"> |
| 57 | + <div class="form-inline"> |
| 58 | + <div class="form-group"> |
| 59 | + <select class="form-control" id="get-algo"> |
| 60 | + <option value="binary-search">Binary Search</option> |
| 61 | + <option value="linear-search">Linear Search</option> |
| 62 | + </select> |
| 63 | + </div> |
| 64 | + <div class="form-group mx-sm-3"> |
| 65 | + <label for="inputPassword2" class="sr-only">Password</label> |
41 | 66 | <input |
42 | | - type="range" |
43 | | - id="speed" |
44 | | - name="speed" |
45 | | - min="100" |
46 | | - max="800" |
47 | | - value="300" |
48 | | - onchange="setSpeed()" |
| 67 | + type="text" |
| 68 | + class="form-control" |
| 69 | + id="targetValue" |
| 70 | + placeholder="Enter an element" |
49 | 71 | /> |
50 | | - </label> |
51 | | - <br /><br /> |
52 | | - <label for=""> |
53 | | - Search For |
54 | | - <input class="input-element" id="targetValue" type="text" /> |
55 | | - </label> |
56 | | - </form> |
57 | | - <button id="search">Search</button> |
| 72 | + </div> |
| 73 | + <button class="btn btn-primary" id="search">Search</button> |
| 74 | + </div> |
| 75 | + |
| 76 | + <br /> |
| 77 | + |
| 78 | + <div class="row"> |
| 79 | + <div class="col-md-3"> |
| 80 | + <button class="btn btn-info" id="random-data"> |
| 81 | + Generate Random Data |
| 82 | + </button> |
| 83 | + </div> |
| 84 | + <div class="col-md-3"> |
| 85 | + <label> |
| 86 | + Speed: |
| 87 | + <input |
| 88 | + type="range" |
| 89 | + id="speed" |
| 90 | + name="speed" |
| 91 | + min="100" |
| 92 | + max="800" |
| 93 | + value="300" |
| 94 | + onchange="setSpeed()" |
| 95 | + /> |
| 96 | + </label> |
| 97 | + </div> |
| 98 | + </div> |
58 | 99 | </div> |
59 | 100 | <div class="container"> |
60 | 101 | <div class="bar-chart"> |
|
0 commit comments