Untitled

mail@pastecode.io avatar
unknown
plain_text
12 days ago
893 B
2
Indexable
Never

    if (window.matchMedia('(min-width: 992px)').matches) {
      $('.we-mega-menu-li .we-mega-menu-li').hover(

        function () {
          var alturaElemento = $('#block-axway2020-menumain-2 .group-two ul .we-mega-menu-li:hover > .we-mega-menu-submenu').height();
          var alturaElemento2 = $('#block-axway2020-menumain-2 .group-two .we-mega-menu-col .nav-tabs').height();

          if (alturaElemento2 > alturaElemento) {
            var alturaElemento = $('#block-axway2020-menumain-2 .group-two .we-mega-menu-col .nav-tabs').height();
          }
          $('.we-mega-menu-submenu-inner').css({
            'min-height': alturaElemento,
            'height': alturaElemento
          });
        },
        function () {
          $('.we-mega-menu-submenu-inner').css({
            'min-height': 'initial',
            'height': 'initial'
          });
        }
      );
    }
Leave a Comment