Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

242
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!