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

193
Views
Menú de hamburguesas móvil de Betheme

así que tengo una página en mi sitio web que usa enlaces de anclaje a los que se puede acceder en el menú, pero en el móvil cuando hago clic en una categoría (enlace de anclaje) el menú no se cierra automáticamente, necesito cerrarlo manualmente presionando el menú de hamburguesa nuevamente .

Este es todo mi código de menu.js:

https://pastebin.com/hTL6wx2Q

Esta función doMenu:

 if( ( window.innerWidth >= options.mobileInit ) || ( ! options.responsive ) ){ // desktop -------------------------------- $( '> li, ul:not(.mfn-megamenu) li', menu ).hover(function() { $(this).stop(true,true).addClass( options.hoverClass ); $(this).children( 'ul' ).stop(true,true).fadeIn( options.delay ); }, function(){ $(this).stop(true,true).removeClass( options.hoverClass ); $(this).children( 'ul' ).stop(true,true).fadeOut( options.delay ); }); } else { // mobile --------------------------------- $( 'li', menu ).unbind('hover'); $( 'li > .menu-toggle', menu ).off('click').on('click', function(){ var el = $(this).closest('li'); if( el.hasClass( options.hoverClass ) ){ el.removeClass( options.hoverClass ) .children('ul').stop(true,true).fadeOut( options.delay ); } else { el.addClass( options.hoverClass ) .children('ul').stop(true,true).fadeIn( options.delay ); } }); } };
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!