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
parent 8299a07a13
commit 3c3908d9d1
No known key found for this signature in database
GPG Key ID: DCD1F9A42EBF7B82

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];