Skip to content

Commit 4fa84b6

Browse files
authored
Update index.html
1 parent 84abbda commit 4fa84b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
const tr = document.createElement("tr");
8383
linha.forEach((cel, i) => {
8484
const td = document.createElement("td");
85-
td.innerHTML = cel.texto.replace(/\n/g, "<br>");
85+
td.innerHTML = cel.text.replace(/\n/g, "<br>");
8686
td.style.backgroundColor = cel.bg;
87-
td.style.color = cel.cor;
87+
td.style.color = cel.color;
8888
td.style.position = "relative";
8989
if (i > 0) {
9090
const resizerLeft = document.createElement("div");
@@ -112,8 +112,8 @@
112112
function ordenarPorColuna(indice){
113113
ordemCrescente = {[indice]: !(ordemCrescente[indice] ?? false)};
114114
data.sort((a, b) => {
115-
const v1 = a[indice].texto.toLowerCase();
116-
const v2 = b[indice].texto.toLowerCase();
115+
const v1 = a[indice].text.toLowerCase();
116+
const v2 = b[indice].text.toLowerCase();
117117
if (v1 < v2) return ordemCrescente[indice] ? -1 : 1;
118118
if (v1 > v2) return ordemCrescente[indice] ? 1 : -1;
119119
return 0;

0 commit comments

Comments
 (0)