" + myArr[i][j] + "
"+myArr[i][j]+"
"; + } + + let div = document.createElement('div'); + div.innerHTML = this.returnStr; + div.className = "tablecell"; + div.style.gridTemplateColumns = "repeat("+this.arrLength+", 1fr)"; + records.append(div); + this.returnStr = ""; + } + } + + arrayLength() { + return this.arrLength; + } + + internalFormat() { + return this.returnStr; + } + } +} \ No newline at end of file diff --git a/classes/table-heading-string.js b/classes/table-heading-string.js new file mode 100644 index 00000000..7e480585 --- /dev/null +++ b/classes/table-heading-string.js @@ -0,0 +1,34 @@ +"use strict"; +///" + myArr[i] + "
"+myArr[i]+"
"; + } + } + + arrayLength() { + return this.arrLength; + } + + internalFormat() { + return this.returnStr; + } + } +} \ No newline at end of file diff --git a/index.html b/index.html index add5e736..c2ff9cb8 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,54 @@ - -