X-Git-Url: https://git.mdrn.pl/wl-mobile.git/blobdiff_plain/bff5852b5ee1320a6eaf4256570784bbc024496f..b9acd6c8b2300a76624900cd19f9e40e59ff3f7b:/assets/www/js/menu.js diff --git a/assets/www/js/menu.js b/assets/www/js/menu.js deleted file mode 100644 index 9fea371..0000000 --- a/assets/www/js/menu.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * This file is part of WolneLektury-Mobile, licensed under GNU Affero GPLv3 or later. - * Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. - */ - -var Menu = new function() { - var self = this; - var infoView = "ProjectInfo"; - - self.init = function() { - window.MenuInterface.setNightMode(View.getNightMode()); - }; - - self.start = function() { - History.visit(''); - }; - - self.info = function() { - History.visit(self.infoView + '/' + View.currentPar); - }; - - self.bookmark = function() { - var name = prompt('Nazwa zakładki'); - if (name != null) - History.addBookmark(name); - }; - - self.toggleNightMode = function() { - View.toggleNightMode(); - window.MenuInterface.setNightMode(View.getNightMode()); - }; - - self.setInfoButton = function(view, label, enabled) { - self.infoView = view; - window.MenuInterface.setInfoButton(label, enabled); - }; -}