File tree Expand file tree Collapse file tree 4 files changed +9
-26
lines changed Expand file tree Collapse file tree 4 files changed +9
-26
lines changed Original file line number Diff line number Diff line change @@ -56,3 +56,11 @@ document.querySelectorAll('.console-block label').forEach(function (el) {
56
56
observer . observe ( el ) ;
57
57
} ) ;
58
58
} ) ( ) ;
59
+
60
+ // Toggle mobile menu on button click
61
+ document . querySelector ( '.menu-button' ) . addEventListener ( 'click' , function ( ) {
62
+ const menu_el = document . querySelector ( '#top [role="navigation"]' ) ;
63
+
64
+ this . classList . toggle ( 'active' ) ;
65
+ menu_el . classList . toggle ( 'active' ) ;
66
+ } ) ;
Original file line number Diff line number Diff line change 1
1
// Require.js Module Loader - http://requirejs.org
2
2
define ( function ( ) {
3
- var mods = [
4
- 'mod/mobile-menu' , // require mobile menu automatically
5
- ] ;
3
+ var mods = [ ] ;
6
4
7
5
//detect Class function
8
6
function hasClass ( className ) {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 137
137
"jquery.flot" : extless ( "{% static 'js/lib/jquery.flot.min.js' %}" ) ,
138
138
"mod/floating-warning" : extless ( "{% static 'js/mod/floating-warning.js' %}" ) ,
139
139
"mod/list-collapsing" : extless ( "{% static 'js/mod/list-collapsing.js' %}" ) ,
140
- "mod/mobile-menu" : extless ( "{% static 'js/mod/mobile-menu.js' %}" ) ,
141
140
"mod/search-key" : extless ( "{% static 'js/mod/search-key.js' %}" ) ,
142
141
"mod/stripe-change-card" : extless ( "{% static 'js/mod/stripe-change-card.js' %}" ) ,
143
142
"mod/switch-dark-mode" : extless ( "{% static 'js/mod/switch-dark-mode.js' %}" ) ,
You can’t perform that action at this time.
0 commit comments