-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (80 loc) · 2.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rapatumadre.js</title>
<link rel="stylesheet" href="https://unpkg.com/98.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/build/css/alertify.min.css"/>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<p class="logo">
<img src="assets/rapatumadrejs.png" width="50%" height="50%">
</p>
<table align="center">
<tbody>
<tr>
<td>
<select id="options">
<option value="0">Añadir vertices via click</option>
<option value="1">Añadir arista manual</option>
<option value="2">Matriz de Adyacencia</option>
<option value="3">Matriz de distancia</option>
<option value="4">Alg. de Dijkstra</option>
<option value="5">Alg. de Bellman ford</option>
<option value="6">Alg. de Floyd-Warshall</option>
</select>
</td>
</tr>
</tbody>
</table>
<p>Para realizar otra opcion, porfavor presione el mapa</p>
<p id="opt-0">
<input type="checkbox" checked id="check1">
<label for="check1">añadir aristas automaticamente?</label>
</p>
<table align="center">
<tbody>
<tr>
<td>
<div class="window" id="table-window" style="width: 250px; display: none;">
<div class="title-bar">
<div class="title-bar-text" id="wintable">MatrizDeAdyacencia.exe</div>
</div>
<div class="window-body" id="tables">
</div>
</div>
</td>
</tr>
</tbody>
</table>
<div class="container">
<div class="window" id="outer">
<div class="title-bar">
<div class="title-bar-text">Rapatumadre.js</div>
</div>
<div class="window-body" id="main">
<main></main>
</div>
</div>
</div>
<script src="js/p5.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script type="module" src="js/main.js"></script>
<script>
function showOpt() {
if (document.getElementById('options').value != "0") {
document.getElementById("opt-0").style.display = "none";
} else {
document.getElementById("opt-0").style.display = "block";
}
}
const selectElement = document.querySelector('#options');
selectElement.addEventListener('change', (event) => {
showOpt();
})
</script>
</body>
</html>