X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9a7603cfbfdf7c0b4a2210ef454cecf894c5e172..0c9e7e914bc548bee30add46fb6e4aadf6ffb16c:/apps/wolnelektury_core/static/js/book_text/menu.js diff --git a/apps/wolnelektury_core/static/js/book_text/menu.js b/apps/wolnelektury_core/static/js/book_text/menu.js new file mode 100644 index 000000000..3c7f57c73 --- /dev/null +++ b/apps/wolnelektury_core/static/js/book_text/menu.js @@ -0,0 +1,24 @@ +(function($){$(function(){ + + +$('#menu-toggle-on').click(function(e) { + e.preventDefault(); + var body = $("body"); + body.removeClass("menu-hidden"); + if (!$("#menu").is(":visible")) { + body.addClass("menu-showed"); + } +}); + +$('#menu-toggle-off').click(function(e) { + e.preventDefault(); + var body = $("body"); + body.removeClass("menu-showed"); + if ($("#menu").is(":visible")) { + body.addClass("menu-hidden"); + } +}); + + + +})})(jQuery);