The editors' meeting has been canceled for technical reasons.

MediaWiki:Vector.js: Difference between revisions

From Center of NeuroWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
/* All JavaScript here will be loaded for users of the Vector skin */
/* All JavaScript here will be loaded for users of the Vector skin */
javascript
  // 创建移动端菜单按钮
  $(document).ready(function() {
      if ($(window).width() <= 768) {
          $('body').prepend('<div id="mobile-menu-toggle">菜单</div>');
          $('#mobile-menu-toggle').on('click', function() {
              $('body').toggleClass('menu-open');
          });
      }
  });

Latest revision as of 20:46, 25 October 2024

/* All JavaScript here will be loaded for users of the Vector skin */