-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
59 lines (59 loc) · 1.68 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
<!DOCTYPE html>
<html lang="en">
<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" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="./style.css" />
<title>Dijkstra Solver</title>
</head>
<body>
<header>
<div class="title">
<a href="index.html">Dijkstra Solver</a>
<a href="./instructions.html"
><img
src="https://cdn4.iconfinder.com/data/icons/web-mobile1/100/Untitled-8-512.png"
alt=""
/></a>
</div>
<div class="options">
<div>
<button class="outline-btn" id="add-edge-enable" onclick="addEdges()">
Add edges
</button>
<button
class="outline-btn reset-btn"
onclick="resetDrawingArea()"
disabled
>
Clear
</button>
</div>
<div>
<input
type="text"
inputmode="numeric"
id="source-node"
placeholder="Source Node"
/>
<button
class="outline-btn run-btn"
onclick="findShortestPath(this)"
disabled
>
Run
</button>
</div>
</div>
</header>
<div class="drawing-area">
<p class="click-instruction">Click to create node</p>
</div>
<div class="path"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.1/gsap.min.js"></script>
<script src="./gsap.js"></script>
<script src="./script.js"></script>
</body>
</html>