This repository has been archived by the owner on May 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
121 lines (105 loc) · 4.37 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<title>Grafové algoritmy</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,700" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<!-- Animated background -->
<div id="background"></div>
<!-- SVG board -->
<div id="board">
<svg id="svg">
<g id="svg-layer" transform="scale(1)"></g>
</svg>
</div>
<!-- Side panel -->
<div id="panel">
<!-- Buttons in right top corner -->
<div id="buttons" class="panel">
<input id="presentation-speed" type="range" min="1" max="1000" value="500" class="speed-slider" />
<button id="presentation-begin"><i class="fa fa-fast-backward" aria-hidden="true"></i></button>
<button id="presentation-back"><i class="fa fa-backward" aria-hidden="true"></i></button>
<button id="presentation-play-pause"><i class="fa fa-pause" aria-hidden="true"></i></button>
<button id="presentation-forward"><i class="fa fa-forward" aria-hidden="true"></i></button>
<button id="presentation-end"><i class="fa fa-fast-forward" aria-hidden="true"></i></button>
<button id="presentation-stop"><i class="fa fa-times" aria-hidden="true"></i></button>
</div>
<!-- Hint -->
<div id="hint" class="panel">
Sousední vrcholy, které byly uzavřené otevřeme a nastavíme jim hodnotu rovnou hodnotě aktuálního vrcholu + hodnotě hrany. Pokud byl nějaký vrchol již otevřen a měl by dostat hodnotu menší, než má aktuální, tak ji aktualizujeme.
</div>
<!-- Editor panel - edge -->
<div id="edge" class="panel">
<h2>Úprava hrany</h2>
<div class="subpanel">
<div class="title">Hodnota hrany:</div>
<input id="edge-value" type="number" value="0"/>
<button id="edge-remove-value">Smazat hodnotu</button>
</div>
<div class="subpanel">
<div class="title">Orientace hrany:</div>
<button id="edge-orientation-none">Neorientovaná</button>
<button id="edge-orientation-positive">Kladně</button>
<button id="edge-orientation-negative">Záporně</button>
</div>
<div class="subpanel">
<div class="title">Další možnosti:</div>
<button id="edge-remove">Smazat hranu</button>
</div>
</div>
<!-- Editor panel vertex -->
<div id="vertex" class="panel">
<h2>Úprava vrcholu</h2>
<div class="subpanel">
<div class="title">Možnosti:</div>
<button id="vertex-remove">Smazat vrchol</button>
</div>
</div>
<!-- Editor panel vertex -->
<div id="vertex-select-panel" class="panel">
<h2>Kliknutím vyberte vrchol</h2>
<p></p>
<button id="vertex-select-dismiss">Zrušit</button>
</div>
<!-- Title panel -->
<div id="welcome" class="panel">
<h1>Grafové algoritmy</h1>
<p>
Vizualizace grafových algoritmů na uživatelem definovaných grafech.
</p>
<p>
Kliknutím na prázdné místo v levé části obrazovky vytvoříte nový vrchol.
Kliknutím na vrchol se vrchol označí.
Následným kliknutím na jiný vrchol vytvoříte hranu. Pokud již hrana existuje, vyberete ji.
Hranám můžete nastavit směr a hodnotu, která je potřebná pro některé algoritmy.
Vybrané prvky můžete mazat také klávesou <i>delete</i>.
</p>
<p>Vytvořeno jako zápočtový program Štěpánem Stenchlákem do předmětu Programování II na Matematicko-Fyzikální Fakultě Univerzity Karlovy.</p>
</div>
<!-- Algorithm list panel -->
<div id="algorithms" class="panel">
<h2>Dostupné algoritmy</h2>
<div id="single-algorithm" class="algorithm">
<h3></h3>
<p></p>
<button>Spustit <span></span>!</button>
</div>
</div>
</div>
<!-- Presentation slider -->
<input type="range" min="0" max="0" value="0" id="progressbar">
<!-- Error messages -->
<div id="error" style="display: none;">
<div>
<div id="error-message"></div>
<button id="error-hide">Rozumím</button>
</div>
</div>
<!-- Scripts -->
<script src="bundle.js"></script>
</body>
</html>