Go to the source code of this file.
|
document | ready (function(){$(document).on('click',"[data-toggle='wy-nav-top']", function(){$("[data-toggle='wy-nav-shift']").toggleClass("shift");$("[data-toggle='rst-versions']").toggleClass("shift");});$(document).on('click',".wy-menu-vertical .current ul li a", function(){$("[data-toggle='wy-nav-shift']").removeClass("shift");$("[data-toggle='rst-versions']").toggleClass("shift");});$(document).on('click',"[data-toggle='rst-current-version']", function(){$("[data-toggle='rst-versions']").toggleClass("shift-up");});$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");}) |
|
document ready |
( |
function(){$(document).on('click',"[data-toggle='wy-nav-top']", function(){$("[data-toggle='wy-nav-shift']").toggleClass("shift");$("[data-toggle='rst-versions']").toggleClass("shift");});$(document).on('click',".wy-menu-vertical .current ul li a", function(){$("[data-toggle='wy-nav-shift']").removeClass("shift");$("[data-toggle='rst-versions']").toggleClass("shift");});$(document).on('click',"[data-toggle='rst-current-version']", function(){$("[data-toggle='rst-versions']").toggleClass("shift-up");});$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");} |
| ) |
|
Initial value: var stickyNav = (function () {
var navBar,
win,
stickyNavCssClass = 'stickynav',
applyStickNav = function () {
if (navBar.height() <= win.height()) {
navBar.addClass(stickyNavCssClass);
} else {
navBar.removeClass(stickyNavCssClass);
}
},
enable = function () {
applyStickNav();
win.on('resize', applyStickNav);
},
navBar =
jquery(
'nav.wy-nav-side:first');
};
return {
enable : enable
};
}());
return {
StickyNav : stickyNav
};
}($))
Definition at line 19 of file theme.js.