Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Need help to finish mobile navigation Reply To: Need help to finish mobile navigation

#260653
Shikkediel
Participant

I’m on a 1920px monitor. :-)

That line was actually meant to replace the one suggested earlier…

(function() {

  $('.selector').click(function() {

    var spot = $(this).index('.selector');

    $('.windows').removeClass('active').eq(spot).addClass('active');

    if ($('.menu-show').is (':visible')) $('.menu').hide();
  });
})();

https://codepen.io/anon/pen/eGvweb