Update subnets.html

Don't break old links, use comments only if provided.
This commit is contained in:
John Steel
2021-05-03 12:00:43 -04:00
committed by John Steel
parent 4eb3c18fb1
commit 04c07d13fe

View File

@@ -437,10 +437,15 @@ function calcOnLoad()
{
preloadSubnetImages();
args = parseQueryString();
if (args['network'] && args['mask'] && args['division'] && args['comments']) {
if (args['network'] && args['mask'] && args['division']) {
document.forms['calc'].elements['network'].value = args['network'];
document.forms['calc'].elements['netbits'].value = args['mask'];
curComments = JSON.parse(args['comments']);
if (args['comments']) {
curComments = JSON.parse(args['comments']);
} else {
curComments = {};
}
updateNetwork();
var division = asciiToBin(args['division']);
rootSubnet = [0, 0, null];