Add notes

This commit is contained in:
Fred Boniface 2023-04-22 22:45:24 +01:00
parent 93de04e9b6
commit 896ff6a532

View File

@ -37,7 +37,8 @@ async function insertData(json) {
const data = JSON.parse(json) const data = JSON.parse(json)
let results = 0 let results = 0
for(var i = 0; i < data.length; i++) { // Break into separate function. Need to for(var i = 0; i < data.length; i++) { // Break into separate function. Need to
// iterate over stops. // iterate over stops and print them in the
// format: `AVN, PRI, SHH... etc.`
tableData += `<tr><td class="code">${data[i][code]}</td> tableData += `<tr><td class="code">${data[i][code]}</td>
<td class="stops">${data[i][stops]}</td></tr>` <td class="stops">${data[i][stops]}</td></tr>`
results++ results++