diff options
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js index 04b317914..4e99bf1aa 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1451,3 +1451,18 @@ function zid(s) { return s; } + +function makeFullScreen(full) { + if(typeof full=='undefined' || full == true) { + $('#fullscreen-btn, header, nav, aside').hide(); + $('main').css({'width': '100%', 'max-width': 'none'}); + $('#inline-btn').show(); + $('.generic-content-wrapper').addClass('fullscreen'); + } + else { + $('#fullscreen-btn, header, nav, aside').show(); + $('main').removeAttr('style'); + $('#inline-btn').hide(); + $('.generic-content-wrapper').removeClass('fullscreen'); + } +} |