File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 7
7
]);
8
8
9
9
concat (__DIR__ . '/public/js/app.min.js ' , [
10
+ __DIR__ . '/public/js/app.js ' ,
10
11
__DIR__ . '/public/js/highlight.min.js ' ,
11
12
]);
12
13
Original file line number Diff line number Diff line change
1
+
2
+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
3
+ document . querySelectorAll ( '.navbar-burger' ) . forEach ( function ( el ) {
4
+ el . addEventListener ( 'click' , function ( ) {
5
+ var target = el . dataset . target ;
6
+ var targetEl = document . getElementById ( target ) ;
7
+ el . classList . toggle ( 'is-active' ) ;
8
+ targetEl . classList . toggle ( 'is-active' ) ;
9
+ } ) ;
10
+ } ) ;
11
+ } ) ;
Original file line number Diff line number Diff line change
1
+
2
+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
3
+ document . querySelectorAll ( '.navbar-burger' ) . forEach ( function ( el ) {
4
+ el . addEventListener ( 'click' , function ( ) {
5
+ var target = el . dataset . target ;
6
+ var targetEl = document . getElementById ( target ) ;
7
+ el . classList . toggle ( 'is-active' ) ;
8
+ targetEl . classList . toggle ( 'is-active' ) ;
9
+ } ) ;
10
+ } ) ;
11
+ } ) ;
12
+
1
13
/*!
2
14
Highlight.js v11.7.0 (git: 82688fad18)
3
15
(c) 2006-2022 undefined and other contributors
You can’t perform that action at this time.
0 commit comments