-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (76 loc) · 3.82 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
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Dumb A* path finding</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"
integrity="sha256-vK3UTo/8wHbaUn+dTQD0X6dzidqc5l7gczvH+Bnowwk=" crossorigin="anonymous" />
<link rel="stylesheet" href="./style.min.css">
</head>
<body>
<div class="container">
<div class="content" style="margin-top: 1.2rem;">
<h1 class="title has-text-white">A* Pathfinder</h1>
<p class="has-text-white">Un test per disegnare una griglia su canvas, su cui applicare A*, <span>orange: start, blue: end</span>
</p>
<hr>
<div class="container">
<div class="field is-grouped">
<div class="field" style="margin-right: 0.1rem;">
<label class="label has-text-white">Start Position</label>
<div class="control">
<input id="startPosition" class="input" type="text" placeholder="0, 0">
</div>
<p class="help has-text-white">Insert coordinates like: 'x, y'</p>
</div>
<div class="field" style="margin-right: 1rem;">
<div class="control">
<label class="label has-text-white">End Position</label>
<input id="endPosition" class="input" type="text" placeholder="0, 0">
</div>
<p class="help has-text-white">Insert coordinates like: 'x, y'</p>
</div>
<div class="control">
<label class="label has-text-white">Heursitic Function</label>
<div class="select">
<select id="heuristic">
<option value="euclide">Euclide Distance</option>
<option value="manatthan">Manatthan Distance</option>
<option value="dijikstra">Dijikstra</option>
</select>
</div>
</div>
<div class="control">
<label class="label has-text-white">Can I move only in 4 directions?</label>
<label class="checkbox has-text-white">
<input type="checkbox" id="four_axis">
Only 4-axis
</label>
</div>
</div>
<div class="field is-grouped is-grouped-right">
<div class="control">
<button class="button is-warning" onclick="save_walls()">Save Walls</button>
</div>
<div class="control">
<button class="button is-primary" onclick="load_walls()">Load Stored Walls</button>
</div>
<div class="control">
<button class="button is-danger" onclick="remove_walls()">Remove Stored Walls</button>
</div>
<div class="control">
<button class="button is-success" onclick="execute()">Find Path!</button>
</div>
</div>
</div>
</div>
<canvas width="1280" height="720" id="playground"></canvas><br>
<small style="float: right; color: white">Made with :love: by gabryon99</small>
</div>
<script src="priority-queue.min.js"></script>
<script src="bulma-toast.min.js"></script>
<script src="main.js"></script>
</body>
</html>