-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
116 lines (113 loc) · 4.93 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
<html>
<head>
<title>Navigate To Mars Rover</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link id="cssTheme" rel="stylesheet" href="public/styling/cssBasic.css"/>
</head>
<body>
<div id='navbarDiv'>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a id="refreshButton" class="navbar-brand" href="#">Navigate To Mars Rover</a>
</div>
<ul class="nav navbar-nav">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Algorithms
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li id='startButtonDijkstra'><a href="#">Dijkstra's Algorithm</a></li>
<li id='startButtonAStar2'><a href="#">A* Search</a></li>
<li id='startButtonGreedy'><a href="#">Best-first Search</a></li>
<li id='startButtonBFS'><a href="#">Breadth-first Search</a></li>
<li id='startButtonDFS'><a href="#">Depth-first Search</a></li>
<li id='startButtonAStar'><a href="#"></a></li>
<li id='startButtonAStar3'><a href="#"></a></li>
<li id='startButtonBidirectional'><a href="#"></a></li>
</ul>
</li>
<li class="dropdown">
<ul class="dropdown-menu">
<li id='startButtonCreateMazeTwo'><a href="#"></a></li>
<li id='startButtonCreateMazeThree'><a href="#"></a></li>
<li id='startButtonCreateMazeFour'><a href="#"></a></li>
<li id='startButtonCreateMazeOne'><a href="#"></a></li>
<li id='startButtonCreateMazeWeights'><a href="#"></a></li>
<li id='startStairDemonstration'><a href="#"></a></li>
</ul>
</li>
<li id='startButtonAddObject'><a href="#">Add Bomb</a></li>
<li id='startButtonStart'><button id="actualStartButton" class="btn btn-default navbar-btn" type="button">Resultant Path</button></li>
<li id='startButtonClearWalls'><a href="#">Clear Walls</a></li>
<li id='startButtonClearPath'><a href="#">Clear Path</a></li>
<li id='startButtonClearBoard'><a href="#"></a></li>
<li class="dropdown">
<a id="adjustSpeed" class="dropdown-toggle" data-toggle="dropdown" href="#">Speed: Fast
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li id='adjustFast'><a href="#">Fast</a></li>
<li id='adjustAverage'><a href="#">Average</a></li>
<li id='adjustSlow'><a href="#">Slow</a></li>
</ul>
</li>
</ul>
</div>
</nav>
</div>
<div id="tutorial">
<button id="skipButton" class="btn btn-default navbar-btn" type="button">Click here to Start Our journey :)</button>
</div>
<div id='mainGrid'>
<div id='mainText'>
<ul>
<li>
<div class="start"></div>Start Node</li>
<li>
<div class="target"></div>Target Node</li>
<li id="bombLegend">
<div class="object"></div>Bomb Node</li>
<li id="weightLegend">
<li>
<div class="unvisited"></div>Unvisited Node</li>
<li>
<div class="visited"></div><div class="visitedobject"></div>Visited Nodes</li>
<li>
<div class="shortest-path"></div>Shortest-path Node</li>
<li>
<div class="wall"></div>Wall Node</li>
</ul>
</div>
<div id="algorithmDescriptor"></div>
<table id='board'/>
</div>
<div id="draw_area"></div>
<script>
function myFunction() {
var x = document.getElementById("instructions_panel");
x.style.display = "none";
}
</script>
<div id="instructions_panel" class="panel">
<header>
<div style="display: flex">
<div style="width: 90%;">
<h2 class="header_title">Instructions</h2>
</div>
<div style="width: 10%">
<span class="hide_instructions" onclick="myFunction()">hide</span>
</div>
</div>
</header>
1.Click within the <span class="white">white</span> grid and drag your mouse to draw obstacles. <br>
2.Drag the arrow to set the start position. <br>
3.Drag the target to set the end position. <br>
4.Choose an algorithm from algorithm panel. <br>
5.You can also add bomb so that algorithm search for it first. <br>
6.Click the Resultant path to start the animation.<br>
7.we can drag nodes even after algorithm has finished to instantly see different paths.
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src='public/browser/bundle.js'></script>
</html>