sol2/sphinx_rtd_theme/static/theme.js

18 lines
746 B
JavaScript
Raw Normal View History

/* Comment this because we include this information in our main JS file.
$(document).ready(function() {
2013-10-22 06:52:35 +08:00
// Shift nav in mobile when clicking the menu.
$(document).on('click', "[data-toggle='wy-nav-top']", function() {
2013-10-22 06:52:35 +08:00
$("[data-toggle='wy-nav-shift']").toggleClass("shift");
$("[data-toggle='rst-versions']").toggleClass("shift");
});
// Close menu when you click a link.
$(document).on('click', ".wy-menu-vertical .current ul li a", function() {
2013-10-22 06:52:35 +08:00
$("[data-toggle='wy-nav-shift']").removeClass("shift");
$("[data-toggle='rst-versions']").toggleClass("shift");
});
$(document).on('click', "[data-toggle='rst-current-version']", function() {
2013-10-22 06:52:35 +08:00
$("[data-toggle='rst-versions']").toggleClass("shift-up");
});
});
*/