WordPress.org

Making WordPress.org

Changeset 5905


Ignore:
Timestamp:
09/11/2017 10:23:56 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Trac: Add missing toggleMenu() function for mobile menu.

Props mitraval192.
Fixes #3119.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/wporg-head.html

    r3707 r5905  
    3030    </style>
    3131    <![endif]-->
     32    <script type="text/javascript">
     33    var toggleMenu = function(){
     34        var m = document.getElementById('wporg-header-menu'),
     35            c = m.className;
     36            m.className = c.match( ' active' ) ? c.replace( ' active', '' ) : c + ' active';
     37    }
     38    </script>
    3239
    3340</html>
Note: See TracChangeset for help on using the changeset viewer.