File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -121,4 +121,21 @@ <h4 onclick="toggleNavigation('{{ chapter.id }}')">
121
121
allow-try ="false "
122
122
heading-text ="Pledger API "> </ rapi-doc >
123
123
</ div >
124
- </ main >
124
+ </ main >
125
+
126
+ < script type ="application/javascript ">
127
+ function toggleNavigation ( id ) {
128
+ const section = document . getElementById ( id ) ;
129
+ const children = section . querySelector ( '.children' ) ;
130
+
131
+ if ( children . classList . contains ( 'expanded' ) ) {
132
+ children . classList . remove ( 'expanded' ) ;
133
+ section . querySelector ( 'img' ) . src = '/images/icons/nav-chevron-right.png' ;
134
+ } else {
135
+ children . classList . add ( 'expanded' ) ;
136
+ section . querySelector ( 'img' ) . src = '/images/icons/nav-chevron-down.png' ;
137
+ }
138
+ }
139
+ </ script >
140
+ </ body >
141
+ </ html >
You can’t perform that action at this time.
0 commit comments