-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (128 loc) · 3.88 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
122
123
124
125
126
127
128
<!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">
<script src="subnt.js"></script>
<title>Subneteo Bellako</title>
</head>
<body>
<div>
<h1>
Calculando subredes
</h1>
<div>
Ingresa la dirección IP:
<input type="text" id="ip1">
<input type="text" id="ip2">
<input type="text" id="ip3">
<input type="text" id="ip4">
/
<select id="nbits">
<option value="8">8</option>
<option value="16">16</option>
<option value="24">24</option>
</select>
</div>
<div>
<p></p>
<input type="text" id="nslt" required>
<select id="opc">
<option value="1">Número de subredes</option>
</select>
</div>
<input type="button" value="Iniciar" onclick="botonSelect()"
id="boton">
<hr>
<div class="tablaa">
<table border="1" id="direcciones">
<tr>
<th>
Número de Subred
</th>
<th>
Subred
</th>
<th>
Desde
</th>
<th>
Hasta
</th>
<th>
Broadcast
</th>
</tr>
<tr>
<td id="numsbrd"></td>
<td id="sbr"></td>
<td id="dsd"></td>
<td id="hst"></td>
<td id="bct"></td>
</tr>
</table>
<table border="1" id="direcciones2">
<tr>
<th>
Saltos por subred
</th>
<th>
Número de hosts
</th>
<th>
Máscara de Subred
</th>
</tr>
<tr>
<td id="spsbrd"></td>
<td id="nhostss"></td>
<td id="masksub"></td>
</tr>
</table>
</div>
</div>
<style>
hr{
width: 70%;
}
div{
text-align: center;
}
.tablaa{
display: flex;
justify-content: center ;
font-size: 12px;
}
table{
margin: 10px;
}
body{
font-family:'Courier New', Courier, monospace;
}
table{
align-content: center;
align-items: center;
border-collapse: collapse;
}
th {
padding: 10px;
margin: 150px;
}
#boton{
margin-top: 10px;
width: 120px;
height: 40px;
border: none;
border-radius: 15px;
}
#boton:hover{
background-color: rgb(154, 154, 154);
cursor: pointer;
}
input:not([type="button"]) {
border-radius: 2px;
}
</style>
</body>
</html>