-
Notifications
You must be signed in to change notification settings - Fork 0
/
subnet.html
172 lines (99 loc) · 5.03 KB
/
subnet.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!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>Subnet</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main id='main'>
<h1> Network</h1>
<input type="text" id="network">
<h1> Mask</h1>
<input type="text" id="mask">
<h1> Hosts</h1>
<textarea id="hosts" oninput="updateListHostsTxt()" cols="21" rows="10"></textarea>
<div class="hostsProcess">
<h1>Hosts To Process</h1>
<select id="selectHosts"> </select>
<input type="text" id="toConfig" placeholder="num of hosts to config">
<button id='process' onclick="processOne()" disabled>Process</button>
<button onclick="processAll()">Process All</button>
<div class="choices">
<table class="choicesTable" border="1" borderColor="cyan">
<tr> <th colspan="3"> Tables To Show </th></tr>
<tr> <th> VLSM </th> <td colspan="2"> <input class="radio" name='table' value="vlsm" type="radio" onchange="showTable()" > </td> </tr>
<tr >
<th rowspan="2"> MACHINES</th>
<th>CONFIG</th> <td> <input class="radio" name='table' value="config" type="radio" onchange="showTable()"> </td>
</tr>
<tr> <th>CMDS </th> <td > <input class="radio" name='table' value="cmd" type="radio" onchange="showTable()"> </td> </tr>
<tr> <th> OSPF </th> <td colspan="2"> <input class="radio" name='table' value="ospf" type="radio" onchange="showTable()"> </td> </tr>
<tr> <th> Mask </th> <td colspan="2"> <input class="radio" name='table' value="mask" type="radio" onchange="showTable()"> </td> </tr>
<tr> <th> None </th> <td colspan="2"> <input class="radio" name='table' value="none" type="radio" onchange="showTable()"checked> </td> </tr>
</table>
</div>
</div>
<div class="codes">
<div id="vlsm"></div>
<div id="config"></div>
<div id="vlsmCMDS"></div>
<div id="ospf"></div>
<div id="masks"></div>
</div>
<div class="myConfig">
<table border="1" id="myConfig">
<tr><th>initial commands</th> <td> <textarea id="g_init" rows="5"></textarea> </td> </tr>
<tr><th>Subnet</th> <td><select id="g_subnet" onchange="subnetChanged()"></select></td></tr>
<tr id="hostsTr"><th>Host</th> <td><select id="g_host_IP"></select></td></tr>
<tr id="maskTr"> <th>Mask</th> <td><select id="g_mask"></select> </td></tr>
<tr id="gatewayTr"> <th>Gateway</th> <td><select id="g_gateway"></select> </td></tr>
<tr>
<th>Examples</th>
<td>
<select id="g_exp_formula" onchange="exampleFormula()"></select>
</td>
</tr>
<tr id="nextHopTr"><th>Next Hop</th> <td><select id="g_Next_Hop"></select></td></tr>
<tr id="portTr"><th>Port</th> <td><input id="g_port" type="text"></td></tr>
<tr>
<th>Formula</th>
<td>
<textarea id="g_formula" rows="7">
ipconfig {host} {ex_mask} {gateway}
</textarea>
</td>
</tr>
<tr>
<th>initial</th>
<td>
<span>Yes</span> <input type="radio" name="radio_init" value="yes">
<span>No</span><input type="radio" name="radio_init" value="no" checked>
</td>
</tr>
<tr>
<th>
<button class="g_btn" onclick="G_Generate()">Generate</button>
</th>
<td >
<textarea id="G_script" rows="7"></textarea>
</td>
</tr>
</table>
</div>
</main>
<div class="bar">
<button class="above" onclick="window.location = 'subnet.html#main'">^</button>
<footer>
<div class="copyright" style="text-align: center;">
<a href="https://www.patreon.com/kzCode_" target="_blank">© DARKPINK 2023</a>
</div>
</footer>
</div>
<script src="displayDiv.js"></script>
<script src="str.js"></script>
<script src="index.js"></script>
</body>
</html>