/
index.html
47 lines (47 loc) · 3.23 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>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>EulerianGraphs</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link href="css/Roboto.css?family=Roboto:wght@100;400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<script src="config.js"></script>
<script src="js/vivagraph/vivagraph.min.js"></script>
<script src="js/Grapher.js"></script>
<script src="js/GraphModels/GraphModel.js"></script>
<script src="js/GraphModels/UndirectedGraphModel.js"></script>
<script src="js/GraphModels/DirectedGraphModel.js"></script>
<script src="js/GraphModels/GraphModelFactory.js"></script>
<script src="js/EulerianGraphs.js"></script>
<script src="js/index.js"></script>
</head>
<body>
<div class="row">
<div class="column" style="background-color: rgba(204, 204, 204, 0.5); height:285px;">
<div style="text-align: center; margin-bottom: 15px;">Enter the edges of the graph G below, one per row, in the format "p q" (without the quotes), where p and q are two vertices. In an undirected graph, the sequence p q forms an edge (both p➔q and q➔p), whereas in a directed graph the sequence p q means the edge p➔q:</div>
<div><textarea onkeyup="graphInputChanged(this)" onchange="graphInputChanged(this)" id="graphInput" name="graphInput" style="width: 100%; height: 120px; overflow: auto; resize: none;" placeholder=""></textarea></div>
</div>
<div class="column" style="background-color: rgb(211, 211, 211, 0.3); height: 285px;">
<div style="text-align: center; margin-bottom: 15px;">Enter a sequence of vertices P (this field is not required), separated by spaces to be checked if it's an Eulerian path. In an undirected graph, the sequence p q forms an edge (both p➔q and q➔p), whereas in a directed graph the sequence p q means the edge p➔q: </div>
<div><input onkeyup="graphInputChanged(this)" onchange="graphInputChanged(this)" type="text" id="sequenceInput" name="sequenceInput" style="width: 100%;" placeholder=""></textarea></div>
</div>
<div class="column" style="background-color: rgba(204, 204, 204, 0.5); height: 50px; text-align: center;">
<label for="isDirected">Is the graph directed?</label>
<input type="checkbox" id="isDirected">
</div>
<div class="column" style="background-color: rgb(211, 211, 211, 0.3); height: 50px;"></div>
</div>
<div class="row" style="background-color: rgb(0, 0, 0, 0.2);">
<div id="errorField" style="text-align: center; color: rgb(201, 0, 0); padding-top: 10px; padding-bottom: 10px; display: none;"></div>
</div>
<div class="row" style="background-color: rgb(0, 0, 0, 0.2);">
<button onclick="createGraph()" style="width: 100%">Graphify!</button>
</div>
<div class="row" style="background-color: rgb(0, 0, 0, 0.2); margin-top: -16px;">
<div id="output" style="text-align: center; padding-top: 10px;"></div>
</div>
<div id="graphRow" class="row" style="background-color: rgb(204, 204, 204, 0.5); display: none; margin-top: -16px; overflow: hidden;"></div>
</body>
</html>