menu fixe en petit écran

This commit is contained in:
Deltacms 2023-04-04 18:04:10 +02:00
parent 3388d7e453
commit 4ab316d8da
1 changed files with 3 additions and 0 deletions

View File

@ -489,9 +489,12 @@ $(document).ready(function(){
var changeIcon = $('#toggle').children("span");
if ( $(changeIcon).hasClass('zwiico-menu') ) {
$(changeIcon).removeClass('zwiico-menu').addClass('zwiico-cancel');
$("#navfixedlogout, #navfixedconnected").css('position','static');
$('html, body').animate({ scrollTop: '0px'}, 100);
}
else {
$(changeIcon).addClass('zwiico-menu');
$("#navfixedlogout, #navfixedconnected").css('position','sticky');
};
});