-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (61 loc) · 2.41 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
<html>
<head>
<title>Introduction to A* Workspace</title>
<link rel="stylesheet" type="text/css" href="style.css" >
<!--JSX Graph https://jsxgraph.org/docs/index.html-->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.7/jsxgraph.css" />
</head>
<body>
<h1>A* Workspace</h1>
<h3>Matthew Graham, CAP5605</h3>
<p class="instructions">
Manipulate the controls, then press GO. Try dragging the Start and Goal points around the map! For best results, use Google Chrome.
</p>
<p id="message"></p>
<div class="container">
<div class="card half">
<div id="jxgbox" class="jxgbox" style="width:400px; height: 400px;">
</div>
</div>
<div class="container half controls">
<div class="card">
<h2>Map</h2>
<!-- ADD MAPS HERE TO BE ABLE TO SELECT THEM-->
<select id="mapName" name="mapName">
<option value="assignment1" >Assignment 1</option>
<option value="assignment2" selected="true">Assignment 2</option>
<option value="simple">Simple</option>
<option value="grid">Grid</option>
</select>
<!--
<P>
<label for="obSize">Obstacle Size</label><BR>
<input type="range" id="obSize" name="obSize" min="1" max="10" step="0.5">
<P>
<label for="obDensity">Obstacle Density</label><BR>
<input type="range" id="obDensity" name="obDensity" min="10" max="40">-->
</div>
<div class="card">
<h2>Algorithm</h2>
<label for="speed">Speed</label><BR>
<input type="range" id="speed" name="speed" min="0" max="100" value="100">
<P>
<h3>Options</h3>
<input type="checkbox" id="isConstrained" name="isConstrained">
<label for="isConstrained">Constrain</label>
<input type="hidden" id="constraint" name="constraint" value="0">
<P>
<button id="apply">Go</button>
</div>
</div>
</div>
<!-- THIRD-PARTY DEPENDENCIES -->
<script type="text/javascript" charset="UTF-8" src="closure-library/closure/goog/base.js"></script>
<script type="text/javascript" charset="UTF-8" src="https://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.7/jsxgraphcore.js"></script>
<!-- ORIGINAL CODE -->
<script type="text/javascript" charset="UTF-8" src="map.js"></script>
<script type="text/javascript" charset="UTF-8" src="element.js"></script>
<script type="text/javascript" charset="UTF-8" src="astar.js"></script>
<script type="text/javascript" charset="UTF-8" src="driver.js"></script>
</body>
</html>