From 01170395749a0dc950d8f6ac77f8782c81df4c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 8 Jun 2019 11:25:16 -0500 Subject: [PATCH] remove menu-toogle --- libretube-theme/static/js/menu.js | 48 ----------------------------- libretube-theme/templates/base.html | 48 +++++++++-------------------- 2 files changed, 15 insertions(+), 81 deletions(-) delete mode 100644 libretube-theme/static/js/menu.js diff --git a/libretube-theme/static/js/menu.js b/libretube-theme/static/js/menu.js deleted file mode 100644 index ee264b2..0000000 --- a/libretube-theme/static/js/menu.js +++ /dev/null @@ -1,48 +0,0 @@ -// @licstart The following is the entire license notice for the -// JavaScript code in this page. -// -// Copyright (C) 2019 Jesús E. -// -// Menu is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as -// published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. -// -// Menu is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with Menu. If not, see . -// -// @licend The above is the entire license notice for the -// JavaScript code in this page. - -document.addEventListener('DOMContentLoaded', () => { - - function toggleMenu() { - document.getElementById('menu-toggle').addEventListener('click', function(e) { - let sidebar = document.getElementById("sidebar-wrapper"); - if (sidebar.classList) { - sidebar.classList.toggle("active"); - } - }); - } - - function closeMenu() { - document.getElementById('menu-close').addEventListener('click', function(e) { - let close = document.getElementById("sidebar-wrapper"); - if (close.classList) { - close.classList.remove("active"); - } - }); - } - - // Open Menu - toggleMenu(); - - // Close Menu - closeMenu(); - -}); diff --git a/libretube-theme/templates/base.html b/libretube-theme/templates/base.html index 4f01554..91e0945 100644 --- a/libretube-theme/templates/base.html +++ b/libretube-theme/templates/base.html @@ -8,12 +8,12 @@ {% block title %}{{ SITENAME }}{% endblock title %} {% block extra_head %} - {% set SITE_DESCRIPTION = _('Videoteca de software libre brindando avance tecnológico') %} - - - - - + {% set SITE_DESCRIPTION = _('Videoteca de software libre brindando avance tecnológico') %} + + + + + {% endblock %} @@ -38,31 +38,11 @@
- -
-
@@ -94,13 +74,15 @@ {% if DISPLAY_PAGES_ON_MENU %}
- +
{% endif %}