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

194
Views
No se puede verificar si el código está en la ventana gráfica

este es un código para detectar si la sección que estoy desplazando en este momento está en la ventana gráfica o no. Este código en realidad solo funciona si entro en cualquier sección y actualizo la página, no funciona continuamente cuando me desplazo por la página.

 var secArr = document.querySelectorAll('section'); secArr.forEach(onscroll = function (element) { var bounding = element.getBoundingClientRect(); if (bounding.top <= 350.00 && bounding.top >= -270.00) { if (!element.classList.contains("your-active-class")) { element.setAttribute("class", "your-active-class"); } } else { element.removeAttribute("class"); } });
about 4 years ago · Juan Pablo Isaza
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!