This repository was archived by the owner on Aug 28, 2019. It is now read-only.
File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 3
3
========================================================================== */
4
4
5
5
.dl-menuwrapper {
6
- width : 100% ;
7
- height : 100% ;
8
6
position : absolute ;
9
7
top : 0 ;
10
8
left : 0 ;
23
21
left : 25px ;
24
22
}
25
23
24
+ & .dl-menuopen {
25
+ width : 100% ;
26
+ height : 100% ;
27
+ }
28
+
26
29
button {
27
30
top : 0 ;
28
31
left : 0 ;
Original file line number Diff line number Diff line change 7
7
*
8
8
* Copyright 2013, Codrops
9
9
* http://www.codrops.com
10
+ *
11
+ * Modified by Michael Rose
10
12
*/
11
13
; ( function ( $ , window , undefined ) {
12
14
66
68
} ,
67
69
_config : function ( ) {
68
70
this . open = false ;
71
+ this . $menuwrapper = $ ( '#dl-menu' ) ;
69
72
this . $trigger = this . $el . children ( '.dl-trigger' ) ;
70
73
this . $menu = this . $el . children ( 'ul.dl-menu' ) ;
71
74
this . $menuitems = this . $menu . find ( 'li:not(.dl-back)' ) ;
178
181
self . _resetMenu ( ) ;
179
182
} ;
180
183
184
+ this . $menuwrapper . removeClass ( 'dl-menuopen' ) ;
181
185
this . $menu . removeClass ( 'dl-menuopen' ) ;
182
186
this . $menu . addClass ( 'dl-menu-toggle' ) ;
183
187
this . $trigger . removeClass ( 'dl-active' ) ;
202
206
$body . off ( 'click' ) . on ( 'click.dlmenu' , function ( ) {
203
207
self . _closeMenu ( ) ;
204
208
} ) ;
209
+ this . $menuwrapper . addClass ( 'dl-menuopen' ) ;
205
210
this . $menu . addClass ( 'dl-menuopen dl-menu-toggle' ) . on ( this . transEndEventName , function ( ) {
206
211
$ ( this ) . removeClass ( 'dl-menu-toggle' ) ;
207
212
} ) ;
You can’t perform that action at this time.
0 commit comments