thead und tbody (wie in Vorlage gewünscht)
This commit is contained in:
parent
083736b8ca
commit
5be74299f7
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue