File tree Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Expand file tree Collapse file tree 1 file changed +9
-18
lines changed Original file line number Diff line number Diff line change 55
55
< script >
56
56
function myFunction ( ) {
57
57
var x = document . getElementById ( "myLinks" ) ;
58
- // Toggle the display between block and none
59
58
if ( x . style . display === "block" ) {
60
59
x . style . display = "none" ;
61
60
} else {
62
61
x . style . display = "block" ;
63
62
}
64
63
}
65
-
66
- // Optional: Remove reverseLinks function if not needed
67
- function reverseLinks ( ) {
68
- var container = document . getElementById ( "myLinks" ) ;
69
- var links = Array . from ( container . getElementsByTagName ( 'a' ) ) ;
70
- container . innerHTML = '' ;
71
- // Appending links in reverse order (if necessary)
72
- for ( var i = links . length - 1 ; i >= 0 ; i -- ) {
73
- container . appendChild ( links [ i ] ) ;
74
- }
75
- }
76
64
</ script >
65
+
77
66
</ head >
78
67
79
68
< body >
80
69
81
70
<!-- Navigation Bar -->
82
- < div class ="topnav ">
83
-
71
+ < div class ="topnav " id ="myTopnav ">
72
+
73
+ <!-- Include the navigation links -->
84
74
< div id ="myLinks ">
85
- {% include navigation.md %}
75
+ {% include navigation.md %}
86
76
</ div >
87
-
88
- < a href ="javascript:void(0); " class ="icon " onclick ="myFunction();reverseLinks() ">
77
+
78
+ <!-- Hamburger icon for mobile -->
79
+ < a href ="javascript:void(0); " class ="icon " onclick ="myFunction() ">
89
80
< i class ="fa fa-bars "> </ i >
90
81
</ a >
91
-
82
+
92
83
</ div >
93
84
94
85
<!-- Main Content -->
You can’t perform that action at this time.
0 commit comments