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

240
Vistas
How to change the background color of footer?
   <script defer>
       const toggle = document.getElementById('moonToggle')
       const body = document.querySelector('body');
       const footer = document.getElementsByClassName('footer');
   
   
       toggle.addEventListener('click', function() {
           this.classList.toggle('bi-moon-fill');
           if (this.classList.toggle('bi-brightness-high-fill')) {
               body.style.background = '#112B3C';
               body.style.color = '#DDDDDD';
               body.style.transition = '1s';
               footer.style.background = '#DDDDDD';
   
           } else {
               toggle.class = "bi-brightness-high-fill";
               body.style.background = 'white';
               body.style.color = 'black';
               body.style.transition = "1s";
               footer.style.background = "#112B3C";
           };
       });
</script>

I am able to change my background for body with the bootstrap icon I've added but I can't change the background of footer.

about 4 years ago · Santiago Gelvez
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