From 43bb5fa9c87c65ee206ee2bba0fbfe0370a22026 Mon Sep 17 00:00:00 2001 From: hugo cabrera diaz Date: Tue, 23 Oct 2018 12:44:35 -0500 Subject: [PATCH] ya logre traer las img --- modulos/slider/css/estiloh.css | 4 ++-- modulos/slider/index.html | 14 +++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/modulos/slider/css/estiloh.css b/modulos/slider/css/estiloh.css index f02f3cc..2c3ca43 100644 --- a/modulos/slider/css/estiloh.css +++ b/modulos/slider/css/estiloh.css @@ -3,7 +3,7 @@ div .carrusel{ } .imag{ - width: 90%; + width: 100%; height: 300px!important; - margin: auto; + } diff --git a/modulos/slider/index.html b/modulos/slider/index.html index e3a0a6f..3befa1f 100644 --- a/modulos/slider/index.html +++ b/modulos/slider/index.html @@ -6,6 +6,7 @@ + @@ -22,6 +23,7 @@
+
@@ -45,8 +47,18 @@ for (var i = 0; i < res.length; i++) { console.log(res[i].url); + console.log(res[i].id); + const app = document.getElementById('imgh'); + const logo = document.createElement('img'); + logo.src = (res[i].url); + // const imgh = document.createElement('div'); + imgh.setAttribute('class', 'imag'); + // imgh.setAttribute('class', 'imag'); + // imgh.setAttribute("width", "100%"); + // imgh.setAttribute("height", "300px"); + app.appendChild(logo); + // app.appendChild(imgh); } -