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

200
Views
¿Cómo crear un controlador de eventos para "cambiar el tamaño" de eventos?

cuando alterna la visualización en el navegador (F12) desde el móvil o responde al escritorio, el div (content_filter) desaparece. Actualice la página para corregir el error.

vista de escritorio

Modo de escritorio

por lo que entiendo, necesito agregar una ventana: cambiar el tamaño del evento para evitar actualizar cada vez. mi nivel en javascript es completamente principiante. ¿Puedes mostrarme la técnica correcta con mi código?

 <script> document.addEventListener('DOMContentLoaded', function () { jQuery(function ($) { $('.filter_btn').click(function (event) { if (window.innerWidth <= 768) { $('.content_filter').slideToggle('250', 'swing', 'hide'); } }); }); }); </script> <style > @media all and(max - width: 768 px) { .content_filter { display: none; } } </style>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puedes usar:

 window.addEventListener('resize', function () { console.log(window.innerHeight); });

consulte https://developer.mozilla.org/en-US/docs/Web/API/Window/resize_event para obtener más información.

about 4 years ago · Juan Pablo Isaza Report
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!