-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (67 loc) · 2.39 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
<!DOCTYPE html>
<html>
<head>
<title>Webres Routing Demonstration</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/lib/overlay.css">
<link rel="stylesheet" type="text/css" href="js/lib/select2/select2.css">
<script type="text/javascript" src="js/lib/jQuery.js"></script>
<script type="text/javascript" src="js/lib/jQuery_ext.js"></script>
<script type="text/javascript" src="js/lib/handlebars.js"></script>
<script type="text/javascript" src="js/lib/overlay.js"></script>
<script type="text/javascript" src="js/lib/select2/select2.js"></script>
<script type="text/javascript" src="js/geo.js"></script>
<script type="text/javascript" src="js/fw.js"></script>
<script type="text/javascript" src="js/ui.js"></script>
<script id="nodeTemplate" type="text/x-handlebars-template">
<header>Create New Node</header>
<form name="node">
<ul id="errors"></ul>
<label for="id">Unique ID</label>
<input name="id" type="text"/>
<label>Connected nodes</label>
<select name="nodes[]" multiple>
{{#each .}}
<option value="{{id}}">{{id}}</option>
{{/each}}
</select>
<input type="submit" value="Add Node"/>
</form>
</script>
<script id="hazardTemplate" type="text/x-handlebars-template">
<header>Create New Hazard</header>
<a class="close-link">Close</a>
<form name="hazard">
<ul id="errors"></ul>
<label for="id">Unique ID</label>
<input name="id" type="text"/>
<label for="radius">Radius</label>
<input name="radius" type="number"/>
<label for="weighting">Weighting</label>
<input name="weighting" type="text"/>
<label for="increments">Increments</label>
<input name="increments" type="number"/>
<label for="degradation">Degradation</label>
<input name="degradation" type="text"/>
<input type="submit" value="Add Hazard"/>
</form>
</script>
<script id="journeyTemplate" type="text/x-handlebars-template">
<p>Shortest Distance: {{distance}}</p>
<p>{{#each nodes}} {{this}} {{/each}}</p>
</script>
</head>
<body>
<header>Webres Routing Demonstration</header>
<nav>
<button id="node">Add Node</button>
<button id="hazard">Add Hazard</button>
</nav>
<div id="journey"></div>
<canvas id="mycanvas" height="600px" width="1200px">
</canvas>
<footer>
Copyright © Alex Reynolds, Ben Mcqueen & Massoud Fooroshani (2014)
</footer>
</body>
</html>