From 740155c95941ced3fb8515b9c4b7cdf4a19ab8c1 Mon Sep 17 00:00:00 2001 From: PedroDuraesS <102993693+PedroDuraesS@users.noreply.github.com> Date: Sun, 19 Jun 2022 19:11:34 -0300 Subject: [PATCH 1/4] . --- index.html | 10 ++++++++++ script.js | 30 ++++++++++++++++++++++++++++++ style.css | 6 ++++++ 3 files changed, 46 insertions(+) create mode 100644 index.html create mode 100644 script.js create mode 100644 style.css diff --git a/index.html b/index.html new file mode 100644 index 0000000..aa85a86 --- /dev/null +++ b/index.html @@ -0,0 +1,10 @@ + + +
+ + + + + + + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..41dabcf --- /dev/null +++ b/script.js @@ -0,0 +1,30 @@ +var element = document.createElement('table'); + +var carro = { + prop: "matue", + marca: "porsche", + ano: 2020 + }; + +let table = document.createElement('table'); + +ADC_ColTable(carro, table) +{ + let tr1 = document.createElement('tr'); + + let td1 = document.createElement('td'); + let td2 = document.createElement('td'); + let td3 = document.createElement('td'); + + td1.inneHTML = carro.prop; + td2.innerHTML = carro.marca; + td3.innerHTML = carroo.ano; + + table.appendChild(tr); + + tr1.appendChild(td1); + tr1.appendChild(td2); + tr1.appendChild(td3); +} + +ADC_ColTable(carro, table); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..8db92db --- /dev/null +++ b/style.css @@ -0,0 +1,6 @@ +table +{ + border: 2px; + display: flex; + justify-content: center; +} \ No newline at end of file From 20e39d5c49dde84fb1977eba10ec6d60f0840636 Mon Sep 17 00:00:00 2001 From: PedroDuraesS <102993693+PedroDuraesS@users.noreply.github.com> Date: Mon, 20 Jun 2022 19:40:50 -0300 Subject: [PATCH 2/4] . --- index.html | 4 ++-- script.js | 31 ++++++------------------------- 2 files changed, 8 insertions(+), 27 deletions(-) diff --git a/index.html b/index.html index aa85a86..564c5fb 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,9 @@ + + - - \ No newline at end of file diff --git a/script.js b/script.js index 41dabcf..3ac388e 100644 --- a/script.js +++ b/script.js @@ -1,30 +1,11 @@ -var element = document.createElement('table'); - -var carro = { - prop: "matue", - marca: "porsche", - ano: 2020 - }; - -let table = document.createElement('table'); - -ADC_ColTable(carro, table) +function ConverseCSV_HTML() { - let tr1 = document.createElement('tr'); + let titleInput = document.getElementById("titleInput").value; + let inputText = document.getElementById("inputText").value; - let td1 = document.createElement('td'); - let td2 = document.createElement('td'); - let td3 = document.createElement('td'); + let title = document.createTextNode(titleInput); - td1.inneHTML = carro.prop; - td2.innerHTML = carro.marca; - td3.innerHTML = carroo.ano; + let Tabtitle = document.getElementById("Tabtitle"); + let Tabcontent = document.getElementById("Tabcontent"); - table.appendChild(tr); - - tr1.appendChild(td1); - tr1.appendChild(td2); - tr1.appendChild(td3); } - -ADC_ColTable(carro, table); \ No newline at end of file From 19b751a5ef8863988ba343bd42e10346197159a9 Mon Sep 17 00:00:00 2001 From: PedroDuraesS <102993693+PedroDuraesS@users.noreply.github.com> Date: Mon, 20 Jun 2022 20:02:49 -0300 Subject: [PATCH 3/4] . --- index.html | 12 ++++++++++++ script.js | 26 ++++++++++++++++++++++++++ style.css | 4 ++++ 3 files changed, 42 insertions(+) diff --git a/index.html b/index.html index 564c5fb..b086757 100644 --- a/index.html +++ b/index.html @@ -6,5 +6,17 @@ + +