Enhances the mobile header/menu layout (#663)
This commit is contained in:
20
scripts/bootstrap-3.0.3.custom.js
vendored
20
scripts/bootstrap-3.0.3.custom.js
vendored
@@ -335,3 +335,23 @@
|
||||
})
|
||||
|
||||
}(jQuery);
|
||||
|
||||
/**
|
||||
* FSFE custom slide toggle for the mobile menu.
|
||||
*/
|
||||
$(document).ready(function() {
|
||||
if ($(window).width() < 768) {
|
||||
$('#menu-list').hide();
|
||||
}
|
||||
|
||||
$('#direct-to-menu-list').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
$('#menu-list').stop(true, true).slideToggle();
|
||||
});
|
||||
|
||||
$(window).on('resize', function() {
|
||||
if ($(window).width() >= 768) {
|
||||
$('#menu-list').show();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user