The JS functions specified below are run only on the Scan Page.
### [GetScanned.js](/WAMI/WAMI/GetScanned.js)
Used to retrieve all information of past scans on the scan page. This will only return scanned items contained in the table on the page, as it will ignore empty rows.
Used to retrieve all information of past scans on the scan page. This will only return scanned items contained in the table on the page, as it will ignore empty rows. It does this by iterate through all rows in scan table, ignoring the first header rows and empty spacing rows, to save all others in an array.
```javascript
for(vari=1;i<allRows.length;i++){
if(allRows[i].childElementCount!==0){
scannedRows[scannedRows.length]=allRows[i];
}
}
```
Header rows are ignored by starting at the 2nd row, index 1, rather than the first, index 0. Empy rows are ignored by checking if the row has any child elements.
After retrieving all scan rows, iterate through each of these rows and each column in the row