WIP: undo some formatting
This commit is contained in:
parent
5a01d82b6f
commit
6d1332dbcd
141
subnets.html
141
subnets.html
@ -403,7 +403,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseQueryString(str) {
|
function parseQueryString(str)
|
||||||
|
{
|
||||||
str = str ? str : location.search;
|
str = str ? str : location.search;
|
||||||
var query = str.charAt(0) == "?" ? str.substring(1) : str;
|
var query = str.charAt(0) == "?" ? str.substring(1) : str;
|
||||||
var args = new Object();
|
var args = new Object();
|
||||||
@ -422,20 +423,25 @@
|
|||||||
|
|
||||||
window.onload = calcOnLoad;
|
window.onload = calcOnLoad;
|
||||||
|
|
||||||
function toggleColumn(cb) {
|
function toggleColumn(cb)
|
||||||
var colName = "col_" + cb.id.substr(3);
|
{
|
||||||
|
var colName = 'col_'+(cb.id.substr(3));
|
||||||
var col = document.getElementById(colName);
|
var col = document.getElementById(colName);
|
||||||
|
|
||||||
if (cb.checked) {
|
if (cb.checked) {
|
||||||
col.style.display = "block";
|
col.style.display = 'block';
|
||||||
} else {
|
}
|
||||||
col.style.display = "none";
|
else {
|
||||||
|
col.style.display = 'none';
|
||||||
}
|
}
|
||||||
recreateTables(); /* because IE draws lines all over the place with border-collapse */
|
recreateTables(); /* because IE draws lines all over the place with border-collapse */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-->
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
H1 {
|
H1 {
|
||||||
font-family: Arial, Verdana, sans-serif;
|
font-family: Arial, Verdana, sans-serif;
|
||||||
font-size: 18pt;
|
font-size: 18pt;
|
||||||
@ -450,6 +456,7 @@
|
|||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
font-family: Arial, Verdana, sans-serif;
|
font-family: Arial, Verdana, sans-serif;
|
||||||
font-size: 60%;
|
font-size: 60%;
|
||||||
@ -487,17 +494,21 @@
|
|||||||
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
|
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
|
||||||
background-color:green;
|
background-color:green;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr valign="top">
|
<tr valign=top>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<h1>Visual Subnet Calculator</h1>
|
<h1>Visual Subnet Calculator</h1>
|
||||||
|
|
||||||
<p>Enter the network you wish to subnet:</p>
|
<p>Enter the network you wish to subnet:</p>
|
||||||
|
|
||||||
<form name="calc" onsubmit="updateNetwork(); return false;">
|
<form name="calc" onsubmit="updateNetwork(); return false;">
|
||||||
|
|
||||||
<table cellspacing="0">
|
<table cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label">IPv4 / IPv6</td>
|
<td class="label">IPv4 / IPv6</td>
|
||||||
@ -509,111 +520,48 @@
|
|||||||
<input type="radio" name="version" value="4" checked />
|
<input type="radio" name="version" value="4" checked />
|
||||||
<input type="radio" name="version" value="6" />
|
<input type="radio" name="version" value="6" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td><input type="text" name="network" size="15" maxlength="45" value="192.168.0.0"></td>
|
||||||
<input
|
<td>/<input type="text" name="netbits" size="3" maxlength="3" value="16"></td>
|
||||||
type="text"
|
<td><input type="submit" value="Update" />
|
||||||
name="network"
|
<input type="button" value="Reset" onclick="if (confirm('This will reset all subnet divisions you have made. Proceed?')) startOver();">
|
||||||
size="15"
|
|
||||||
maxlength="45"
|
|
||||||
value="192.168.0.0"
|
|
||||||
/>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
/<input
|
|
||||||
type="text"
|
|
||||||
name="netbits"
|
|
||||||
size="3"
|
|
||||||
maxlength="3"
|
|
||||||
value="16"
|
|
||||||
/>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<input type="submit" value="Update" />
|
|
||||||
<input
|
|
||||||
type="button"
|
|
||||||
value="Reset"
|
|
||||||
onclick="if (confirm('This will reset all subnet divisions you have made. Proceed?')) startOver();"
|
|
||||||
/>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p>
|
<p>Show columns:
|
||||||
Show columns:
|
<input type="checkbox" id="cb_subnet" checked onclick="toggleColumn(this)"><label for="cb_subnet">Subnet address</label>
|
||||||
<input
|
<input type="checkbox" id="cb_netmask" onclick="toggleColumn(this)"><label for="cb_netmask">Netmask</label>
|
||||||
type="checkbox"
|
<input type="checkbox" id="cb_range" checked onclick="toggleColumn(this)"><label for="cb_range">Range of addresses</label>
|
||||||
id="cb_subnet"
|
<input type="checkbox" id="cb_useable" checked onclick="toggleColumn(this)"><label for="cb_useable">Useable IPs</label>
|
||||||
checked
|
<input type="checkbox" id="cb_hosts" checked onclick="toggleColumn(this)"><label for="cb_hosts">Hosts</label>
|
||||||
onclick="toggleColumn(this)"
|
<input type="checkbox" id="cb_divide" checked onclick="toggleColumn(this)"><label for="cb_divide">Divide</label>
|
||||||
/><label for="cb_subnet">Subnet address</label>
|
<input type="checkbox" id="cb_join" checked onclick="toggleColumn(this)"><label for="cb_join">Join</label>
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
id="cb_netmask"
|
|
||||||
onclick="toggleColumn(this)"
|
|
||||||
/><label for="cb_netmask">Netmask</label>
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
id="cb_range"
|
|
||||||
checked
|
|
||||||
onclick="toggleColumn(this)"
|
|
||||||
/><label for="cb_range">Range of addresses</label>
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
id="cb_useable"
|
|
||||||
checked
|
|
||||||
onclick="toggleColumn(this)"
|
|
||||||
/><label for="cb_useable">Useable IPs</label>
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
id="cb_hosts"
|
|
||||||
checked
|
|
||||||
onclick="toggleColumn(this)"
|
|
||||||
/><label for="cb_hosts">Hosts</label>
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
id="cb_divide"
|
|
||||||
checked
|
|
||||||
onclick="toggleColumn(this)"
|
|
||||||
/><label for="cb_divide">Divide</label>
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
id="cb_join"
|
|
||||||
checked
|
|
||||||
onclick="toggleColumn(this)"
|
|
||||||
/><label for="cb_join">Join</label>
|
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<p>
|
<p>Click below to split and join subnets.<br>
|
||||||
Click below to split and join subnets.<br />
|
If you wish to save this subnetting for later, bookmark <a href="subnets.html" id="saveLink">this hyperlink</a>.</p>
|
||||||
If you wish to save this subnetting for later, bookmark
|
|
||||||
<a href="subnets.html" id="saveLink">this hyperlink</a>.
|
|
||||||
</p>
|
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<a href="https://github.com/davidc/subnets"
|
<a href="https://github.com/davidc/subnets"><img alt="Fork me on GitHub" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_white_ffffff.png" style="right: 0;top: 0;position: absolute;" ></a>
|
||||||
><img
|
|
||||||
alt="Fork me on GitHub"
|
|
||||||
src="https://github.blog/wp-content/uploads/2008/12/forkme_right_white_ffffff.png"
|
|
||||||
style="right: 0; top: 0; position: absolute"
|
|
||||||
/></a>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<br />
|
<br>
|
||||||
<hr noshade color="black" size="1" />
|
<hr noshade color="black" size="1">
|
||||||
<br />
|
<br>
|
||||||
|
|
||||||
<table class="calc" cellspacing="0" cellpadding="2">
|
<table class="calc" cellspacing="0" cellpadding="2">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col id="col_subnet" />
|
<col id="col_subnet">
|
||||||
<col id="col_netmask" style="display: none" />
|
<col id="col_netmask" style="display: none">
|
||||||
<col id="col_range" />
|
<col id="col_range">
|
||||||
<col id="col_useable" />
|
<col id="col_useable">
|
||||||
<col id="col_hosts" />
|
<col id="col_hosts">
|
||||||
<col id="col_divide" />
|
<col id="col_divide">
|
||||||
<col id="col_join" />
|
<col id="col_join">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -635,5 +583,6 @@
|
|||||||
</tr-->
|
</tr-->
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user