Browse Source

Update flg.js

pull/1/head
schlagma 4 years ago
committed by GitHub
parent
commit
4a853f9595
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      js/flg.js

+ 16
- 0
js/flg.js View File

@ -1 +1,17 @@
function hiddenBody() {
var body = document.getElementById('body');
var mnNav = document.getElementById('mn-nav');
if (body.style.overflow === 'hidden') {
body.style.overflow = 'visible';
} else {
body.style.overflow = 'hidden';
}
if (mnNav.style.translate === 'translateX(0)') {
mnNav.style.translate = 'translateX(-100%)';
} else {
mnNav.style.translate = 'translateX(0)';
}
}

Loading…
Cancel
Save