-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (47 loc) · 1.58 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
<!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</title>
</head>
<body>
<header>
<div class="title">
<h1 style="color: white">Dijkstra Visualiser</h1>
<h6 style="color: white">Let's find the shortest path</h6>
<a href="./instructions.html"
><img
src="https://cdn4.iconfinder.com/data/icons/web-mobile1/100/Untitled-8-512.png"
alt=""
width="40px"
/></a>
</div>
<div class="options">
<button class="outline-btn" id="add-edge-enable" onclick="addEdges()">
Add edges
</button>
<div>
<label style="color: white">Enter the Source Node:</label>
<input type="text" inputmode="numeric" id="source-node" />
<button class="outline-btn" onclick="findShortestPath(this)">
Run
</button>
</div>
</div>
</header>
<div class="block-dijk">
<p class="click-instruction">Click to create node</p>
</div>
<div class="path"></div>
<footer>
<p>Project By Vanshika kalra(19csu339) and vaishnavi(19csu336)</p>
</footer>
<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>