mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
92ea8e8540
Conflicts: sphinx_rtd_theme/static/theme.js
18 lines
746 B
JavaScript
18 lines
746 B
JavaScript
/* Comment this because we include this information in our main JS file.
|
|
$(document).ready(function() {
|
|
// Shift nav in mobile when clicking the menu.
|
|
$(document).on('click', "[data-toggle='wy-nav-top']", function() {
|
|
$("[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() {
|
|
$("[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");
|
|
});
|
|
});
|
|
*/
|