pis #1

Closed
fred.boniface wants to merge 51 commits from pis into dev
1 changed files with 1 additions and 2 deletions
Showing only changes of commit a63e861162 - Show all commits

View File

@ -33,7 +33,6 @@ async function insertData(json) {
<th class="stops">Stations</th>
</tr>`
div.insertAdjacentHTML("beforeend", tableHtml)
const table = document.getElementById('result-table')
const data = JSON.parse(json)
let results = 0
for(var i = 0; i < data.length; i++) { // Break into separate function. Need to
@ -44,7 +43,7 @@ async function insertData(json) {
results++
}
tableData += "</table>"
table.insertAdjacentHTML("beforeend", tableData)
document.getElementById('result-table').insertAdjacentHTML("beforeend", tableData)
document.getElementById('result-count').textContent = results
}