diff --git a/customize.dist/pages.js b/customize.dist/pages.js index 4cd4f49f4..bd7ff5317 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -92,16 +92,25 @@ define([ ]); } + var button = h('button.navbar-toggler', { + 'type':'button', + /*'data-toggle':'collapse', + 'data-target':'#menuCollapse', + 'aria-controls': 'menuCollapse', + 'aria-expanded':'false', + 'aria-label':'Toggle navigation'*/ + }, h('i.fa.fa-bars ')); + + $(button).click(function () { + if ($('#menuCollapse').is(':visible')) { + return void $('#menuCollapse').slideUp(); + } + $('#menuCollapse').slideDown(); + }); + return h('nav.navbar.navbar-expand-lg', h('a.navbar-brand', { href: '/index.html'}), - h('button.navbar-toggler', { - 'type':'button', - 'data-toggle':'collapse', - 'data-target':'#menuCollapse', - 'aria-controls': 'menuCollapse', - 'aria-expanded':'false', - 'aria-label':'Toggle navigation' - }, h('i.fa.fa-bars ')), + button, h('div.collapse.navbar-collapse.justify-content-end#menuCollapse', [ //h('a.nav-item.nav-link', { href: '/what-is-cryptpad.html'}, Msg.topbar_whatIsCryptpad), // Moved the FAQ h('a.nav-item.nav-link', { href: '/faq.html'}, Msg.faq_link), diff --git a/customize.dist/template.js b/customize.dist/template.js index 5a702a25d..0ee34d407 100644 --- a/customize.dist/template.js +++ b/customize.dist/template.js @@ -27,8 +27,7 @@ $(function () { window.Tether = function () {}; require([ 'less!/customize/src/less2/main.less', - 'css!/bower_components/bootstrap/dist/css/bootstrap.min.css', - '/bower_components/bootstrap/dist/js/bootstrap.bundle.min.js' + 'css!/bower_components/bootstrap/dist/css/bootstrap.min.css' ], function () { $body.append($main);