-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (33 loc) · 1.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shortest Path - Algorithm</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="./style.css" rel="stylesheet">
<link rel="icon" href="logo.ico" type="image/text">
<script src="https://cdn.jsdelivr.net/npm/p5@1.5.0/lib/p5.js"></script>
<script src="./shortestPath.js" defer></script>
<script src="./canvasContainer.js" defer></script>
</head>
<body>
<h1>Shortest Path Algorithm by using p5.js</h1>
<div id="options">
<button id="adjacencyMatrix">Graph Adjacency Matrix</button>
</div>
<div id="options">
<label for="start_node"> Source Node: </label>
<input type="number" name="total" value="4" id="start" min="0" max="17">
<label for="end_node"> End Node: </label>
<input type="number" name="total" value="11" id="end" min="0" max="17">
<label>Speed</label>
<input type="number" name="total" value="5" id="speed" min="1" max="10">
</div>
<div id="options">
<button type="button" id="findShortestPath">Find Shortest Path</button>
</div>
<div id="options">
<button type="button" id="generateShortPathTree">Show Shortest Path Tree</button>
</div>
</body>
</html>