File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ "use strict" ;
2+
3+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
4+ var hamburger = document . getElementById ( 'hamburger' ) ;
5+ var hamburgerState = false ;
6+
7+ hamburger . onclick = function ( ) {
8+ hamburgerState = ! hamburgerState ;
9+
10+ if ( hamburgerState ) {
11+ hamburger . classList . add ( 'open' ) ;
12+ } else {
13+ hamburger . classList . remove ( 'open' ) ;
14+ }
15+ } ;
16+ } , false ) ;
Original file line number Diff line number Diff line change 66 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
77 < title > {% block title %}Arch Linux{% endblock %}</ title >
88 < link rel ="stylesheet " type ="text/css " href ="{% static "archweb.css " %}" media="screen " />
9+ < script src ="{% static "base.js " %}"> </ script >
910 < link rel ="icon " type ="image/x-icon " href ="{% static "favicon.ico " %}" />
1011 < link rel ="shortcut icon " type ="image/x-icon " href ="{% static "favicon.ico " %}" />
1112 < link rel ="apple-touch-icon " href ="{% static "logos /apple-touch-icon-57x57.png" %}" />
You can’t perform that action at this time.
0 commit comments