Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

249
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda