From 9332cecfc56d8f0fdcff60fef175d231e20438b7 Mon Sep 17 00:00:00 2001 From: Caesar Kabalan Date: Sun, 13 Oct 2024 21:58:25 -0700 Subject: [PATCH] Improve Accessibility In Preparation For UI Testing --- dist/index.html | 23 +++++++++++------------ dist/js/main.js | 19 ++++++++++--------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/dist/index.html b/dist/index.html index afeb584..92c1e7d 100644 --- a/dist/index.html +++ b/dist/index.html @@ -95,29 +95,28 @@ - +
- - - - - - - - - - + + + + + + + +
Subnet address Range of addresses Usable IPs Hosts + Note -
Split/Join
+
Split/Join
Loading...
Loading...
diff --git a/dist/js/main.js b/dist/js/main.js index 84d081c..36e28fc 100644 --- a/dist/js/main.js +++ b/dist/js/main.js @@ -276,15 +276,16 @@ function addRow(network, netSize, colspan, note, notesWidth, color, operatingMod rangeCol = int2ip(addressFirst); usableCol = int2ip(usableFirst); } - + let rowId = 'row_' + network.replace('.', '-') + '_' + netSize + let rowCIDR = network + '/' + netSize let newRow = - ' \n' + - ' ' + network + '/' + netSize + '\n' + - ' ' + rangeCol + '\n' + - ' ' + usableCol + '\n' + - ' ' + hostCount + '\n' + - ' \n' + - ' /' + netSize + '\n' + ' \n' + + ' ' + rowCIDR + '\n' + + ' ' + rangeCol + '\n' + + ' ' + usableCol + '\n' + + ' ' + hostCount + '\n' + + ' \n' + + ' /' + netSize + '\n' if (netSize > maxNetSize) { // This is wrong. Need to figure out a way to get the number of children so you can set rowspan and the number // of ancestors so you can set colspan. @@ -295,7 +296,7 @@ function addRow(network, netSize, colspan, note, notesWidth, color, operatingMod for (const i in matchingNetworkList) { let matchingNetwork = matchingNetworkList[i] let networkChildrenCount = count_network_children(matchingNetwork, subnetMap, []) - newRow += ' /' + matchingNetwork.split('/')[1] + '\n' + newRow += ' /' + matchingNetwork.split('/')[1] + '\n' } } newRow += ' ';