aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-31 23:13:40 +0200
committerMario Vavti <mario@mariovavti.com>2016-03-31 23:13:40 +0200
commit90a5ba01a35aeb3629ebe76069e68c64b913a4d5 (patch)
treee407c44bc5d32ff9ff58027268e98fbb2db39876 /view/js/main.js
parent6c2673ae2aa311ee92b5b12b969b4483b52eef53 (diff)
downloadvolse-hubzilla-90a5ba01a35aeb3629ebe76069e68c64b913a4d5.tar.gz
volse-hubzilla-90a5ba01a35aeb3629ebe76069e68c64b913a4d5.tar.bz2
volse-hubzilla-90a5ba01a35aeb3629ebe76069e68c64b913a4d5.zip
make fullscreen mode available for other modules and some cleanup
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 04b317914..d6d1238d4 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1451,3 +1451,16 @@ function zid(s) {
return s;
}
+
+function makeFullScreen(full) {
+ if(typeof full=='undefined' || full == true) {
+ $('#fullscreen, aside').hide();
+ $('#inline').show();
+ $('.generic-content-wrapper').addClass('fullscreen');
+ }
+ else {
+ $('#fullscreen, aside').show();
+ $('#inline').hide();
+ $('.generic-content-wrapper').removeClass('fullscreen');
+ }
+}