We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e32dd54 commit be99350Copy full SHA for be99350
public/views/html.hbs
@@ -160,6 +160,29 @@
160
removeHash();
161
});
162
163
+ var toggle = $('.expand-toggle');
164
+ var tocExpand = false;
165
+
166
+ checkExpandToggle();
167
+ toggle.click(function (e) {
168
+ e.preventDefault();
169
+ e.stopPropagation();
170
+ tocExpand = !tocExpand;
171
172
+ })
173
174
+ function checkExpandToggle () {
175
+ var toc = $('.ui-toc-dropdown .toc');
176
177
+ if (!tocExpand) {
178
+ toc.removeClass('expand');
179
+ toggle.text('Expand all');
180
+ } else {
181
+ toc.addClass('expand');
182
+ toggle.text('Collapse all');
183
+ }
184
185
186
function scrollToTop() {
187
$('body, html').stop(true, true).animate({
188
scrollTop: 0
0 commit comments