diff --git a/html/deviceListing.html b/html/deviceListing.html index a6608b5..d224a68 100644 --- a/html/deviceListing.html +++ b/html/deviceListing.html @@ -14,7 +14,7 @@
-Name | Device Type | diff --git a/html/deviceListing.js b/html/deviceListing.js index 50e11b5..4cb042b 100644 --- a/html/deviceListing.js +++ b/html/deviceListing.js @@ -1,13 +1,36 @@ +var tableHtml = processDeviceData(harvestDevices); +alert(tableHtml); +document.getElementById("list").innerHTML = tableHtml; -console.log(harvestDevices()); - - +function processDeviceData(devices) { + // returns html table entries using data from harvestDevices() + // this is to be inserted into the table with the data-table attribut 'list', which can be found in deviceListing.html + var html=""; + for (var i = 0; i"; + // else + html+=" | "; + html+=devices[i][j]; + // if(i==0) html+=""; + // else + html+=" | " + console.log(html); + } + html+="
---|