2013-10-26 08:42:38 +08:00
|
|
|
/* Comment this because we include this information in our main JS file.
|
2013-10-24 08:11:16 +08:00
|
|
|
$(document).ready(function() {
|
2013-10-22 06:52:35 +08:00
|
|
|
// Shift nav in mobile when clicking the menu.
|
2013-10-24 08:11:16 +08:00
|
|
|
$(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.
|
2013-10-24 08:11:16 +08:00
|
|
|
$(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");
|
|
|
|
});
|
2013-10-24 08:11:16 +08:00
|
|
|
$(document).on('click', "[data-toggle='rst-current-version']", function() {
|
2013-10-22 06:52:35 +08:00
|
|
|
$("[data-toggle='rst-versions']").toggleClass("shift-up");
|
|
|
|
});
|
|
|
|
});
|
2013-10-26 08:42:38 +08:00
|
|
|
*/
|