thead und tbody (wie in Vorlage gewünscht)

This commit is contained in:
seli 2018-11-04 17:00:31 +01:00
parent 083736b8ca
commit 5be74299f7

View file

@ -51,7 +51,7 @@ function processData(csv, path) {
var allTextLines = csv.split(/\r\n|\n/); var allTextLines = csv.split(/\r\n|\n/);
// create table header // create table header
table += "<tr>"; table += "<thead><tr>";
checkbox += "<ul>"; checkbox += "<ul>";
var data = allTextLines[0].split(","); var data = allTextLines[0].split(",");
@ -71,7 +71,7 @@ function processData(csv, path) {
} }
checkbox += "</ul>"; checkbox += "</ul>";
table += "</tr>"; table += "</tr></thead><tbody>";
// create table content // create table content
for (var i = 1; i < allTextLines.length; i++) { for (var i = 1; i < allTextLines.length; i++) {
@ -88,6 +88,8 @@ function processData(csv, path) {
table += "</tr>"; table += "</tr>";
} }
table += "</tbody>";
document.getElementById('t01').innerHTML = table; document.getElementById('t01').innerHTML = table;
document.getElementById('options').innerHTML = checkbox; document.getElementById('options').innerHTML = checkbox;
} }