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