-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (35 loc) · 1.24 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="cs">
<head>
<meta charset="UTF-8">
<title>Graf</title>
<link rel="stylesheet" href="graph.css">
<style>
.author {
position: absolute;
top: 0;
right: 0;
padding: 1em 1.6em;
}
</style>
</head>
<body>
<h1>Hledání nejkratší cesty v grafu (Dijkstrův algoritmus)</h1>
<div class="graph-cont">
<div class="toolbar" id="toolbar">
<label for="add-vertex"><input type="radio" name="tool" id="add-vertex"> Přidat vrchol</label>
<label for="add-edge"><input type="radio" name="tool" id="add-edge"> Přidat hranu</label>
<label for="remove-vertex"><input type="radio" name="tool" id="remove-vertex"> Odstranit vrchol</label>
<label for="remove-edge"><input type="radio" name="tool" id="remove-edge"> Odstranit hranu</label>
<label for="properties"><input type="radio" name="tool" id="properties"> Vlastnosti prvku</label>
<label for="find-path"><input type="radio" name="tool" id="find-path"> Najít cestu</label>
</div>
<canvas id="graph-canv" width="800" height="600"></canvas>
<div class="sidebox-cont" id="sidebox-cont"></div>
</div>
<span class="author">Petr Pučil</span>
<script src="vector.class.js"></script>
<script src="graph.class.js"></script>
<script src="graph-app.js"></script>
</body>
</html>