File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 52
52
}
53
53
} ;
54
54
</ script >
55
-
55
+
56
+ < script >
57
+ function myFunction ( ) {
58
+ var x = document . getElementById ( "myLinks" ) ;
59
+ // Toggle the display between block and none
60
+ if ( x . style . display === "block" ) {
61
+ x . style . display = "none" ;
62
+ } else {
63
+ x . style . display = "block" ;
64
+ }
65
+ }
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
+ </ script >
56
78
57
79
</ head >
58
80
< body >
You can’t perform that action at this time.
0 commit comments