move fullscreen js code to redbasic.js where it belongs to

This commit is contained in:
Mario Vavti 2016-04-01 08:56:51 +02:00
parent c6d9100649
commit 60bb8f25f7
2 changed files with 15 additions and 15 deletions

View File

@ -1451,18 +1451,3 @@ 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');
}
}

View File

@ -52,3 +52,18 @@ $(document).ready(function() {
}
setInterval(function () {checkNotify();}, 10 * 1000);
});
function makeFullScreen(full) {
if(typeof full=='undefined' || full == true) {
$('#fullscreen-btn, header, nav, aside').hide();
$('main').css({'width': '100%', 'max-width': 'none', 'left': '0px'});
$('#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');
}
}