diff --git a/public/css/style.css b/public/css/style.css index 6355160..5362a9e 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1,7 +1,7 @@ -body { - font: 12px "Lucida Grande", Helvetica, Arial, sans-serif; -} - a { color: #00B7FF; +} + +a:hover { + text-decoration: none; } \ No newline at end of file diff --git a/public/js/lideres/equipos/index.js b/public/js/lideres/equipos/index.js new file mode 100644 index 0000000..c84b442 --- /dev/null +++ b/public/js/lideres/equipos/index.js @@ -0,0 +1,40 @@ +function getTeams() { + console.log(localStorage.apiUrl+'equipos') + $.get(`${localStorage.apiUrl}equipos`) + .done(function(data) { + // TODO + // const teamsHtml = getTeamsHtml(data); + // $('#divEquipos').html(teamsHtml); + console.log(data); + }); +} + +function getTeamsHtml(teams) { + const teamsHtml = teams.map((team) => { + const { numero } = team; + return `
`; + }); + console.log(teamsHtml); + return teamsHtml.join(''); +} + +$(document).ready(function() { + getTeams(); +}); \ No newline at end of file diff --git a/routes/lideres.js b/routes/lideres.js index 5a8cc05..f9969dd 100644 --- a/routes/lideres.js +++ b/routes/lideres.js @@ -35,7 +35,7 @@ router.get('/equipos', function(req, res, next) { section: 'equipos', headerFile: 'header', cssFiles: ['equipos/equipos'], - jsFiles: [] + jsFiles: ['lideres/equipos/index'] } res.render('lideres/default-view', options); }); diff --git a/views/lideres/default-view.ejs b/views/lideres/default-view.ejs index 029afc2..a6a59fb 100644 --- a/views/lideres/default-view.ejs +++ b/views/lideres/default-view.ejs @@ -6,6 +6,7 @@Integrante 1
-Integrante 1
-Integrante 1
-Integrante 1
- -