Skip to content

Commit

Permalink
MAS limpieza de in-line styling en CSS
Browse files Browse the repository at this point in the history
Ahora en los archivos .js
  • Loading branch information
despedite committed Dec 18, 2019
1 parent de59132 commit f376554
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ i.icon-black {
margin-bottom: 50px;
}

.childTable {
background-color: gainsboro;
}

/* CSS para Crear */

.nicebtn
Expand Down
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function showTable() {
// Por cada curso que tenga asignada la persona actual, se crea una entrada "hijo."
// Esta contiene la información de el nombre del curso, el nivel de dificultad, y el idioma (y abreviación).
// (Esta tabla está escondida por defecto, hasta que se maximice).
$('<tr class="child-' + data.data[i].id + '">').append($('<td style="background-color:lightgrey">').text(data.data[i].courses[j].id), $('<td colspan="5" style="background-color:lightgrey"> <b>' + data.data[i].courses[j].name + '</b><br>Nivel: ' + data.data[i].courses[j].level.name + '<br><small>' + data.data[i].courses[j].language.name + " (" + data.data[i].courses[j].language.code + ")</small><br> ...") //TODO: removes last line??
$('<tr class="child-' + data.data[i].id + '">').append($('<td class="childTable">').text(data.data[i].courses[j].id), $('<td colspan="5" class="childTable"> <b>' + data.data[i].courses[j].name + '</b><br>Nivel: ' + data.data[i].courses[j].level.name + '<br><small>' + data.data[i].courses[j].language.name + " (" + data.data[i].courses[j].language.code + ")</small><br> ...") //TODO: removes last line??
).appendTo('#records_table');
}
}
Expand Down

0 comments on commit f376554

Please sign in to comment.