lille: move footer navigation to burger on mobile

This commit is contained in:
Frédéric Péters 2019-04-10 14:41:44 +02:00
parent af1b3b94cd
commit c77ea3da4f
3 changed files with 12 additions and 0 deletions

1
static/hellemmes/extra.js Symbolic link
View File

@ -0,0 +1 @@
../lille/extra.js

10
static/lille/extra.js Normal file
View File

@ -0,0 +1,10 @@
$(function() {
/* move footer to navigation menu on mobile... */
var mql = window.matchMedia("screen and (max-width: 800px)");
if (mql.matches) {
var $burger = $('#nav ul');
$('footer .menucell li').each(function(idx, li) {
$(li).detach().addClass('footer-link').appendTo($burger);
});
}
});

1
static/lomme/extra.js Symbolic link
View File

@ -0,0 +1 @@
../lille/extra.js