Remove Bootstrap's JS in static pages
parent
9cba630700
commit
9e711e4cd4
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue