Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

144
Vistas
API Project issues

I have two issues I'm encountering. The First is with the following lines of code and getting a break to work.

    let lineBreak = '\n'
    let c = document.getElementById("containerC")
    let day = data.days
    for(let x = 0; x < 5; x++){
        let p = document.createElement("p") 
        c.append(p)
        p.append(day[x].datetime, lineBreak,   
            day[x].temp * 9 / 5 +32 + " F" + ", ",
            day[x].conditions + ", ",
            day[x].description,
            )       
    }
}

The second is getting multiple Divs to style based on my api's results for the condition. When it selects more than 1 div the page errors and won't load the divs at all.

function weatherBG(data) {
    let currentCondition = data.currentConditions.conditions
    let containers = document.querySelectorAll("container")
    if(currentCondition == currentCondition){
        containers.css(backgroundImage = url('https://media1.giphy.com/media/t7Qb8655Z1VfBGr5XB/giphy.gif?cid=ecf05e471vbipwsodtlvxejxnbteynw6twxn5abw348fi79q&rid=giphy.gif&ct=g'))
    }
}

Any help would be greatly appreciated. I'm far overdue on this and need to get it done.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda