Commit 49d23af4 authored by Adèle's avatar Adèle
Browse files

Fixed burger AGAIN

parent 777dbe78
......@@ -3,11 +3,21 @@ var hash = window.location.hash;
window.location.hash = ''; // avoid going to anchor
$window.on('load', function() {
var content = $('#content');
var size = 24; // magic number !
$('.burger').on('click',function(){
$('#banner nav').toggleClass('opened');
$('.cacheMenu').fadeToggle();
});
$('.cacheMenu').on('click',function(){
$('#banner nav').toggleClass('opened');
$('.cacheMenu').fadeToggle();
});
// nav is not displayed on small screens so no need to continue
if (window.matchMedia('(max-width: 40rem)').matches) {
return;
......@@ -67,14 +77,5 @@ $window.on('load', function() {
);
}
$('.burger').on('click',function(){
$('#banner nav').toggleClass('opened');
$('.cacheMenu').fadeToggle();
});
$('.cacheMenu').on('click',function(){
$('#banner nav').toggleClass('opened');
$('.cacheMenu').fadeToggle();
});
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment