-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (109 loc) · 4.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/css/style.css">
<title>Relaciones</title>
</head>
<body>
<!-- ALERT -->
<div class="alert">
<span class="alert-close" onclick="this.parentElement.style.display='none';">×</span>
<p id="alert-message">Hello there</p>
</div>
<!-- END ALERT -->
<!-- MODAL -->
<div id="input-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h3>Relación R en A</h3>
</div>
<div class="modal-body">
<div>
<label for="nodes">Nodos</label>
<input
type="text"
name="nodes"
id="nodes-input"
placeholder="Ingrese los elementos de A: a, b, c, d..."
>
</div>
<div>
<label for="edges">Pares ordenados</label>
<textarea
name="edges"
id="edges-textarea"
placeholder="Ingrese los elementos de R: (a, a), (a, b), (b, c), (c, d)..."
></textarea>
</div>
</div>
<div class="modal-footer">
<button onclick="check()" id="submit-btn">Procesar</button>
</div>
</div>
</div>
<!-- END MODAL -->
<!-- MAIN -->
<main>
<div class="container">
<h1>RELACIONES Y SUS PROPIEDADES</h1>
<h2>Análisis</h2>
<div id="result">
<h3 id="nodes-result"></h3><br>
<h3 id="edges-result"></h3>
</div>
</div>
<div class="principal container">
<h2>Propiedades</h2>
<ul id="properties">
<li id="isReflexive">Reflexiva</li>
<li id="isIrreflexive">Irreflexiva</li>
<li id="isSymmetric">Simétrica</li>
<li id="isAsymmetric">Asimétrica</li>
<li id="isAntisymmetric">Antisimétrica</li>
<li id="isTransitive">Transitiva</li>
</ul>
</div>
<div class="panel-adjacencyMatrix container">
<h2>Matriz de adyacencia</h2>
<div style="overflow-x: auto;">
<table id="adjacencyMatrixTable">
<thead>
<tr id="adjacencyMatrixTableHeaders"></tr>
</thead>
<tbody></tbody>
</table>
</div>
<h2>Grafo</h2>
<div id="graph-canvas" style="width: 100%; height: 500px;"></div>
</div>
<div class="panel-equivalence container">
<h2>Relación de equivalencia</h2>
<p id="equivalence-paragraph"></p>
<div id="equivalence-class-container" >
<h3 style="margin: 1rem 0.5rem 0 0;">Clases de equivalencia</h3>
<ul id="equivalence-class-list"></ul>
</div>
<div id="equivalence-partitions-container">
<h3 style="margin: 1rem 0;">Particiones</h3>
<p id="equivalence-partitions-paragraph"></p>
</div>
</div>
<div class="panel-partial-order container">
<h2>Orden parcial</h2>
<p id="partial-order-paragraph"></p>
<div id="hasseDiagramCanvas" style="width: 100%; height: 500px; display: none;"></div>
</div>
<div class="panel-none container">
<h2>No es una Relación de equivalencia ni una Relación de orden parcial</h2>
</div>
</main>
<!-- END MAIN -->
<script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>