This commit is contained in:
Diatrex 2020-08-27 17:51:25 +03:00
commit 9df04ff409
2 changed files with 2 additions and 3 deletions

View File

@ -85,5 +85,4 @@
cursor: pointer;
background: #000;
opacity: .2;
z-index: 999;
}

View File

@ -1,8 +1,8 @@
$('#navbarSideButton').on('click', function() {
$('#navbarSide').addClass('reveal');
$('.overlay').show();
$('.overlay').css({'z-index': 999}).show();
});
$('.overlay').on('click', function(){
$('#navbarSide').removeClass('reveal');
$('.overlay').hide();
$('.overlay').css({'z-index': 'initial'}).hide();
});